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>
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 {
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
}