int saul_write_notsup(const void *dev, const phydat_t *dat)
Fallback function when write is not supported.
void saul_class_print(uint8_t class_id)
Prints the class string of the given class ID.
ssize_t saul_class_write(char *dest, size_t max_size, uint8_t class_id)
Write the string representation of the given device class to the given buffer.
const char * saul_class_to_str(const uint8_t class_id)
Helper function converts a class ID to a string.
void saul_init_devs(void)
Initialize all available SAUL drivers.
int saul_read_notsup(const void *dev, phydat_t *dat)
Fallback function when read is not supported.
int(* saul_read_t)(const void *dev, phydat_t *res)
Read a value (a set of values) from a device.
int(* saul_write_t)(const void *dev, const phydat_t *data)
Write a value (a set of values) to a device.
@ SAUL_ID_MASK
Bitmask to obtain the intra-category ID.
@ SAUL_CAT_MASK
Bitmask to obtain the category ID.
@ SAUL_CAT_SENSE
Sensor device class.
@ SAUL_CAT_ACT
Actuator device class.
@ SAUL_CAT_UNDEF
device class undefined
@ SAUL_SENSE_CO2
sensor: CO2 Gas
@ SAUL_ACT_MOTOR
actuator: motor
@ SAUL_SENSE_GAS
sensor: Gas common
@ SAUL_SENSE_ACCEL
sensor: accelerometer
@ SAUL_SENSE_LIGHT
sensor: light
@ SAUL_SENSE_ANALOG
sensor: raw analog value
@ SAUL_SENSE_PH
sensor: pH
@ SAUL_SENSE_CHARGE
sensor: coulomb counter
@ SAUL_SENSE_RSSI
sensor: RSSI
@ SAUL_SENSE_TEMP
sensor: temperature
@ SAUL_SENSE_CURRENT
sensor: ammeter
@ SAUL_SENSE_TVOC
sensor: TVOC Gas
@ SAUL_ACT_ANY
any actuator - wildcard
@ SAUL_SENSE_UV
sensor: UV index
@ SAUL_SENSE_MAG
sensor: magnetometer
@ SAUL_SENSE_DISTANCE
sensor: distance
@ SAUL_SENSE_CAPACITANCE
sensor: capacitance
@ SAUL_ACT_DIMMER
actuator: dimmable switch
@ SAUL_ACT_LED_RGB
actuator: RGB LED
@ SAUL_SENSE_OCCUP
sensor: occupancy
@ SAUL_SENSE_HUM
sensor: humidity
@ SAUL_ACT_SERVO
actuator: servo motor
@ SAUL_SENSE_OBJTEMP
sensor: object temperature
@ SAUL_CLASS_ANY
any device - wildcard
@ SAUL_SENSE_BTN
sensor: simple button
@ SAUL_SENSE_COUNT
sensor: pulse counter
@ SAUL_SENSE_ANY
any sensor - wildcard
@ SAUL_SENSE_GYRO
sensor: gyroscope
@ SAUL_ACT_SWITCH
actuator: simple on/off switch
@ SAUL_SENSE_VOLTAGE
sensor: voltage
@ SAUL_SENSE_PROXIMITY
sensor: proximity
@ SAUL_SENSE_COLOR
sensor: (light) color
@ SAUL_SENSE_POWER
sensor: power
@ SAUL_SENSE_PRESS
sensor: pressure
@ SAUL_SENSE_SIZE
sensor: size
@ SAUL_SENSE_PM
sensor: particulate matter
@ SAUL_SENSE_ID_PH
sensor: pH
@ SAUL_SENSE_ID_PROXIMITY
sensor: proximity
@ SAUL_SENSE_ID_ANY
any sensor - wildcard
@ SAUL_SENSE_ID_GAS
sensor: Gas common
@ SAUL_SENSE_ID_OCCUP
sensor: occupancy
@ SAUL_SENSE_ID_SIZE
sensor: size
@ SAUL_SENSE_ID_UV
sensor: UV index
@ SAUL_SENSE_ID_ACCEL
sensor: accelerometer
@ SAUL_SENSE_ID_TEMP
sensor: temperature
@ SAUL_SENSE_ID_TVOC
sensor: TVOC Gas
@ SAUL_SENSE_ID_HUM
sensor: humidity
@ SAUL_SENSE_ID_POWER
sensor: power
@ SAUL_SENSE_ID_COLOR
sensor: (light) color
@ SAUL_SENSE_ID_GYRO
sensor: gyroscope
@ SAUL_SENSE_ID_VOLTAGE
sensor: voltage
@ SAUL_SENSE_ID_OBJTEMP
sensor: object temperature
@ SAUL_SENSE_ID_CURRENT
sensor: ammeter
@ SAUL_SENSE_ID_PM
sensor: particulate matter
@ SAUL_SENSE_ID_CHARGE
sensor: coulomb counter
@ SAUL_SENSE_ID_CAPACITANCE
sensor: capacitance
@ SAUL_SENSE_ID_MAG
sensor: magnetometer
@ SAUL_SENSE_ID_CO2
sensor: CO2 Gas
@ SAUL_SENSE_ID_DISTANCE
sensor: distance
@ SAUL_SENSE_NUMOF
Number of actuators supported.
@ SAUL_SENSE_ID_LIGHT
sensor: light
@ SAUL_SENSE_ID_PRESS
sensor: pressure
@ SAUL_SENSE_ID_COUNT
sensor: pulse counter
@ SAUL_SENSE_ID_RSSI
sensor: RSSI
@ SAUL_SENSE_ID_ANALOG
sensor: raw analog value
@ SAUL_SENSE_ID_BTN
sensor: simple button
@ SAUL_ACT_ID_SERVO
actuator: servo motor
@ SAUL_ACT_ID_DIMMER
actuator: dimmable switch
@ SAUL_ACT_ID_SWITCH
actuator: simple on/off switch
@ SAUL_ACT_NUMOF
Number of actuators supported.
@ SAUL_ACT_ID_ANY
any actuator - wildcard
@ SAUL_ACT_ID_MOTOR
actuator: motor
@ SAUL_ACT_ID_LED_RGB
actuator: RGB LED
Generic data structure for expressing physical values.
Definition of the RIOT actuator/sensor interface.
saul_write_t write
write function pointer
uint8_t type
device class the device belongs to
saul_read_t read
read function pointer