#include <ubuntu/visibility.h>
#include <stdint.h>
Go to the source code of this file.
◆ UASMagneticEvent
Opaque type describing a magnetic field reading.
Definition at line 32 of file magnetic.h.
◆ uas_magnetic_event_get_magnetic_field_x()
Query the intensity of the magnetic field in the x-axis.
- Returns
- The intensity of the magnetic field in the x-axis in micro-Tesla (uT)
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_magnetic_event_get_magnetic_field_y()
Query the intensity of the magnetic field in the x-axis.
- Returns
- The intensity of the magnetic field in the x-axis in micro-Tesla (uT)
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_magnetic_event_get_magnetic_field_z()
Query the intensity of the magnetic field in the x-axis.
- Returns
- The intensity of the magnetic field in the x-axis in micro-Tesla (uT)
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_magnetic_event_get_timestamp()
Query the timestamp of the sensor reading.
- Returns
- The timestamp of the sensor reading in [µs], timebase: monotonic clock.
- Parameters
-
[in] | event | The reading to be queried. |