Android Hardware Abstraction Layer
Data Fields
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
 
      meta_data_event_t   meta_data
 
   } 
 
   union {
      uint64_t   data [8]
 
      uint64_t   step_counter
 
   }   u64
 
}; 
 
uint32_t reserved1 [4]
 

Detailed Description

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

Definition at line 812 of file sensors.h.

Field Documentation

union { ... }
sensors_vec_t acceleration

Definition at line 833 of file sensors.h.

float data[16]

Definition at line 830 of file sensors.h.

uint64_t data[8]

Definition at line 873 of file sensors.h.

float distance

Definition at line 848 of file sensors.h.

Definition at line 842 of file sensors.h.

float light

Definition at line 851 of file sensors.h.

sensors_vec_t magnetic

Definition at line 836 of file sensors.h.

meta_data_event_t meta_data

Definition at line 869 of file sensors.h.

sensors_vec_t orientation

Definition at line 839 of file sensors.h.

float pressure

Definition at line 854 of file sensors.h.

float relative_humidity

Definition at line 857 of file sensors.h.

int32_t reserved0

Definition at line 823 of file sensors.h.

uint32_t reserved1[4]

Definition at line 879 of file sensors.h.

int32_t sensor

Definition at line 817 of file sensors.h.

uint64_t step_counter

Definition at line 876 of file sensors.h.

float temperature

Definition at line 845 of file sensors.h.

int64_t timestamp

Definition at line 826 of file sensors.h.

int32_t type

Definition at line 820 of file sensors.h.

union { ... } u64
uncalibrated_event_t uncalibrated_gyro

Definition at line 860 of file sensors.h.

uncalibrated_event_t uncalibrated_magnetic

Definition at line 863 of file sensors.h.

int32_t version

Definition at line 814 of file sensors.h.


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