Class hal::accelerometer
ClassList > hal > accelerometer
Acceleration sensing hardware abstraction interface.
#include <accelerometer.hpp>
Inherited by the following classes: hal::soft::inert_accelerometer
Classes
Type | Name |
---|---|
struct | read_t Result from reading the accelerometer. |
Public Functions
Type | Name |
---|---|
result< read_t > | read () Read the latest acceleration sensed by the device. |
virtual | ~accelerometer () = default |
Public Functions Documentation
function read
Read the latest acceleration sensed by the device.
inline result< read_t > hal::accelerometer::read ()
Returns:
result<read_t> - acceleration data
function ~accelerometer
virtual hal::accelerometer::~accelerometer () = default
The documentation for this class was generated from the following file libraries/include/libhal/accelerometer.hpp