sensor-hal: reorderring sensor hal types for managing them easily 47/58747/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 3 Feb 2016 07:46:56 +0000 (16:46 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 3 Feb 2016 07:46:56 +0000 (16:46 +0900)
Change-Id: I66f9475e57a45086365562d98a5e2eb6442e1f3f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/interface/sensor_hal.h

index a80f748..435fad4 100644 (file)
  *   humidity            : relative humidity (%)
  */
 typedef enum {
+       SENSOR_HAL_TYPE_UNKNOWN = -2,
        SENSOR_HAL_TYPE_ALL = -1,
-       SENSOR_HAL_TYPE_UNKNOWN = 0,
-       SENSOR_HAL_TYPE_ACCELEROMETER = 1,
-       SENSOR_HAL_TYPE_MAGNETIC,
-       SENSOR_HAL_TYPE_LIGHT,
-       SENSOR_HAL_TYPE_PROXIMITY,
-       SENSOR_HAL_TYPE_THERMOMETER,
-       SENSOR_HAL_TYPE_GYROSCOPE,
-       SENSOR_HAL_TYPE_PRESSURE,
-       SENSOR_HAL_TYPE_MOTION,
-       SENSOR_HAL_TYPE_FUSION,
-       SENSOR_HAL_TYPE_PEDOMETER,
-       SENSOR_HAL_TYPE_CONTEXT,
-       SENSOR_HAL_TYPE_FLAT,
-       SENSOR_HAL_TYPE_HRM_RAW,
-       SENSOR_HAL_TYPE_HRM,
-       SENSOR_HAL_TYPE_AUTO_ROTATION,
+       SENSOR_HAL_TYPE_ACCELEROMETER,
        SENSOR_HAL_TYPE_GRAVITY,
        SENSOR_HAL_TYPE_LINEAR_ACCELERATION,
+       SENSOR_HAL_TYPE_GEOMAGNETIC,
        SENSOR_HAL_TYPE_ROTATION_VECTOR,
        SENSOR_HAL_TYPE_ORIENTATION,
-       SENSOR_HAL_TYPE_TILT,
-       SENSOR_HAL_TYPE_PIR,
-       SENSOR_HAL_TYPE_PIR_LONG,
+       SENSOR_HAL_TYPE_GYROSCOPE,
+       SENSOR_HAL_TYPE_LIGHT,
+       SENSOR_HAL_TYPE_PROXIMITY,
+       SENSOR_HAL_TYPE_PRESSURE,
+       SENSOR_HAL_TYPE_ULTRAVIOLET,
        SENSOR_HAL_TYPE_TEMPERATURE,
        SENSOR_HAL_TYPE_HUMIDITY,
-       SENSOR_HAL_TYPE_ULTRAVIOLET,
-       SENSOR_HAL_TYPE_DUST,
+       SENSOR_HAL_TYPE_HRM,
        SENSOR_HAL_TYPE_HRM_LED_GREEN,
        SENSOR_HAL_TYPE_HRM_LED_IR,
        SENSOR_HAL_TYPE_HRM_LED_RED,
-       SENSOR_HAL_TYPE_ROTATION_VECTOR_RAW,
        SENSOR_HAL_TYPE_GYROSCOPE_UNCAL,
        SENSOR_HAL_TYPE_GEOMAGNETIC_UNCAL,
        SENSOR_HAL_TYPE_GYROSCOPE_RV,
        SENSOR_HAL_TYPE_GEOMAGNETIC_RV,
 
-       SENSOR_HAL_TYPE_ACTIVITY,
-       SENSOR_HAL_TYPE_WALK,
-       SENSOR_HAL_TYPE_RUN,
-       SENSOR_HAL_TYPE_IN_VEHICLE,
+       SENSOR_HAL_TYPE_ACTIVITY_STATIONARY = 0x100,
+       SENSOR_HAL_TYPE_ACTIVITY_WALK,
+       SENSOR_HAL_TYPE_ACTIVITY_RUN,
+       SENSOR_HAL_TYPE_ACTIVITY_IN_VEHICLE,
+       SENSOR_HAL_TYPE_ACTIVITY_ON_BICYCLE,
 
-       SENSOR_HAL_TYPE_GETSTURE_WRISTUP,
-       SENSOR_HAL_TYPE_GESTURE_WRISTDOWN,
+       SENSOR_HAL_TYPE_GESTURE_MOVEMENT = 0x200,
+       SENSOR_HAL_TYPE_GESTURE_WRIST_UP,
+       SENSOR_HAL_TYPE_GESTURE_WRIST_DOWN,
 
-       SENSOR_HAL_TYPE_HUMAN_PEDOMETER,
-       SENSOR_HAL_TYPE_HUMAN_EXERCISE,
-       SENSOR_HAL_TYPE_HUMAN_SLEEP,
+       SENSOR_HAL_TYPE_HUMAN_PEDOMETER = 0x300,
+       SENSOR_HAL_TYPE_HUMAN_SLEEP_MONITOR,
 
-       SENSOR_HAL_TYPE_CUSTOM = 0x50000000,
+       SENSOR_HAL_TYPE_FUSION = 0x900,
+       SENSOR_HAL_TYPE_AUTO_ROTATION,
+
+       SENSOR_HAL_TYPE_CONTEXT = 0x1000,
+       SENSOR_HAL_TYPE_MOTION,
+       SENSOR_HAL_TYPE_PIR,
+       SENSOR_HAL_TYPE_PIR_LONG,
+       SENSOR_HAL_TYPE_DUST,
+       SENSOR_HAL_TYPE_THERMOMETER,
+       SENSOR_HAL_TYPE_PEDOMETER,
+       SENSOR_HAL_TYPE_FLAT,
+       SENSOR_HAL_TYPE_HRM_RAW,
+       SENSOR_HAL_TYPE_TILT,
+       SENSOR_HAL_TYPE_ROTATION_VECTOR_RAW,
 } sensor_hal_type;
 
 /*