From: TaeminYeom Date: Fri, 27 Jan 2023 08:01:04 +0000 (+0900) Subject: LIDAR: Add power state attribute X-Git-Tag: accepted/tizen/unified/20230131.162124^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71c888695d33a00d210e0f20adc0d9aaf0ad6b7a;p=platform%2Fcore%2Fapi%2Fsensor.git LIDAR: Add power state attribute Previous LIDAR sensor used sensor listener attribute. But sensor handle attribute was made so, to set and get lidar attribute with sensor handle attribute API, new sensor handle attribute is needed. Added Enum: -sensor_lidar_power_state_e SENSOR_LIDAR_POWER_STATE_OFF SENSOR_LIDAR_POWER_STATE_ON Change-Id: I7ba62df02183184d820b9faf48f98bf2235a44f7 Signed-off-by: TaeminYeom --- diff --git a/include/sensor-internal.h b/include/sensor-internal.h index 52eeaea..177f233 100644 --- a/include/sensor-internal.h +++ b/include/sensor-internal.h @@ -42,7 +42,9 @@ typedef enum { typedef enum { SENSOR_HANDLE_ATTR_PROXIMITY_SENSITIVITY_LEVEL = - CONVERT_TYPE_ATTR(SENSOR_PROXIMITY, 0x1) + CONVERT_TYPE_ATTR(SENSOR_PROXIMITY, 0x1), + SENSOR_HANDLE_ATTR_LIDAR_POWER_STATE = + CONVERT_TYPE_ATTR(SENSOR_LIDAR, 0x1) } sensor_handle_attribute_e; /** @@ -56,6 +58,16 @@ typedef enum SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG = 3 } sensor_proximity_sensitivity_level_e; +/** + * @brief Enumeration for lidar power state attribute value. + * @since_tizen 7.0 + */ +typedef enum +{ + SENSOR_LIDAR_POWER_STATE_OFF = 0, + SENSOR_LIDAR_POWER_STATE_ON = 1 +} sensor_lidar_power_state_e; + /** * @brief Sets the attribute to a connected sensor. * @since_tizen 6.5