31 #include <mraa/gpio.hpp> 92 BMG160(
int bus=BMG160_DEFAULT_I2C_BUS,
int addr=BMG160_DEFAULT_ADDR,
161 void init(BMG160_POWER_MODE_T pwr=BMG160_POWER_MODE_NORMAL,
162 BMG160_RANGE_T range=BMG160_RANGE_250,
163 BMG160_BW_T bw=BMG160_BW_400_47);
182 void setRange(BMG160_RANGE_T range);
238 void fifoConfig(BMG160_FIFO_MODE_T mode, BMG160_FIFO_DATA_SEL_T axes);
432 void installISR(BMG160_INTERRUPT_PINS_T intr,
int gpio,
434 void (*isr)(
void *),
void *arg);
460 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
469 void writeReg(uint8_t reg, uint8_t val);
void clearInterruptLatches()
Definition: bmg160.cxx:228
void setInterruptLatchBehavior(BMG160_RST_LATCH_T latch)
Definition: bmg160.cxx:240
void setRange(BMG160_RANGE_T range)
Definition: bmg160.cxx:133
void uninstallISR(BMG160_INTERRUPT_PINS_T intr)
Definition: bmg160.cxx:291
void init(BMG160_POWER_MODE_T pwr=BMG160_POWER_MODE_NORMAL, BMG160_RANGE_T range=BMG160_RANGE_250, BMG160_BW_T bw=BMG160_BW_400_47)
Definition: bmg160.cxx:57
uint8_t getInterruptStatus3()
Definition: bmg160.cxx:276
void enableRegisterShadowing(bool shadow)
Definition: bmg160.cxx:247
float getTemperature(bool fahrenheit=false)
Definition: bmg160.cxx:117
uint8_t getInterruptStatus0()
Definition: bmg160.cxx:261
void setInterruptMap0(uint8_t bits)
Definition: bmg160.cxx:185
uint8_t readReg(uint8_t reg)
Definition: bmg160.cxx:77
uint8_t getInterruptOutputControl()
Definition: bmg160.cxx:216
BMG160(int bus=BMG160_DEFAULT_I2C_BUS, int addr=BMG160_DEFAULT_ADDR, int cs=-1)
Definition: bmg160.cxx:44
std::vector< float > getGyroscope()
Definition: bmg160.cxx:109
uint8_t getChipID()
Definition: bmg160.cxx:99
API for the BMG160 16 bit Triaxial Gyroscope.
Definition: bmg160.hpp:74
void writeReg(uint8_t reg, uint8_t val)
Definition: bmg160.cxx:92
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
BMG160_RST_LATCH_T getInterruptLatchBehavior()
Definition: bmg160.cxx:235
uint8_t getInterruptEnable0()
Definition: bmg160.cxx:168
void setBandwidth(BMG160_BW_T bw)
Definition: bmg160.cxx:140
void fifoConfig(BMG160_FIFO_MODE_T mode, BMG160_FIFO_DATA_SEL_T axes)
Definition: bmg160.cxx:161
~BMG160()
Definition: bmg160.cxx:52
uint8_t getInterruptStatus1()
Definition: bmg160.cxx:266
uint8_t getInterruptStatus2()
Definition: bmg160.cxx:271
void setInterruptEnable0(uint8_t bits)
Definition: bmg160.cxx:173
void setInterruptSrc(uint8_t bits)
Definition: bmg160.cxx:209
void setPowerMode(BMG160_POWER_MODE_T power)
Definition: bmg160.cxx:147
void enableFIFO(bool useFIFO)
Definition: bmg160.cxx:72
void enableOutputFiltering(bool filter)
Definition: bmg160.cxx:254
void reset()
Definition: bmg160.cxx:126
uint8_t getInterruptMap0()
Definition: bmg160.cxx:180
uint8_t getInterruptMap1()
Definition: bmg160.cxx:192
C API for the bmg160 driver.
uint8_t getInterruptSrc()
Definition: bmg160.cxx:204
void update()
Definition: bmg160.cxx:65
void installISR(BMG160_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: bmg160.cxx:281
void setInterruptOutputControl(uint8_t bits)
Definition: bmg160.cxx:221
void setInterruptMap1(uint8_t bits)
Definition: bmg160.cxx:197
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: bmg160.cxx:82
void fifoSetWatermark(int wm)
Definition: bmg160.cxx:154