27 #include <mraa/common.hpp>
28 #include <mraa/i2c.hpp>
30 #define AK8975_I2C_BUS 0
31 #define AK8975_DEFAULT_I2C_ADDR 0x0c
115 CNTL_SELFTEST = 0x08,
116 CNTL_FUSE_ACCESS = 0x0f
132 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.h:52
ASTC_BITS_T
Definition: ak8975.h:122
ST1_BITS_T
Definition: ak8975.h:97
CNTL_MODES_T
Definition: ak8975.h:112
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.h:104
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.h:58
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