sensors_event_t Struct Reference

sensors_event_t Struct Reference

#include < sensors.h >

Data Fields

int32_t  version
 
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  flags
 
uint32_t  reserved1 [3]
 

Detailed Description

Union of the various types of sensor data that can be returned.

Definition at line 1053 of file sensors.h .

Field Documentation

union { ... }
sensors_vec_t acceleration

Definition at line 1074 of file sensors.h .

Definition at line 1122 of file sensors.h .

float data[16]

Definition at line 1071 of file sensors.h .

uint64_t data[8]

Definition at line 1126 of file sensors.h .

float distance

Definition at line 1089 of file sensors.h .

dynamic_sensor_meta_event_t dynamic_sensor_meta

Definition at line 1116 of file sensors.h .

uint32_t flags

Definition at line 1134 of file sensors.h .

Definition at line 1083 of file sensors.h .

Definition at line 1107 of file sensors.h .

float light

Definition at line 1092 of file sensors.h .

Definition at line 1077 of file sensors.h .

Definition at line 1113 of file sensors.h .

sensors_vec_t orientation

Definition at line 1080 of file sensors.h .

float pressure

Definition at line 1095 of file sensors.h .

float relative_humidity

Definition at line 1098 of file sensors.h .

int32_t reserved0

Definition at line 1064 of file sensors.h .

uint32_t reserved1[3]

Definition at line 1136 of file sensors.h .

int32_t sensor

Definition at line 1058 of file sensors.h .

uint64_t step_counter

Definition at line 1129 of file sensors.h .

float temperature

Definition at line 1086 of file sensors.h .

int64_t timestamp

Definition at line 1067 of file sensors.h .

int32_t type

Definition at line 1061 of file sensors.h .

union { ... } u64
uncalibrated_event_t uncalibrated_gyro

Definition at line 1101 of file sensors.h .

uncalibrated_event_t uncalibrated_magnetic

Definition at line 1104 of file sensors.h .

int32_t version

Definition at line 1055 of file sensors.h .


The documentation for this struct was generated from the following file: