File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
components/drivers/sensors Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ extern "C" {
4545#define RT_SENSOR_CLASS_NOISE (11) /* Noise Loudness */
4646#define RT_SENSOR_CLASS_STEP (12) /* Step sensor */
4747#define RT_SENSOR_CLASS_FORCE (13) /* Force sensor */
48+ #define RT_SENSOR_CLASS_DUST (14) /* Dust sensor */
49+ #define RT_SENSOR_CLASS_ECO2 (15) /* eCO2 sensor */
4850
4951/* Sensor vendor types */
5052
@@ -56,6 +58,9 @@ extern "C" {
5658#define RT_SENSOR_VENDOR_GOERTEK (5) /* Goertek */
5759#define RT_SENSOR_VENDOR_MIRAMEMS (6) /* MiraMEMS */
5860#define RT_SENSOR_VENDOR_DALLAS (7) /* Dallas */
61+ #define RT_SENSOR_VENDOR_AOSONG (8) /* Aosong */
62+ #define RT_SENSOR_VENDOR_SHARP (9) /* Sharp */
63+ #define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */
5964
6065/* Sensor unit types */
6166
@@ -190,6 +195,8 @@ struct rt_sensor_data
190195 rt_int32_t noise ; /* Noise Loudness. unit: HZ */
191196 rt_uint32_t step ; /* Step sensor. unit: 1 */
192197 rt_int32_t force ; /* Force sensor. unit: mN */
198+ rt_uint32_t dust ; /* Dust sensor. unit: ug/m3 */
199+ rt_uint32_t eco2 ; /* eCO2 sensor. unit: ppm */
193200 } data ;
194201};
195202
You can’t perform that action at this time.
0 commit comments