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)
 
void(* reserved_procs [8])(void)
 

Detailed Description

Definition at line 925 of file sensors.h.

Field Documentation

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

Definition at line 942 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 973 of file sensors.h.

struct hw_device_t common

Definition at line 933 of file sensors.h.

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

Definition at line 989 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 957 of file sensors.h.

void(* reserved_procs[8])(void)

Definition at line 991 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 951 of file sensors.h.

Definition at line 930 of file sensors.h.


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