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