Every device data structure must begin with hw_device_t followed by module specific public methods and attributes. More...
Data Fields | |
int(* | activate )(struct sensors_poll_device_t *dev, int handle, int enabled) |
Activate/deactivate one sensor. More... | |
struct hw_device_t | common |
int(* | poll )(struct sensors_poll_device_t *dev, sensors_event_t *data, int count) |
Returns an array of sensor data. More... | |
int(* | setDelay )(struct sensors_poll_device_t *dev, int handle, int64_t ns) |
Set the delay between sensor events in nanoseconds for a given sensor. More... | |
Every device data structure must begin with hw_device_t followed by module specific public methods and attributes.
int(* sensors_poll_device_t::activate)(struct sensors_poll_device_t *dev, int handle, int enabled) |
int(* sensors_poll_device_t::poll)(struct sensors_poll_device_t *dev, sensors_event_t *data, int count) |
int(* sensors_poll_device_t::setDelay)(struct sensors_poll_device_t *dev, int handle, int64_t ns) |
Set the delay between sensor events in nanoseconds for a given sensor.
If the requested value is less than sensor_t::minDelay, then it's silently clamped to sensor_t::minDelay unless sensor_t::minDelay is 0, in which case it is clamped to >= 1ms.