Google is committed to advancing racial equity for Black communities. See how.

sensors_poll_device_1 Struct Reference

sensors_poll_device_1 Struct Reference

#include < sensors.h >

Data Fields

union {
   struct sensors_poll_device_t     v0
 
   struct {
      struct hw_device_t     common
 
      int(*    activate )(struct sensors_poll_device_t
         *dev, int sensor_handle, int
         enabled)
 
      int(*    setDelay )(struct sensors_poll_device_t
         *dev, int sensor_handle,
         int64_t sampling_period_ns)
 
      int(*    poll )(struct sensors_poll_device_t
         *dev, sensors_event_t *data,
         int count)
 
   } 
 
}; 
 
int(*  batch )(struct sensors_poll_device_1 *dev, int sensor_handle, int flags, int64_t sampling_period_ns, int64_t max_report_latency_ns)
 
int(*  flush )(struct sensors_poll_device_1 *dev, int sensor_handle)
 
int(*  inject_sensor_data )(struct sensors_poll_device_1 *dev, const sensors_event_t *data)
 
void(*  reserved_procs [7])(void)
 

Detailed Description

Definition at line 1301 of file sensors.h .

Field Documentation

union { ... }
int(* activate)(struct sensors_poll_device_t *dev, int sensor_handle, int enabled)

Definition at line 1318 of file sensors.h .

int(* batch)(struct sensors_poll_device_1 *dev, int sensor_handle, int flags, int64_t sampling_period_ns, int64_t max_report_latency_ns)

Definition at line 1349 of file sensors.h .

struct hw_device_t common

Definition at line 1309 of file sensors.h .

int(* flush)(struct sensors_poll_device_1 *dev, int sensor_handle)

Definition at line 1365 of file sensors.h .

int(* inject_sensor_data)(struct sensors_poll_device_1 *dev, const sensors_event_t *data)

Definition at line 1374 of file sensors.h .

int(* poll)(struct sensors_poll_device_t *dev, sensors_event_t *data, int count)

Returns an array of sensor data.

Definition at line 1333 of file sensors.h .

void(* reserved_procs[7])(void)

Definition at line 1376 of file sensors.h .

int(* setDelay)(struct sensors_poll_device_t *dev, int sensor_handle, int64_t sampling_period_ns)

Set the events's period in nanoseconds for a given sensor. If sampling_period_ns > max_delay it will be truncated to max_delay and if sampling_period_ns < min_delay it will be replaced by min_delay.

Definition at line 1327 of file sensors.h .

Definition at line 1306 of file sensors.h .


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