ASensorEvent

#include <sensor.h>

Information that describes a sensor event, refer to SensorEvent for additional documentation.

Summary

NOTE: changes to this struct has to be backward compatible and reflected in sensors_event_t

Public attributes

@102
union ASensorEvent::@101
acceleration
additional_info
data[16]
float
data[8]
uint64_t
distance
float
dynamic_sensor_meta
flags
uint32_t
gyro
head_tracker
heading
heart_rate
light
float
limited_axes_imu
limited_axes_imu_uncalibrated
magnetic
meta_data
pressure
float
relative_humidity
float
reserved0
int32_t
do not use
reserved1[3]
int32_t
sensor
int32_t
The sensor that generates this event.
step_counter
uint64_t
temperature
float
timestamp
int64_t
The time in nanoseconds at which the event happened, and its behavior is identical to SensorEvent::timestamp in Java API.
type
int32_t
Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.
u64
union ASensorEvent::@101::@105
uncalibrated_acceleration
uncalibrated_gyro
uncalibrated_magnetic
vector
version
int32_t

Public attributes

@102

union ASensorEvent::@101 ASensorEvent::@102

acceleration

ASensorVector ASensorEvent::acceleration

additional_info

AAdditionalInfoEvent ASensorEvent::additional_info

data

float ASensorEvent::data[16]

data

uint64_t ASensorEvent::data[8]

distance

float ASensorEvent::distance

dynamic_sensor_meta

ADynamicSensorEvent ASensorEvent::dynamic_sensor_meta

flags

uint32_t ASensorEvent::flags

gyro

ASensorVector ASensorEvent::gyro

head_tracker

AHeadTrackerEvent ASensorEvent::head_tracker

heading

AHeadingEvent ASensorEvent::heading

heart_rate

AHeartRateEvent ASensorEvent::heart_rate

light

float ASensorEvent::light

limited_axes_imu

ALimitedAxesImuEvent ASensorEvent::limited_axes_imu

limited_axes_imu_uncalibrated

ALimitedAxesImuUncalibratedEvent ASensorEvent::limited_axes_imu_uncalibrated

magnetic

ASensorVector ASensorEvent::magnetic

meta_data

AMetaDataEvent ASensorEvent::meta_data

pressure

float ASensorEvent::pressure

relative_humidity

float ASensorEvent::relative_humidity

reserved0

int32_t ASensorEvent::reserved0

do not use

reserved1

int32_t ASensorEvent::reserved1[3]

sensor

int32_t ASensorEvent::sensor

The sensor that generates this event.

step_counter

uint64_t ASensorEvent::step_counter

temperature

float ASensorEvent::temperature

timestamp

int64_t ASensorEvent::timestamp

The time in nanoseconds at which the event happened, and its behavior is identical to SensorEvent::timestamp in Java API.

type

int32_t ASensorEvent::type

Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.

u64

union ASensorEvent::@101::@105 ASensorEvent::u64

uncalibrated_acceleration

AUncalibratedEvent ASensorEvent::uncalibrated_acceleration

uncalibrated_gyro

AUncalibratedEvent ASensorEvent::uncalibrated_gyro

uncalibrated_magnetic

AUncalibratedEvent ASensorEvent::uncalibrated_magnetic

vector

ASensorVector ASensorEvent::vector

version

int32_t ASensorEvent::version