Stay organized with collections
Save and categorize content based on your preferences.
sensors_poll_device_1 Struct Reference
#include <
sensors.h
>
|
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)
|
|
Definition at line
1301
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)
|
Returns an array of sensor data.
Definition at line
1333
of file
sensors.h
.
void(* reserved_procs[7])(void)
|
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
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
sensors.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2019-10-02 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."]]