Ubuntu Platform API
3.0.0
A library helping with tight integration into the Ubuntu platform
|
|
Go to the documentation of this file.
17 #ifndef UBUNTU_APPLICATION_SENSORS_MAGNETIC_EVENT_H_
18 #define UBUNTU_APPLICATION_SENSORS_MAGNETIC_EVENT_H_
81 #endif // UBUNTU_APPLICATION_SENSORS_MAGNETIC_EVENT_H_
UBUNTU_DLL_PUBLIC UStatus uas_magnetic_event_get_magnetic_field_y(UASMagneticEvent *event, float *value)
Query the intensity of the magnetic field in the x-axis.
UBUNTU_DLL_PUBLIC UStatus uas_magnetic_event_get_magnetic_field_x(UASMagneticEvent *event, float *value)
Query the intensity of the magnetic field in the x-axis.
void UASMagneticEvent
Opaque type describing a magnetic field reading.
UbuntuStatus
Indicates the status of an operation.
#define UBUNTU_DLL_PUBLIC
UBUNTU_DLL_PUBLIC uint64_t uas_magnetic_event_get_timestamp(UASMagneticEvent *event)
Query the timestamp of the sensor reading.
UBUNTU_DLL_PUBLIC UStatus uas_magnetic_event_get_magnetic_field_z(UASMagneticEvent *event, float *value)
Query the intensity of the magnetic field in the x-axis.