Inert Magnetometer#

Defined in namespace hal::soft

#include <libhal-soft/inert/inert_magnetometer.hpp>

class inert_magnetometer : public hal::magnetometer#

Inert implementation of magnetic field strength sensing hardware.

Public Static Functions

static inline result<inert_magnetometer> create(read_t p_result)#

Factory function to create an inert_magnetometer object.

Parameters:

p_result – - read_t object to return when read() is called

Returns:

result<inert_magnetometer> - Constructed inert_magnetometer object