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 inandroid/sensor.h
union ASensorEvent::@101 ASensorEvent::@102
data
Declared inandroid/sensor.h
float ASensorEvent::data[16]
data
Declared inandroid/sensor.h
uint64_t ASensorEvent::data[8]
distance
Declared inandroid/sensor.h
float ASensorEvent::distance
dynamic_sensor_meta
Declared inandroid/sensor.h
ADynamicSensorEvent ASensorEvent::dynamic_sensor_meta
flags
Declared inandroid/sensor.h
uint32_t ASensorEvent::flags
light
Declared inandroid/sensor.h
float ASensorEvent::light
limited_axes_imu_uncalibrated
Declared inandroid/sensor.h
ALimitedAxesImuUncalibratedEvent ASensorEvent::limited_axes_imu_uncalibrated
pressure
Declared inandroid/sensor.h
float ASensorEvent::pressure
relative_humidity
Declared inandroid/sensor.h
float ASensorEvent::relative_humidity
reserved0
Declared inandroid/sensor.h
int32_t ASensorEvent::reserved0
do not use
reserved1
Declared inandroid/sensor.h
int32_t ASensorEvent::reserved1[3]
sensor
Declared inandroid/sensor.h
int32_t ASensorEvent::sensor
The sensor that generates this event.
step_counter
Declared inandroid/sensor.h
uint64_t ASensorEvent::step_counter
temperature
Declared inandroid/sensor.h
float ASensorEvent::temperature
timestamp
Declared inandroid/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 inandroid/sensor.h
int32_t ASensorEvent::type
Sensor type for the event, such as ASENSOR_TYPE_ACCELEROMETER.
u64
Declared inandroid/sensor.h
union ASensorEvent::@101::@105 ASensorEvent::u64
uncalibrated_acceleration
Declared inandroid/sensor.h
AUncalibratedEvent ASensorEvent::uncalibrated_acceleration
uncalibrated_magnetic
Declared inandroid/sensor.h
AUncalibratedEvent ASensorEvent::uncalibrated_magnetic
version
Declared inandroid/sensor.h
int32_t ASensorEvent::version