Cảm biến_poll_device_1 Tham chiếu cấu trúc
#include < sensors.h >
Trường dữ liệu | |
liên hiệp { | |
cấu trúc cảm biến_poll_device_t v0 | |
struct { | |
struct hw_device_t common | |
int (* kích hoạt ) (cấu trúc cảm biến_poll_device_t * dev, int sensor_handle, int đã bật) | |
int (* setDelay ) (struct sensor_poll_device_t * dev, int sensor_handle, int64_t sampling_period_ns) | |
int (* thăm dò ) (struct sensor_poll_device_t * dữ liệu dev, sensor_event_t *, số int) | |
} | |
}; | |
int (* | batch ) (struct sensor_poll_device_1 * dev, int sensor_handle, int flags, int64_t sampling_period_ns, int64_t max_report_latency_ns) |
int (* | flush ) (struct sensor_poll_device_1 * dev, int sensor_handle) |
int (* | injection_sensor_data ) (struct sensor_poll_device_1 * dev, const sensor_event_t * data) |
void (* | Reser_procs [7]) (vô hiệu) |
miêu tả cụ thể
Định nghĩa tại dòng 1301 của tệp cảm biến.h.
Tài liệu thực địa
liên hiệp { ... } |
int (* kích hoạt) (struct sensor_poll_device_t * dev, int sensor_handle, int enable) |
Định nghĩa tại dòng 1318 của tệp cảm biến.h.
int (* batch) (struct sensor_poll_device_1 * dev, int sensor_handle, int flags, int64_t sampling_period_ns, int64_t max_report_latency_ns) |
Định nghĩa tại dòng 1349 của tệp cảm biến.h.
struct hw_device_t common |
Định nghĩa ở dòng 1309 của tệp cảm biến.h.
int (* flush) (struct sensor_poll_device_1 * dev, int sensor_handle) |
Định nghĩa ở dòng 1365 của tệp cảm biến.h.
int (* injection_sensor_data) (struct sensor_poll_device_1 * dev, const sensor_event_t * data) |
Định nghĩa tại dòng 1374 của tệp cảm biến.h.
int (* thăm dò) (struct sensor_poll_device_t * dev, sensor_event_t * data, int count) |
Trả về một mảng dữ liệu cảm biến.
Định nghĩa tại dòng 1333 của tệp cảm biến.h.
void (* Reser_procs [7]) (void) |
Định nghĩa tại dòng 1376 của tệp cảm biến.h.
int (* setDelay) (struct sensor_poll_device_t * dev, int sensor_handle, int64_t sampling_period_ns) |
Đặt khoảng thời gian của sự kiện tính bằng nano giây cho một cảm biến nhất định. Nếu sampling_period_ns> max_delay thì nó sẽ bị cắt bớt thành max_delay và nếu sampling_period_ns <min_delay thì nó sẽ được thay thế bằng min_delay.
Định nghĩa tại dòng 1327 của tệp cảm biến.h.
cấu trúc cảm biến_poll_device_t v0 |
Định nghĩa tại dòng 1306 của tệp cảm biến.h.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
- phần cứng / libhardware / bao gồm / phần cứng / cảm biến.h