#include <ubuntu/visibility.h>
#include <stdint.h>
Go to the source code of this file.
◆ UASAccelerometerEvent
Opaque type describing an accelerometer reading.
Definition at line 34 of file accelerometer.h.
◆ uas_accelerometer_event_get_acceleration_x()
Query the acceleration in x-axis direction.
- Returns
- The acceleration in x-axis direction.
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_accelerometer_event_get_acceleration_y()
Query the acceleration in y-axis direction.
- Returns
- The acceleration in y-axis direction.
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_accelerometer_event_get_acceleration_z()
Query the acceleration in z-axis direction.
- Returns
- The acceleration in z-axis direction.
- Parameters
-
[in] | event | The reading to be queried. |
◆ uas_accelerometer_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. |