Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created March 21, 2015 02:57
Show Gist options
  • Save invisiblek/781539069a528643b18d to your computer and use it in GitHub Desktop.
Save invisiblek/781539069a528643b18d to your computer and use it in GitHub Desktop.
#define SENSOR_TYPE_DEVICE_PRIVATE_BASE 0x10000
#define SENSOR_TYPE_META_DATA (0)
#define SENSOR_TYPE_ACCELEROMETER (1)
#define SENSOR_TYPE_GEOMAGNETIC_FIELD (2)
#define SENSOR_TYPE_MAGNETIC_FIELD SENSOR_TYPE_GEOMAGNETIC_FIELD
#define SENSOR_TYPE_ORIENTATION (3)
#define SENSOR_TYPE_GYROSCOPE (4)
#define SENSOR_TYPE_LIGHT (5)
#define SENSOR_TYPE_PRESSURE (6)
#define SENSOR_TYPE_TEMPERATURE (7)
#define SENSOR_TYPE_PROXIMITY (8)
#define SENSOR_TYPE_GRAVITY (9)
#define SENSOR_TYPE_LINEAR_ACCELERATION (10)
#define SENSOR_TYPE_ROTATION_VECTOR (11)
#define SENSOR_TYPE_RELATIVE_HUMIDITY (12)
#define SENSOR_TYPE_AMBIENT_TEMPERATURE (13)
#define SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED (14)
#define SENSOR_TYPE_GAME_ROTATION_VECTOR (15)
#define SENSOR_TYPE_GYROSCOPE_UNCALIBRATED (16)
#define SENSOR_TYPE_SIGNIFICANT_MOTION (17)
#define SENSOR_TYPE_STEP_DETECTOR (18)
#define SENSOR_TYPE_STEP_COUNTER (19)
#define SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR (20)
#define SENSOR_TYPE_HEART_RATE (21)
#define SENSOR_TYPE_TILT_DETECTOR (22)
#define SENSOR_TYPE_WAKE_GESTURE (23)
#define SENSOR_TYPE_GLANCE_GESTURE (24)
#define SENSOR_TYPE_PICK_UP_GESTURE (25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment