ASensorEvent

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

Declared in android/sensor.h
union ASensorEvent::@101 ASensorEvent::@102

acceleration

Declared in android/sensor.h
ASensorVector ASensorEvent::acceleration

additional_info

Declared in android/sensor.h
AAdditionalInfoEvent ASensorEvent::additional_info

data

Declared in android/sensor.h
float ASensorEvent::data[16]

data

Declared in android/sensor.h
uint64_t ASensorEvent::data[8]

distance

Declared in android/sensor.h
float ASensorEvent::distance

dynamic_sensor_meta

Declared in android/sensor.h
ADynamicSensorEvent ASensorEvent::dynamic_sensor_meta

flags

Declared in android/sensor.h
uint32_t ASensorEvent::flags

gyro

Declared in android/sensor.h
ASensorVector ASensorEvent::gyro

head_tracker

Declared in android/sensor.h
AHeadTrackerEvent ASensorEvent::head_tracker

heading

Declared in android/sensor.h
AHeadingEvent ASensorEvent::heading

heart_rate

Declared in android/sensor.h
AHeartRateEvent ASensorEvent::heart_rate

light

Declared in android/sensor.h
float ASensorEvent::light

limited_axes_imu

Declared in android/sensor.h
ALimitedAxesImuEvent ASensorEvent::limited_axes_imu

limited_axes_imu_uncalibrated

Declared in android/sensor.h
ALimitedAxesImuUncalibratedEvent ASensorEvent::limited_axes_imu_uncalibrated

magnetic

Declared in android/sensor.h
ASensorVector ASensorEvent::magnetic

meta_data

Declared in android/sensor.h
AMetaDataEvent ASensorEvent::meta_data

pressure

Declared in android/sensor.h
float ASensorEvent::pressure

relative_humidity

Declared in android/sensor.h
float ASensorEvent::relative_humidity

reserved0

Declared in android/sensor.h
int32_t ASensorEvent::reserved0

do not use

reserved1

Declared in android/sensor.h
int32_t ASensorEvent::reserved1[3]

sensor

Declared in android/sensor.h
int32_t ASensorEvent::sensor

The sensor that generates this event.

step_counter

Declared in android/sensor.h
uint64_t ASensorEvent::step_counter

temperature

Declared in android/sensor.h
float ASensorEvent::temperature

timestamp

Declared in android/sensor.h
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

Declared in android/sensor.h
int32_t ASensorEvent::type

Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.

u64

Declared in android/sensor.h
union ASensorEvent::@101::@105 ASensorEvent::u64

uncalibrated_acceleration

Declared in android/sensor.h
AUncalibratedEvent ASensorEvent::uncalibrated_acceleration

uncalibrated_gyro

Declared in android/sensor.h
AUncalibratedEvent ASensorEvent::uncalibrated_gyro

uncalibrated_magnetic

Declared in android/sensor.h
AUncalibratedEvent ASensorEvent::uncalibrated_magnetic

vector

Declared in android/sensor.h
ASensorVector ASensorEvent::vector

version

Declared in android/sensor.h
int32_t ASensorEvent::version