android_sensor-sys 0.1.4

Bindings to Android Sensor Library.

Crate android_sensor_sys [] [src]

Structs

AHeartRateEvent
AMetaDataEvent
ASensorEvent
ASensorVector

A sensor event.

AUncalibratedEvent

Enums

ASensor

ASensor is an opaque type that provides information about an hardware sensors.

ASensorEventQueue

ASensorEventQueue is an opaque type that provides access to ASensorEvent from hardware sensors.

ASensorManager

ASensorManager is an opaque type to manage sensors and events queues.

ReportingMode
SensorStatus
SensorType

Constants

ASENSOR_MAGNETIC_FIELD_EARTH_MAX

Maximum magnetic field on Earth's surface in uT

ASENSOR_MAGNETIC_FIELD_EARTH_MIN

Minimum magnetic field on Earth's surface in uT

ASENSOR_STANDARD_GRAVITY

Earth's gravity in m/s2

Functions

ASensorEventQueue_disableSensor
ASensorEventQueue_enableSensor
ASensorEventQueue_getEvents
ASensorEventQueue_hasEvents
ASensorEventQueue_setEventRate
ASensorManager_createEventQueue
ASensorManager_destroyEventQueue
ASensorManager_getDefaultSensor
ASensorManager_getDefaultSensorEx
ASensorManager_getInstance
ASensorManager_getSensorList
ASensor_getFifoMaxEventCount
ASensor_getFifoReservedEventCount
ASensor_getMinDelay
ASensor_getName
ASensor_getReportingMode
ASensor_getResolution
ASensor_getStringType
ASensor_getType
ASensor_getVendor
ASensor_isWakeUpSensor

Type Definitions

ASensorList

ASensorList is an array of reference to ASensor.

ASensorRef

ASensorRef is a type for constant pointers to ASensor.