sensors_module_t Struct Reference
  
   #include <
   
    sensors.h
   
   >
  
 
| Data Fields | |
| struct hw_module_t | common | 
| int(* | get_sensors_list )(struct sensors_module_t *module, struct sensor_t const **list) | 
| int(* | set_operation_mode )(unsigned int mode) | 
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.
Field Documentation
| struct hw_module_t common | 
| int(* get_sensors_list)(struct sensors_module_t *module, struct sensor_t const **list) | 
| int(* set_operation_mode)(unsigned int mode) | 
Place the module in a specific mode. The following modes are defined
0 - Normal operation. Default state of the module. 1 - Loopback mode. Data is injected for the supported sensors by the sensor service in this mode.
- Returns
- 0 on success -EINVAL if requested mode is not supported -EPERM if operation is not allowed
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ sensors.h
