1 /* 2 * Copyright (C) 2016 The Android Open Source Project 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 #ifndef _SENS_TYPE_H_ 18 #define _SENS_TYPE_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #define SENS_TYPE_INVALID 0 25 #define SENS_TYPE_ACCEL 1 26 #define SENS_TYPE_ANY_MOTION 2 //provided by ACCEL, nondiscardable edge trigger 27 #define SENS_TYPE_NO_MOTION 3 //provided by ACCEL, nondiscardable edge trigger 28 #define SENS_TYPE_SIG_MOTION 4 //provided by ACCEL, nondiscardable edge trigger 29 #define SENS_TYPE_FLAT 5 30 #define SENS_TYPE_GYRO 6 31 #define SENS_TYPE_GYRO_UNCAL 7 32 #define SENS_TYPE_MAG 8 33 #define SENS_TYPE_MAG_UNCAL 9 34 #define SENS_TYPE_BARO 10 35 #define SENS_TYPE_TEMP 11 36 #define SENS_TYPE_ALS 12 37 #define SENS_TYPE_PROX 13 38 #define SENS_TYPE_ORIENTATION 14 39 #define SENS_TYPE_HEARTRATE_ECG 15 40 #define SENS_TYPE_HEARTRATE_PPG 16 41 #define SENS_TYPE_GRAVITY 17 42 #define SENS_TYPE_LINEAR_ACCEL 18 43 #define SENS_TYPE_ROTATION_VECTOR 19 44 #define SENS_TYPE_GEO_MAG_ROT_VEC 20 45 #define SENS_TYPE_GAME_ROT_VECTOR 21 46 #define SENS_TYPE_STEP_COUNT 22 47 #define SENS_TYPE_STEP_DETECT 23 48 #define SENS_TYPE_GESTURE 24 49 #define SENS_TYPE_TILT 25 50 #define SENS_TYPE_DOUBLE_TWIST 26 51 #define SENS_TYPE_DOUBLE_TAP 27 52 #define SENS_TYPE_WIN_ORIENTATION 28 53 #define SENS_TYPE_HALL 29 54 #define SENS_TYPE_ACTIVITY 30 55 #define SENS_TYPE_VSYNC 31 56 #define SENS_TYPE_ACCEL_RAW 32 57 // Values 33-37 are reserved 58 #define SENS_TYPE_WRIST_TILT 39 59 60 // Activity recognition sensor types. 61 #define SENS_TYPE_ACTIVITY_IN_VEHICLE_START 40 62 #define SENS_TYPE_ACTIVITY_IN_VEHICLE_STOP 41 63 #define SENS_TYPE_ACTIVITY_ON_BICYCLE_START 42 64 #define SENS_TYPE_ACTIVITY_ON_BICYCLE_STOP 43 65 #define SENS_TYPE_ACTIVITY_WALKING_START 44 66 #define SENS_TYPE_ACTIVITY_WALKING_STOP 45 67 #define SENS_TYPE_ACTIVITY_RUNNING_START 46 68 #define SENS_TYPE_ACTIVITY_RUNNING_STOP 47 69 #define SENS_TYPE_ACTIVITY_STILL_START 48 70 #define SENS_TYPE_ACTIVITY_STILL_STOP 49 71 #define SENS_TYPE_ACTIVITY_TILTING 50 72 #define SENS_TYPE_ACTIVITY_RAW 51 73 74 #define SENS_TYPE_DOUBLE_TOUCH 52 75 #define SENS_TYPE_GAZE 53 76 #define SENS_TYPE_UNGAZE 54 77 #define SENS_TYPE_ACCEL_UNCAL 55 78 #define SENS_TYPE_ACCEL_TEMP 56 79 #define SENS_TYPE_GYRO_TEMP 57 80 #define SENS_TYPE_MAG_TEMP 58 81 #define SENS_TYPE_MAG_RAW 59 82 #define SENS_TYPE_LEDS 60 83 #define SENS_TYPE_HUMIDITY 61 84 85 #define SENS_TYPE_FIRST_USER 64 // event type necessarily begins with UserSensorEventHdr 86 #define SENS_TYPE_LAST_USER 128 87 88 #ifdef __cplusplus 89 } 90 #endif 91 92 #endif 93