sensors_event_t 结构参考文档

sensors_event_t 结构参考文档

#include < sensors.h >

数据字段

int32_t  版本
 
int32_t  sensor
 
int32_t  type
 
int32_t  reserved0
 
int64_t  timestamp
 
union {
   union {
      float    data [16]
 
       sensors_vec_t     acceleration
 
       sensors_vec_t     magnetic
 
       sensors_vec_t     orientation
 
       sensors_vec_t     gyro
 
      float    temperature
 
      float    distance
 
      float    light
 
      float    pressure
 
      float    relative_humidity
 
       uncalibrated_event_t     uncalibrated_gyro
 
       uncalibrated_event_t     uncalibrated_magnetic
 
       heart_rate_event_t     heart_rate
 
       meta_data_event_t     meta_data
 
       dynamic_sensor_meta_event_t     dynamic_sensor_meta
 
       additional_info_event_t     additional_info
 
   } 
 
   union {
      uint64_t    data [8]
 
      uint64_t    step_counter
 
   }    u64
 
}; 
 
uint32_t  标志
 
uint32_t  reserved1 [3]
 

详细说明

可返回的各种传感器数据的联合。

定义位于文件 sensors.h 的 1053 行。

字段文档

union { ... }
sensors_vec_t 加速度

定义位于文件 sensors.h 的 1074 行。

定义位于文件 sensors.h 的 1122 行。

float data[16]

定义位于文件 sensors.h 的 1071 行。

uint64_t data[8]

定义位于文件 sensors.h 的 1126 行。

float distance

定义位于文件 sensors.h 的 1089 行。

dynamic_sensor_meta_event_t dynamic_sensor_meta

定义位于文件 sensors.h 的 1116 行。

uint32_t 标志

定义位于文件 sensors.h 的 1134 行。

定义位于文件 sensors.h 的 1083 行。

定义位于文件 sensors.h 的 1107 行。

浮灯

定义位于文件 sensors.h 的 1092 行。

定义位于文件 sensors.h 的 1077 行。

定义位于文件 sensors.h 的 1113 行。

定义位于文件 sensors.h 的 1080 行中。

浮式压力

定义位于文件 sensors.h 的 1095 行。

float relative_humidity

定义位于文件 sensors.h 的 1098 行。

int32_t reserved0

定义位于文件 sensors.h 的 1064 行中。

uint32_t reserved1[3]

定义位于文件 sensors.h 的 1136 行。

int32_t sensor

定义位于文件 sensors.h 的 1058 行中。

uint64_t step_counter

定义位于文件 sensors.h 的 1129 行。

浮点温度

定义位于文件 sensors.h 的 1086 行。

int64_t timestamp

定义位于文件 sensors.h 的 1067 行。

int32_t 类型

定义位于文件 sensors.h 的 1061 行。

union { ... } u64
uncalibrated_event_t uncalibrated_gyro

定义位于文件 sensors.h 的 1101 行。

uncalibrated_event_t uncalibrated_magnetic

定义位于文件 sensors.h 的 1104 行。

int32_t 版本

定义位于文件 sensors.h 的 1055 行。


此结构体的文档是根据以下文件生成的: