drivers/saul: Add capacitance and voltage types
This commit is contained in:
parent
aefdc6550c
commit
85e75cf9f8
@ -97,11 +97,13 @@ enum {
|
|||||||
SAUL_SENSE_CO2 = 0x8f, /**< sensor: CO2 Gas */
|
SAUL_SENSE_CO2 = 0x8f, /**< sensor: CO2 Gas */
|
||||||
SAUL_SENSE_TVOC = 0x90, /**< sensor: TVOC Gas */
|
SAUL_SENSE_TVOC = 0x90, /**< sensor: TVOC Gas */
|
||||||
SAUL_SENSE_OCCUP = 0x91, /**< sensor: occupancy */
|
SAUL_SENSE_OCCUP = 0x91, /**< sensor: occupancy */
|
||||||
SAUL_SENSE_PROXIMITY= 0x92, /**< sensor: proximity */
|
SAUL_SENSE_PROXIMITY = 0x92, /**< sensor: proximity */
|
||||||
SAUL_SENSE_RSSI = 0x93, /**< sensor: RSSI */
|
SAUL_SENSE_RSSI = 0x93, /**< sensor: RSSI */
|
||||||
SAUL_SENSE_CHARGE = 0x94, /**< sensor: coulomb counter */
|
SAUL_SENSE_CHARGE = 0x94, /**< sensor: coulomb counter */
|
||||||
SAUL_SENSE_CURRENT = 0x95, /**< sensor: ammeter */
|
SAUL_SENSE_CURRENT = 0x95, /**< sensor: ammeter */
|
||||||
SAUL_SENSE_PM = 0x96, /**< sensor: particulate matter */
|
SAUL_SENSE_PM = 0x96, /**< sensor: particulate matter */
|
||||||
|
SAUL_SENSE_CAPACITANCE = 0x97, /**< sensor: capacitance */
|
||||||
|
SAUL_SENSE_VOLTAGE = 0x98, /**< sensor: voltage */
|
||||||
SAUL_CLASS_ANY = 0xff /**< any device - wildcard */
|
SAUL_CLASS_ANY = 0xff /**< any device - wildcard */
|
||||||
/* extend this list as needed... */
|
/* extend this list as needed... */
|
||||||
};
|
};
|
||||||
|
|||||||
@ -59,6 +59,8 @@ const char *saul_class_to_str(const uint8_t class_id)
|
|||||||
case SAUL_SENSE_CURRENT: return "SENSE_CURRENT";
|
case SAUL_SENSE_CURRENT: return "SENSE_CURRENT";
|
||||||
case SAUL_SENSE_OCCUP: return "SENSE_OCCUP";
|
case SAUL_SENSE_OCCUP: return "SENSE_OCCUP";
|
||||||
case SAUL_SENSE_PM: return "SENSE_PM";
|
case SAUL_SENSE_PM: return "SENSE_PM";
|
||||||
|
case SAUL_SENSE_CAPACITANCE: return "SENSE_CAPACITANCE";
|
||||||
|
case SAUL_SENSE_VOLTAGE: return "SENSE_VOLTAGE";
|
||||||
case SAUL_CLASS_ANY: return "CLASS_ANY";
|
case SAUL_CLASS_ANY: return "CLASS_ANY";
|
||||||
default: return "CLASS_UNKNOWN";
|
default: return "CLASS_UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user