Add max_interval in sensor_info_t
[platform/hal/api/sensor.git] / include / hal-sensor-types.h
index 32c3f20..ad119a2 100644 (file)
@@ -77,6 +77,8 @@ typedef enum {
   SENSOR_DEVICE_HUMAN_SLEEP_DETECTOR,
   SENSOR_DEVICE_HUMAN_STRESS_MONITOR,
 
+  SENSOR_DEVICE_LIDAR = 1000,
+
   SENSOR_DEVICE_EXERCISE_WALKING = 0x400,
   SENSOR_DEVICE_EXERCISE_RUNNING,
   SENSOR_DEVICE_EXERCISE_HIKING,
@@ -153,8 +155,6 @@ typedef enum {
   SENSOR_DEVICE_GSR,
   SENSOR_DEVICE_SIMSENSE,
   SENSOR_DEVICE_PPG,
-
-  SENSOR_DEVICE_LIDAR = 0x8000,
 } sensor_device_type;
 
 /*
@@ -173,6 +173,7 @@ typedef struct sensor_info_t {
   float max_range;
   float resolution;
   int min_interval;
+  int max_interval;
   int max_batch_count;
   bool wakeup_supported;
 } sensor_info_t;