|
21 | 21 | */
|
22 | 22 |
|
23 | 23 | /**
|
24 |
| - * sensor category light |
| 24 | + * @name Light sensors |
| 25 | + * @{ |
25 | 26 | */
|
| 27 | + |
| 28 | +/** Sensor type for ambient light sensors. */ |
26 | 29 | #define SENSING_SENSOR_TYPE_LIGHT_AMBIENTLIGHT 0x41
|
27 | 30 |
|
| 31 | +/** @} */ |
| 32 | + |
28 | 33 | /**
|
29 |
| - * sensor category motion |
| 34 | + * @name Motion sensors |
| 35 | + * @{ |
30 | 36 | */
|
31 |
| -/* Sensor type for 3D accelerometers. */ |
| 37 | + |
| 38 | +/** Sensor type for 3D accelerometers. */ |
32 | 39 | #define SENSING_SENSOR_TYPE_MOTION_ACCELEROMETER_3D 0x73
|
33 |
| -/* Sensor type for 3D gyrometers. */ |
| 40 | +/** Sensor type for 3D gyrometers. */ |
34 | 41 | #define SENSING_SENSOR_TYPE_MOTION_GYROMETER_3D 0x76
|
35 |
| -/* Sensor type for motion detectors. */ |
| 42 | +/** Sensor type for motion detectors. */ |
36 | 43 | #define SENSING_SENSOR_TYPE_MOTION_MOTION_DETECTOR 0x77
|
| 44 | +/** Sensor type for uncalibrated 3D accelerometers. */ |
| 45 | +#define SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D 0x240 |
| 46 | +/** Sensor type for hinge angle sensors. */ |
| 47 | +#define SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE 0x20B |
37 | 48 |
|
| 49 | +/** @} */ |
38 | 50 |
|
39 | 51 | /**
|
40 |
| - * sensor category other |
| 52 | + * @name Other sensors |
| 53 | + * @{ |
41 | 54 | */
|
42 |
| -#define SENSING_SENSOR_TYPE_OTHER_CUSTOM 0xE1 |
43 | 55 |
|
44 |
| -/* Sensor type for uncalibrated 3D accelerometers. */ |
45 |
| -#define SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D 0x240 |
46 |
| -/* Sensor type for hinge angle sensors. */ |
47 |
| -#define SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE 0x20B |
| 56 | +/** Sensor type for custom sensors. */ |
| 57 | +#define SENSING_SENSOR_TYPE_OTHER_CUSTOM 0xE1 |
| 58 | + |
| 59 | +/** @} */ |
48 | 60 |
|
49 | 61 | /**
|
50 | 62 | * @brief Sensor type for all sensors.
|
51 | 63 | *
|
52 | 64 | * This macro defines the sensor type for all sensors.
|
| 65 | + * |
| 66 | + * @note This value is not a valid sensor type and is used as a sentinel value to indicate all |
| 67 | + * sensor types. |
53 | 68 | */
|
54 | 69 | #define SENSING_SENSOR_TYPE_ALL 0xFFFF
|
55 | 70 |
|
|
0 commit comments