Data Fields
sensors_module_t Struct Reference

Every hardware module must have a data structure named HAL_MODULE_INFO_SYM and the fields of this data structure must begin with hw_module_t followed by module specific information. More...

Data Fields

struct hw_module_t common
 
int(* get_sensors_list )(struct sensors_module_t *module, struct sensor_t const **list)
 Enumerate all available sensors. More...
 

Detailed Description

Every hardware module must have a data structure named HAL_MODULE_INFO_SYM and the fields of this data structure must begin with hw_module_t followed by module specific information.

Definition at line 386 of file sensors.h.

Field Documentation

struct hw_module_t sensors_module_t::common

Definition at line 387 of file sensors.h.

int(* sensors_module_t::get_sensors_list)(struct sensors_module_t *module, struct sensor_t const **list)

Enumerate all available sensors.

The list is returned in "list".

Returns
number of sensors in the list

Definition at line 393 of file sensors.h.