mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
saul: Add parts per million unit
This commit is contained in:
parent
df16e7d5af
commit
327de914bc
@ -94,6 +94,7 @@ enum {
|
|||||||
SAUL_SENSE_OBJTEMP = 0x8c, /**< sensor: object temperature */
|
SAUL_SENSE_OBJTEMP = 0x8c, /**< sensor: object temperature */
|
||||||
SAUL_SENSE_COUNT = 0x8d, /**< sensor: pulse counter */
|
SAUL_SENSE_COUNT = 0x8d, /**< sensor: pulse counter */
|
||||||
SAUL_SENSE_DISTANCE = 0x8e, /**< sensor: distance */
|
SAUL_SENSE_DISTANCE = 0x8e, /**< sensor: distance */
|
||||||
|
SAUL_SENSE_CO2 = 0x8f, /**< sensor: CO2 Gas */
|
||||||
SAUL_CLASS_ANY = 0xff /**< any device - wildcard */
|
SAUL_CLASS_ANY = 0xff /**< any device - wildcard */
|
||||||
/* extend this list as needed... */
|
/* extend this list as needed... */
|
||||||
};
|
};
|
||||||
|
|||||||
@ -51,6 +51,7 @@ const char *saul_class_to_str(const uint8_t class_id)
|
|||||||
case SAUL_SENSE_OBJTEMP: return "SENSE_OBJTEMP";
|
case SAUL_SENSE_OBJTEMP: return "SENSE_OBJTEMP";
|
||||||
case SAUL_SENSE_COUNT: return "SENSE_PULSE_COUNT";
|
case SAUL_SENSE_COUNT: return "SENSE_PULSE_COUNT";
|
||||||
case SAUL_SENSE_DISTANCE: return "SENSE_DISTANCE";
|
case SAUL_SENSE_DISTANCE: return "SENSE_DISTANCE";
|
||||||
|
case SAUL_SENSE_CO2: return "SENSE_CO2";
|
||||||
case SAUL_CLASS_ANY: return "CLASS_ANY";
|
case SAUL_CLASS_ANY: return "CLASS_ANY";
|
||||||
default: return "CLASS_UNKNOWN";
|
default: return "CLASS_UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user