saul_reg_t * saul_reg
Export the SAUL registry as global variable.
int saul_reg_rm(saul_reg_t *dev)
Unregister a device from the SAUL registry.
saul_reg_t * saul_reg_find_type(uint8_t type)
Find the first device of the given 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 a device by its name.
Additional data to collect for each entry.
Generic data structure for expressing physical values.
struct saul_reg saul_reg_t
SAUL registry entry.
const char * name
string identifier for the device
const char * name
string identifier for a device
Definition of the RIOT actuator/sensor interface.
const saul_driver_t * driver
the devices read callback
int saul_reg_write(saul_reg_t *dev, phydat_t *data)
Write data to the given device.
Generic data container for physical data interface.
void * dev
pointer to the device descriptor
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
int saul_reg_read(saul_reg_t *dev, phydat_t *res)
Read data from the given device.
struct saul_reg * next
pointer to the next device
saul_reg_t * saul_reg_find_nth(int pos)
Find a device by it's position in the registry.