Sensors_poll_device_1 结构参考
Sensors_poll_device_1 结构参考
#include < sensors.h >
数据字段 | |
联盟{ | |
结构体sensor_poll_device_t v0 | |
结构体{ | |
结构体hw_device_t公共 | |
int(*激活)(结构sensors_poll_device_t *dev,int 传感器句柄,int 已启用) | |
int(* setDelay )(结构sensors_poll_device_t *dev,int传感器_句柄, int64_t 采样周期_ns) | |
int(* poll )(结构sensors_poll_device_t *dev, sensor_event_t *数据, 整数计数) | |
} | |
}; | |
整数(* | 批处理)(结构sensors_poll_device_1 * dev,int传感器_句柄,int标志,int64_t采样周期_ns,int64_t max_report_latency_ns) |
整数(* | 刷新)(结构sensors_poll_device_1 * dev,intsensor_handle) |
整数(* | 注入_传感器_数据)(结构sensors_poll_device_1 * dev,常量传感器_事件_t *数据) |
空白(* | 保留进程[7])(无效) |
详细说明
现场文档
联盟 { ... } |
int(* activate)( structsensors_poll_device_t *dev,intsensor_handle,intenabled) |
int(*批)(结构sensors_poll_device_1 *dev,intsensor_handle,int标志,int64_t采样周期_ns,int64_t max_report_latency_ns) |
结构体hw_device_t公共 |
int(* 刷新)( structsensors_poll_device_1 *dev, intsensor_handle) |
int(*inject_sensor_data)( structsensors_poll_device_1 *dev, constsensors_event_t *data) |
int(* poll)(结构sensors_poll_device_t *dev, sensors_event_t *data, int count) |
int(* setDelay)( structsensors_poll_device_t *dev,intsensor_handle,int64_tsampling_period_ns) |
结构体sensor_poll_device_t v0 |
该结构的文档是从以下文件生成的:
- 硬件/libhardware/include/hardware/sensors.h