diff --git a/drivers/include/saul.h b/drivers/include/saul.h index 55a50ea09222e9f7ddb94d61e95db4516ddb9605..6bc40036b317d8a8e4858fd1088c914aa0b7c688 100644 --- a/drivers/include/saul.h +++ b/drivers/include/saul.h @@ -95,6 +95,7 @@ enum { SAUL_SENSE_COUNT = 0x8d, /**< sensor: pulse counter */ SAUL_SENSE_DISTANCE = 0x8e, /**< sensor: distance */ SAUL_SENSE_CO2 = 0x8f, /**< sensor: CO2 Gas */ + SAUL_SENSE_TVOC = 0x90, /**< sensor: TVOC Gas */ SAUL_CLASS_ANY = 0xff /**< any device - wildcard */ /* extend this list as needed... */ }; diff --git a/drivers/saul/saul_str.c b/drivers/saul/saul_str.c index a8aae3da87215613806d6e02510f5e807852bf9b..3f66582bd20dcc5daa3be47b472fe92adfb78286 100644 --- a/drivers/saul/saul_str.c +++ b/drivers/saul/saul_str.c @@ -52,6 +52,7 @@ const char *saul_class_to_str(const uint8_t class_id) case SAUL_SENSE_COUNT: return "SENSE_PULSE_COUNT"; case SAUL_SENSE_DISTANCE: return "SENSE_DISTANCE"; case SAUL_SENSE_CO2: return "SENSE_CO2"; + case SAUL_SENSE_TVOC: return "SENSE_TVOC"; case SAUL_CLASS_ANY: return "CLASS_ANY"; default: return "CLASS_UNKNOWN"; } diff --git a/sys/include/phydat.h b/sys/include/phydat.h index 0ab28226ff389233161efb6a76829e802293c74a..b94aecb8a4bc2b361b059d3a36fe12d9ec40b3fb 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -104,6 +104,7 @@ enum { UNIT_PERCENT, /**< out of 100 */ UNIT_PERMILL, /**< out of 1000 */ UNIT_PPM, /**< part per million */ + UNIT_PPB, /**< part per billion */ /* aggregate values */ UNIT_TIME, /**< the three dimensions contain sec, min, and hours */ UNIT_DATE /**< the 3 dimensions contain days, months and years */ diff --git a/sys/phydat/phydat_str.c b/sys/phydat/phydat_str.c index 3f17c2940a5f44ad201c63209d37ef460fc73fdb..7d5755c35dbe3a9d0647029a7dcafc8022c2004f 100644 --- a/sys/phydat/phydat_str.c +++ b/sys/phydat/phydat_str.c @@ -95,6 +95,7 @@ const char *phydat_unit_to_str(uint8_t unit) case UNIT_BAR: return "Bar"; case UNIT_PA: return "Pa"; case UNIT_PPM: return "ppm"; + case UNIT_PPB: return "ppb"; case UNIT_CD: return "cd"; case UNIT_PERCENT: return "%"; default: return "";