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
 
   } 
 
   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 696 of file sensors.h.

Field Documentation

union { ... }
sensors_vec_t acceleration

Definition at line 717 of file sensors.h.

float data[16]

Definition at line 714 of file sensors.h.

uint64_t data[8]

Definition at line 760 of file sensors.h.

float distance

Definition at line 732 of file sensors.h.

uint32_t flags

Definition at line 768 of file sensors.h.

Definition at line 726 of file sensors.h.

heart_rate_event_t heart_rate

Definition at line 750 of file sensors.h.

float light

Definition at line 735 of file sensors.h.

sensors_vec_t magnetic

Definition at line 720 of file sensors.h.

meta_data_event_t meta_data

Definition at line 756 of file sensors.h.

sensors_vec_t orientation

Definition at line 723 of file sensors.h.

float pressure

Definition at line 738 of file sensors.h.

float relative_humidity

Definition at line 741 of file sensors.h.

int32_t reserved0

Definition at line 707 of file sensors.h.

uint32_t reserved1[3]

Definition at line 770 of file sensors.h.

int32_t sensor

Definition at line 701 of file sensors.h.

uint64_t step_counter

Definition at line 763 of file sensors.h.

float temperature

Definition at line 729 of file sensors.h.

int64_t timestamp

Definition at line 710 of file sensors.h.

int32_t type

Definition at line 704 of file sensors.h.

union { ... } u64
uncalibrated_event_t uncalibrated_gyro

Definition at line 744 of file sensors.h.

uncalibrated_event_t uncalibrated_magnetic

Definition at line 747 of file sensors.h.

int32_t version

Definition at line 698 of file sensors.h.


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