diff options
author | TaeminYeom <taemin.yeom@samsung.com> | 2023-02-07 15:58:36 +0900 |
---|---|---|
committer | Taemin Yeom <taemin.yeom@samsung.com> | 2023-02-07 07:17:02 +0000 |
commit | c82ce596e201bba4df5cbfc374e4b1df2dd33eab (patch) | |
tree | 0295a1155f9a4924dc50f5c872c3c30720d29976 | |
parent | f676a2f83ec3a698719a960f954977103ce1b70d (diff) | |
download | sensor-accepted/tizen_7.0_unified.tar.gz sensor-accepted/tizen_7.0_unified.tar.bz2 sensor-accepted/tizen_7.0_unified.zip |
hal-sensor-types: Add new HAL_SENSOR_ATTR_LIDAR_POWER_STATE attraccepted/tizen/7.0/unified/20230209.070235tizen_7.0accepted/tizen_7.0_unified
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>
(cherry picked from commit 1221582db70f80a98fd9fe2b87d91ff7416af65b)
-rw-r--r-- | include/hal-sensor-types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hal-sensor-types.h b/include/hal-sensor-types.h index 7b4342b..7460faa 100644 --- a/include/hal-sensor-types.h +++ b/include/hal-sensor-types.h @@ -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 } |