31 #include <mraa/gpio.hpp> 95 BMA250E(
int bus=BMA250E_DEFAULT_I2C_BUS,
96 int addr=BMA250E_DEFAULT_ADDR,
165 void init(BMA250E_POWER_MODE_T pwr=BMA250E_POWER_MODE_NORMAL,
166 BMA250E_RANGE_T range=BMA250E_RANGE_2G,
167 BMA250E_BW_T bw=BMA250E_BW_250);
186 void setRange(BMA250E_RANGE_T range);
255 BMA250E_FIFO_DATA_SEL_T axes);
268 void setSelfTest(
bool sign,
bool amp, BMA250E_SELFTTEST_AXIS_T axis);
534 void installISR(BMA250E_INTERRUPT_PINS_T intr,
int gpio,
536 void (*isr)(
void *),
void *arg);
562 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
571 void writeReg(uint8_t reg, uint8_t val);
void uninstallISR(BMA250E_INTERRUPT_PINS_T intr)
Definition: bma250e.cxx:347
void setPowerMode(BMA250E_POWER_MODE_T power)
Definition: bma250e.cxx:147
BMA250E(int bus=BMA250E_DEFAULT_I2C_BUS, int addr=BMA250E_DEFAULT_ADDR, int cs=-1)
Definition: bma250e.cxx:44
void fifoSetWatermark(int wm)
Definition: bma250e.cxx:154
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: bma250e.cxx:82
uint8_t getInterruptEnable0()
Definition: bma250e.cxx:176
void setInterruptSrc(uint8_t bits)
Definition: bma250e.cxx:253
void setBandwidth(BMA250E_BW_T bw)
Definition: bma250e.cxx:140
void setInterruptMap1(uint8_t bits)
Definition: bma250e.cxx:229
C API for the bma250e driver.
uint8_t getInterruptEnable2()
Definition: bma250e.cxx:200
void enableRegisterShadowing(bool shadow)
Definition: bma250e.cxx:291
void writeReg(uint8_t reg, uint8_t val)
Definition: bma250e.cxx:92
uint8_t readReg(uint8_t reg)
Definition: bma250e.cxx:77
void setInterruptEnable0(uint8_t bits)
Definition: bma250e.cxx:181
uint8_t getInterruptSrc()
Definition: bma250e.cxx:248
void setInterruptOutputControl(uint8_t bits)
Definition: bma250e.cxx:265
float getTemperature(bool fahrenheit=false)
Definition: bma250e.cxx:117
void setLowPowerMode2()
Definition: bma250e.cxx:330
uint8_t getInterruptMap2()
Definition: bma250e.cxx:236
void setInterruptMap0(uint8_t bits)
Definition: bma250e.cxx:217
BMA250E_ORIENT_T getInterruptStatus3Orientation()
Definition: bma250e.cxx:325
uint8_t getInterruptStatus0()
Definition: bma250e.cxx:305
void reset()
Definition: bma250e.cxx:126
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setInterruptEnable1(uint8_t bits)
Definition: bma250e.cxx:193
uint8_t getInterruptStatus2()
Definition: bma250e.cxx:315
~BMA250E()
Definition: bma250e.cxx:52
void installISR(BMA250E_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: bma250e.cxx:337
void setSelfTest(bool sign, bool amp, BMA250E_SELFTTEST_AXIS_T axis)
Definition: bma250e.cxx:169
void clearInterruptLatches()
Definition: bma250e.cxx:272
void setInterruptEnable2(uint8_t bits)
Definition: bma250e.cxx:205
uint8_t getInterruptStatus1()
Definition: bma250e.cxx:310
void fifoConfig(BMA250E_FIFO_MODE_T mode, BMA250E_FIFO_DATA_SEL_T axes)
Definition: bma250e.cxx:161
void update()
Definition: bma250e.cxx:65
void enableFIFO(bool useFIFO)
Definition: bma250e.cxx:72
API for the BMA250E 10 bit Triaxial Accelerometer.
Definition: bma250e.hpp:76
void setInterruptMap2(uint8_t bits)
Definition: bma250e.cxx:241
std::vector< float > getAccelerometer()
Definition: bma250e.cxx:109
uint8_t getInterruptMap0()
Definition: bma250e.cxx:212
uint8_t getInterruptStatus3Bits()
Definition: bma250e.cxx:320
uint8_t getChipID()
Definition: bma250e.cxx:99
void enableOutputFiltering(bool filter)
Definition: bma250e.cxx:298
void init(BMA250E_POWER_MODE_T pwr=BMA250E_POWER_MODE_NORMAL, BMA250E_RANGE_T range=BMA250E_RANGE_2G, BMA250E_BW_T bw=BMA250E_BW_250)
Definition: bma250e.cxx:57
void setInterruptLatchBehavior(BMA250E_RST_LATCH_T latch)
Definition: bma250e.cxx:284
uint8_t getInterruptMap1()
Definition: bma250e.cxx:224
void setRange(BMA250E_RANGE_T range)
Definition: bma250e.cxx:133
BMA250E_RST_LATCH_T getInterruptLatchBehavior()
Definition: bma250e.cxx:279
uint8_t getInterruptEnable1()
Definition: bma250e.cxx:188
uint8_t getInterruptOutputControl()
Definition: bma250e.cxx:260