27 #include <mraa/common.hpp> 28 #include <mraa/i2c.hpp> 30 #define AK8975_I2C_BUS 0 31 #define AK8975_DEFAULT_I2C_ADDR 0x0c 116 CNTL_SELFTEST = 0x08,
117 CNTL_FUSE_ACCESS = 0x0f
133 AK8975(
int bus=AK8975_I2C_BUS, uint8_t address=AK8975_DEFAULT_I2C_ADDR);
bool update(bool selfTest=false)
Definition: ak8975.cxx:141
API for the AK8975 magnetometer.
Definition: ak8975.hpp:53
ASTC_BITS_T
Definition: ak8975.hpp:123
ST1_BITS_T
Definition: ak8975.hpp:98
CNTL_MODES_T
Definition: ak8975.hpp:113
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
bool init()
Definition: ak8975.cxx:57
void getMagnetometer(float *x, float *y, float *z)
Definition: ak8975.cxx:230
~AK8975()
Definition: ak8975.cxx:53
ST2_BITS_T
Definition: ak8975.hpp:105
bool isReady()
Definition: ak8975.cxx:110
AK8975(int bus=AK8975_I2C_BUS, uint8_t address=AK8975_DEFAULT_I2C_ADDR)
Definition: ak8975.cxx:36
AK8975_REG_T
Definition: ak8975.hpp:59
bool selfTest()
Definition: ak8975.cxx:177
float adjustValue(float value, float adj)
Definition: ak8975.cxx:222
bool setMode(CNTL_MODES_T mode)
Definition: ak8975.cxx:94
bool waitforDeviceReady()
Definition: ak8975.cxx:120