ASensorEvent

#include <sensor.h>

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

Summary

Public attributes

@85
union ASensorEvent::@84
acceleration
additional_info
data[16]
float
data[8]
uint64_t
distance
float
dynamic_sensor_meta
flags
uint32_t
gyro
heart_rate
light
float
magnetic
meta_data
pressure
float
relative_humidity
float
reserved0
int32_t
Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.
reserved1[3]
int32_t
sensor
int32_t
step_counter
uint64_t
temperature
float
timestamp
int64_t
do not use
type
int32_t
The sensor that generates this event.
u64
union ASensorEvent::@84::@88
uncalibrated_acceleration
uncalibrated_gyro
uncalibrated_magnetic
vector
version
int32_t

Public attributes

@85

union ASensorEvent::@84 ASensorEvent::@85

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

heart_rate

AHeartRateEvent ASensorEvent::heart_rate

light

float ASensorEvent::light

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

Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.

reserved1

int32_t ASensorEvent::reserved1[3]

sensor

int32_t ASensorEvent::sensor

step_counter

uint64_t ASensorEvent::step_counter

temperature

float ASensorEvent::temperature

timestamp

int64_t ASensorEvent::timestamp

do not use

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

The sensor that generates this event.

u64

union ASensorEvent::@84::@88 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