sensors_poll_device_1 結構體參考資料
   sensors_poll_device_1 結構體參考資料
 
  
   #include <
   
    sensors.h
   
   >
  
 
| 資料欄位 | |
| union { | |
| struct sensors_poll_device_t v0 | |
| struct { | |
| 結構體 hw_device_t 通用 | |
| 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) | 
詳細說明
欄位說明文件
| union { ... } | 
| 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 common | 
| 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) | 
定義位於檔案 sensors.h 的第 1374 行。
| 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
