31 #include <mraa/gpio.hpp> 86 LSM6DS3H(
int bus=LSM6DS3H_DEFAULT_I2C_BUS,
87 int addr=LSM6DS3H_DEFAULT_I2C_ADDR,
180 void init(LSM6DS3H_XL_ODR_T acc_odr=LSM6DS3H_XL_ODR_104HZ,
181 LSM6DS3H_XL_FS_T acc_fs=LSM6DS3H_XL_FS_2G,
182 LSM6DS3H_G_ODR_T gyr_odr=LSM6DS3H_G_ODR_104HZ,
183 LSM6DS3H_G_FS_T gyr_fs=LSM6DS3H_G_FS_245DPS);
277 void installISR(LSM6DS3H_INTERRUPT_PINS_T intr,
int gpio,
279 void (*isr)(
void *),
void *arg);
305 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
314 void writeReg(uint8_t reg, uint8_t val);
API for the LSM6DS3H 3-axis Accelerometer and Gyroscope.
Definition: lsm6ds3h.hpp:67
void setGyroscopeFullScale(LSM6DS3H_G_FS_T fs)
Definition: lsm6ds3h.cxx:162
void setGyroscopeODR(LSM6DS3H_G_ODR_T odr)
Definition: lsm6ds3h.cxx:155
void reset()
Definition: lsm6ds3h.cxx:134
void init(LSM6DS3H_XL_ODR_T acc_odr=LSM6DS3H_XL_ODR_104HZ, LSM6DS3H_XL_FS_T acc_fs=LSM6DS3H_XL_FS_2G, LSM6DS3H_G_ODR_T gyr_odr=LSM6DS3H_G_ODR_104HZ, LSM6DS3H_G_FS_T gyr_fs=LSM6DS3H_G_FS_245DPS)
Definition: lsm6ds3h.cxx:57
void setInterruptPushPull(bool pp)
Definition: lsm6ds3h.cxx:183
void setAccelerometerODR(LSM6DS3H_XL_ODR_T odr)
Definition: lsm6ds3h.cxx:141
void installISR(LSM6DS3H_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: lsm6ds3h.cxx:195
uint8_t readReg(uint8_t reg)
Definition: lsm6ds3h.cxx:72
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: lsm6ds3h.cxx:77
void update()
Definition: lsm6ds3h.cxx:65
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
float getTemperature(bool fahrenheit=false)
Definition: lsm6ds3h.cxx:125
uint8_t getChipID()
Definition: lsm6ds3h.cxx:94
std::vector< float > getAccelerometer()
Definition: lsm6ds3h.cxx:104
uint8_t getStatus()
Definition: lsm6ds3h.cxx:190
void writeReg(uint8_t reg, uint8_t val)
Definition: lsm6ds3h.cxx:87
void setInterruptActiveHigh(bool high)
Definition: lsm6ds3h.cxx:176
Definition: lsm6ds3h.h:54
void setAccelerometerFullScale(LSM6DS3H_XL_FS_T fs)
Definition: lsm6ds3h.cxx:148
void setHighPerformance(bool enable)
Definition: lsm6ds3h.cxx:169
void uninstallISR(LSM6DS3H_INTERRUPT_PINS_T intr)
Definition: lsm6ds3h.cxx:205
std::vector< float > getGyroscope()
Definition: lsm6ds3h.cxx:117
LSM6DS3H(int bus=LSM6DS3H_DEFAULT_I2C_BUS, int addr=LSM6DS3H_DEFAULT_I2C_ADDR, int cs=-1)
Definition: lsm6ds3h.cxx:44
virtual ~LSM6DS3H()
Definition: lsm6ds3h.cxx:52
C API for the lsm6ds3h driver.