saul_reg_t * saul_reg_find_nth(int pos)
Find a device by its position in the registry.
saul_reg_t * saul_reg_find_type_and_name(uint8_t type, const char *name)
Find the first device by its type and name in the registry.
int saul_reg_write(saul_reg_t *dev, const phydat_t *data)
Write data to the given device.
saul_reg_t * saul_reg_find_type(uint8_t type)
Find the first device by its type in the registry.
int saul_reg_add(saul_reg_t *dev)
Register a device with the SAUL registry.
saul_reg_t * saul_reg_find_name(const char *name)
Find the first device by its name in the registry.
int saul_reg_read(saul_reg_t *dev, phydat_t *res)
Read data from the given device.
struct saul_reg saul_reg_t
SAUL registry entry.
Functionality for converting from Phydat to SenML.
Generic data structure for expressing physical values.
Definition of the RIOT actuator/sensor interface.
Additional data to collect for each entry.
const char * name
string identifier for a device
saul_driver_t const * driver
the devices read callback
const char * name
string identifier for the device
void * dev
pointer to the device descriptor
struct saul_reg * next
pointer to the next device