diff options
| author | luhuadong <[email protected]> | 2020-02-17 23:17:54 +0800 |
|---|---|---|
| committer | luhuadong <[email protected]> | 2020-02-17 23:17:54 +0800 |
| commit | da8e829fa8027042df19f68439d9c3b4c8f0049a (patch) | |
| tree | 7b1fa91645db10a6bf40a11b47fdc72bbe556d55 /components | |
| parent | bbdc9e2c7c96f595d81833d4439781946aeda90e (diff) | |
[Sensor] Add some class and vendor information of sensor
Diffstat (limited to 'components')
| -rwxr-xr-x | components/drivers/sensors/sensor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h index 9c6e5ecc55..3466370522 100755 --- a/components/drivers/sensors/sensor.h +++ b/components/drivers/sensors/sensor.h @@ -45,6 +45,8 @@ extern "C" { #define RT_SENSOR_CLASS_NOISE (11) /* Noise Loudness */ #define RT_SENSOR_CLASS_STEP (12) /* Step sensor */ #define RT_SENSOR_CLASS_FORCE (13) /* Force sensor */ +#define RT_SENSOR_CLASS_DUST (14) /* Dust sensor */ +#define RT_SENSOR_CLASS_ECO2 (15) /* eCO2 sensor */ /* Sensor vendor types */ @@ -56,6 +58,9 @@ extern "C" { #define RT_SENSOR_VENDOR_GOERTEK (5) /* Goertek */ #define RT_SENSOR_VENDOR_MIRAMEMS (6) /* MiraMEMS */ #define RT_SENSOR_VENDOR_DALLAS (7) /* Dallas */ +#define RT_SENSOR_VENDOR_AOSONG (8) /* Aosong */ +#define RT_SENSOR_VENDOR_SHARP (9) /* Sharp */ +#define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */ /* Sensor unit types */ @@ -190,6 +195,8 @@ struct rt_sensor_data rt_int32_t noise; /* Noise Loudness. unit: HZ */ rt_uint32_t step; /* Step sensor. unit: 1 */ rt_int32_t force; /* Force sensor. unit: mN */ + rt_int32_t dust; /* Dust sensor. unit: ug/m3 */ + rt_int32_t eco2; /* eCO2 sensor. unit: ppm */ } data; }; |
