1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/saul: add common gas class

This commit is contained in:
Gunar Schorcht 2020-02-27 17:08:13 +01:00
parent 558322bc6f
commit 1118f80180
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,7 @@ enum {
SAUL_SENSE_ID_DISTANCE, /**< sensor: distance */
SAUL_SENSE_ID_CO2, /**< sensor: CO2 Gas */
SAUL_SENSE_ID_TVOC, /**< sensor: TVOC Gas */
SAUL_SENSE_ID_GAS, /**< sensor: Gas common */
SAUL_SENSE_ID_OCCUP, /**< sensor: occupancy */
SAUL_SENSE_ID_PROXIMITY, /**< sensor: proximity */
SAUL_SENSE_ID_RSSI, /**< sensor: RSSI */
@ -194,6 +195,8 @@ enum {
SAUL_SENSE_CO2 = SAUL_CAT_SENSE | SAUL_SENSE_ID_CO2,
/** sensor: TVOC Gas */
SAUL_SENSE_TVOC = SAUL_CAT_SENSE | SAUL_SENSE_ID_TVOC,
/** sensor: Gas common */
SAUL_SENSE_GAS = SAUL_CAT_SENSE | SAUL_SENSE_ID_GAS,
/** sensor: occupancy */
SAUL_SENSE_OCCUP = SAUL_CAT_SENSE | SAUL_SENSE_ID_OCCUP,
/** sensor: proximity */

View File

@ -52,6 +52,7 @@ static const char *sensors[] = {
[SAUL_SENSE_ID_DISTANCE] = "SENSE_DISTANCE",
[SAUL_SENSE_ID_CO2] = "SENSE_CO2",
[SAUL_SENSE_ID_TVOC] = "SENSE_TVOC",
[SAUL_SENSE_ID_GAS] = "SENSE_GAS",
[SAUL_SENSE_ID_PROXIMITY] = "SENSE_PROXIMITY",
[SAUL_SENSE_ID_RSSI] = "SENSE_RSSI",
[SAUL_SENSE_ID_CHARGE] = "SENSE_CHARGE",