sensor-hal-tm1: sync with sensor-hal-tw1 HAL
[platform/adaptation/tm1/sensor-hal-tm1.git] / src / sensor_common.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef _SENSOR_COMMON_H_
19 #define _SENSOR_COMMON_H_
20
21 #define SENSOR_EVENT_SHIFT 16
22 #define RAW_DATA_EVENT 0x0001
23
24 #define UNKNOWN_NAME "UNKNOWN"
25
26 enum sensorhub_enable_bit {
27         SENSORHUB_ACCELEROMETER_ENABLE_BIT = 0,
28         SENSORHUB_GYROSCOPE_ENABLE_BIT,
29         SENSORHUB_GEOMAGNETIC_UNCALIB_ENABLE_BIT,
30         SENSORHUB_GEOMAGNETIC_RAW_ENABLE_BIT,
31         SENSORHUB_GEOMAGNETIC_ENABLE_BIT,
32         SENSORHUB_PRESSURE_ENABLE_BIT,
33         SENSORHUB_GESTURE_ENABLE_BIT,
34         SENSORHUB_PROXIMITY_ENABLE_BIT,
35         SENSORHUB_TEMPERATURE_HUMIDITY_ENABLE_BIT,
36         SENSORHUB_LIGHT_ENABLE_BIT,
37         SENSORHUB_PROXIMITY_RAW_ENABLE_BIT,
38         SENSORHUB_ORIENTATION_ENABLE_BIT,
39         SENSORHUB_STEP_DETECTOR_ENABLE_BIT = 12,
40         SENSORHUB_SIG_MOTION_ENABLE_BIT,
41         SENSORHUB_GYRO_UNCALIB_ENABLE_BIT,
42         SENSORHUB_GAME_ROTATION_VECTOR_ENABLE_BIT = 15,
43         SENSORHUB_ROTATION_VECTOR_ENABLE_BIT,
44         SENSORHUB_STEP_COUNTER_ENABLE_BIT,
45         SENSORHUB_HRM_RAW_ENABLE_BIT,
46         SENSORHUB_HRM_RAW_FAC_ENABLE_BIT,
47         SENSORHUB_HRM_LIB_ENABLE_BIT,
48         SENSORHUB_TILT_MOTION,
49         SENSORHUB_UV_SENSOR,
50         SENSORHUB_PIR_ENABLE_BIT,
51         SENSORHUB_PIR_RAW_ENABLE_BIT,
52         SENSORHUB_GSR_ENABLE_BIT = 25,
53         SENSORHUB_ENABLE_BIT_MAX,
54 };
55
56 #endif /* _SENSOR_COMMON_H_ */