hal-sensor-types: Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attr 57/287857/2 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.094423 accepted/tizen/unified/20230209.111253 tizen_8.0_m2_release
authorTaeminYeom <taemin.yeom@samsung.com>
Tue, 7 Feb 2023 06:58:36 +0000 (15:58 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Tue, 7 Feb 2023 07:13:58 +0000 (16:13 +0900)
Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute
in order to control the power of lidar sensor
This attribute has the specific attribute value
of hal_sensor_lidar_power_state enumeration.

[Newly added attribute]
- HAL_SENSOR_ATTR_LIDAR_POWER_STATE
  : Indicates the power state of the lidar sensor

[Newly added attribute value of HAL_SENSOR_ATTR_LIDAR_POWER_STATE]
- HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute value

enum hal_sensor_lidar_power_state {
HAL_SENSOR_LIDAR_POWER_STATE_OFF = 0,
HAL_SENSOR_LIDAR_POWER_STATE_ON = 1
};

Change-Id: I200ca454621f2d8dbb7476f95944675c56c79369
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
include/hal-sensor-types.h

index 7b4342b..7460faa 100644 (file)
@@ -525,6 +525,9 @@ enum sensor_attribute {
 
   HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL =
       CONVERT_TYPE_ATTR(SENSOR_DEVICE_PROXIMITY, 0x1),
+
+  HAL_SENSOR_ATTR_LIDAR_POWER_STATE =
+      CONVERT_TYPE_ATTR(SENSOR_DEVICE_LIDAR, 0x1),
 };
 
 enum sensor_attribute_common {
@@ -548,6 +551,12 @@ enum hal_sensor_proximity_sensitivity_level {
        HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG = 3
 };
 
+/* HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute value */
+enum hal_sensor_lidar_power_state {
+       HAL_SENSOR_LIDAR_POWER_STATE_OFF = 0,
+       HAL_SENSOR_LIDAR_POWER_STATE_ON = 1
+};
+
 #ifdef __cplusplus
 }