31 #include <mraa/gpio.hpp> 95 BMM150(
int bus=BMM150_DEFAULT_I2C_BUS,
96 int addr=BMM150_DEFAULT_ADDR,
151 void init(BMM150_USAGE_PRESETS_T usage=BMM150_USAGE_HIGH_ACCURACY);
204 void setOpmode(BMM150_OPERATION_MODE_T opmode);
297 void installISR(BMM150_INTERRUPT_PINS_T intr,
int gpio,
299 void (*isr)(
void *),
void *arg);
325 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
334 void writeReg(uint8_t reg, uint8_t val);
uint8_t getChipID()
Definition: bmm150.cxx:87
uint8_t getInterruptEnable()
Definition: bmm150.cxx:138
void setPowerBit(bool power)
Definition: bmm150.cxx:119
void setPresetMode(BMM150_USAGE_PRESETS_T usage)
Definition: bmm150.cxx:181
void writeReg(uint8_t reg, uint8_t val)
Definition: bmm150.cxx:80
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: bmm150.cxx:70
void reset()
Definition: bmm150.cxx:105
C API for the bmm150 driver.
API for the BMM150 3-Axis Geomagnetic Sensor.
Definition: bmm150.hpp:76
~BMM150()
Definition: bmm150.cxx:46
BMM150(int bus=BMM150_DEFAULT_I2C_BUS, int addr=BMM150_DEFAULT_ADDR, int cs=-1)
Definition: bmm150.cxx:38
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setRepetitionsXY(uint8_t reps)
Definition: bmm150.cxx:167
void setRepetitionsZ(uint8_t reps)
Definition: bmm150.cxx:174
void setInterruptConfig(uint8_t bits)
Definition: bmm150.cxx:155
void setOpmode(BMM150_OPERATION_MODE_T opmode)
Definition: bmm150.cxx:126
uint8_t getInterruptConfig()
Definition: bmm150.cxx:150
void installISR(BMM150_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: bmm150.cxx:188
std::vector< float > getMagnetometer()
Definition: bmm150.cxx:97
void uninstallISR(BMM150_INTERRUPT_PINS_T intr)
Definition: bmm150.cxx:198
void setInterruptEnable(uint8_t bits)
Definition: bmm150.cxx:143
void setOutputDataRate(BMM150_DATA_RATE_T odr)
Definition: bmm150.cxx:112
uint8_t getInterruptStatus()
Definition: bmm150.cxx:162
uint8_t readReg(uint8_t reg)
Definition: bmm150.cxx:65
void update()
Definition: bmm150.cxx:58
void init(BMM150_USAGE_PRESETS_T usage=BMM150_USAGE_HIGH_ACCURACY)
Definition: bmm150.cxx:51
BMM150_OPERATION_MODE_T getOpmode()
Definition: bmm150.cxx:133