sensors_poll_device_1 مرجع ساختار
sensors_poll_device_1 مرجع ساختار
#include < sensors.h >
فیلدهای داده | |
اتحاد. اتصال { | |
struct sensors_poll_device_t v0 | |
ساختار { | |
struct hw_device_t مشترک | |
int(* activate )(struct sensors_poll_device_t *dev, int sensor_handle, int فعال) | |
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 *داده، تعداد int) | |
} | |
}; | |
int(* | دسته )(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) |
خالی(* | Reserved_procs [7]) (باطل) |
توصیف همراه با جزئیات
مستندات میدانی
اتحاد. اتصال { ... } |
int(* activate)(struct sensors_poll_device_t *dev, int sensor_handle, int enabled) |
int(* batch)(struct sensors_poll_device_1 *dev, int sensor_handle, int flags, int64_t sampling_period_ns, int64_t max_report_latency_ns) |
struct hw_device_t مشترک |
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) |
int(* poll)(struct sensors_poll_device_t *dev, sensors_event_t *data, int count) |
int(* setDelay)(struct sensors_poll_device_t *dev, int sensor_handle, int64_t sampling_period_ns) |
struct sensors_poll_device_t v0 |
مستندات این ساختار از فایل زیر تولید شده است:
- hardware/libhardware/include/hardware/ sensors.h