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.

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 235 of file sensors.h.


Field Documentation

struct hw_module_t sensors_module_t::common [read]

Definition at line 236 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