Data Fields | |
| struct hw_device_t | common |
| int(* | data_close )(struct sensors_data_device_t *dev) |
| Caller has completed using the sensor data. | |
| int(* | data_open )(struct sensors_data_device_t *dev, native_handle_t *nh) |
| Prepare to read sensor data. | |
| int(* | poll )(struct sensors_data_device_t *dev, sensors_data_t *data) |
| Return sensor data for one of the enabled sensors. | |
Definition at line 314 of file sensors.h.
struct hw_device_t sensors_data_device_t::common [read] |
| int(* sensors_data_device_t::data_close)(struct sensors_data_device_t *dev) |
Caller has completed using the sensor data.
The caller will not be blocked in sensors_data_poll when this routine is called.
| int(* sensors_data_device_t::data_open)(struct sensors_data_device_t *dev, native_handle_t *nh) |
Prepare to read sensor data.
This routine does NOT take ownership of the handle and must not close it. Typically this routine would use a duplicate of the nh parameter.
| nh | from sensors_control_open. |
| int(* sensors_data_device_t::poll)(struct sensors_data_device_t *dev, sensors_data_t *data) |
Return sensor data for one of the enabled sensors.