Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

sensors_module_t Struct Reference

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.

Definition at line 1149 of file sensors.h .

Field Documentation

struct hw_module_t common

Definition at line 1150 of file sensors.h .

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

Enumerate all available sensors. The list is returned in "list".

number of sensors in the list

Definition at line 1156 of file sensors.h .

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.

0 on success -EINVAL if requested mode is not supported -EPERM if operation is not allowed

Definition at line 1169 of file sensors.h .

The documentation for this struct was generated from the following file: