mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
drivers/saul: add definitions TVOC sensor type
This commit is contained in:
parent
fd1a987bf1
commit
698fbf98cc
@ -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... */
|
||||
};
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user