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