31 #include <mraa/gpio.hpp> 85 LSM6DSL(
int bus=LSM6DSL_DEFAULT_I2C_BUS,
86 int addr=LSM6DSL_DEFAULT_I2C_ADDR,
179 void init(LSM6DSL_XL_ODR_T acc_odr=LSM6DSL_XL_ODR_104HZ,
180 LSM6DSL_XL_FS_T acc_fs=LSM6DSL_XL_FS_2G,
181 LSM6DSL_G_ODR_T gyr_odr=LSM6DSL_G_ODR_104HZ,
182 LSM6DSL_G_FS_T gyr_fs=LSM6DSL_G_FS_245DPS);
293 void installISR(LSM6DSL_INTERRUPT_PINS_T intr,
int gpio,
295 void (*isr)(
void *),
void *arg);
321 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
330 void writeReg(uint8_t reg, uint8_t val);
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: lsm6dsl.cxx:77
LSM6DSL(int bus=LSM6DSL_DEFAULT_I2C_BUS, int addr=LSM6DSL_DEFAULT_I2C_ADDR, int cs=-1)
Definition: lsm6dsl.cxx:44
void setHighPerformance(bool enable)
Definition: lsm6dsl.cxx:169
void uninstallISR(LSM6DSL_INTERRUPT_PINS_T intr)
Definition: lsm6dsl.cxx:212
C API for the lsm6dsl driver.
void installISR(LSM6DSL_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: lsm6dsl.cxx:202
std::vector< float > getAccelerometer()
Definition: lsm6dsl.cxx:104
void setAccelerometerODR(LSM6DSL_XL_ODR_T odr)
Definition: lsm6dsl.cxx:141
virtual ~LSM6DSL()
Definition: lsm6dsl.cxx:52
void setGyroscopeFullScale(LSM6DSL_G_FS_T fs)
Definition: lsm6dsl.cxx:162
void update()
Definition: lsm6dsl.cxx:65
void setInterruptActiveHigh(bool high)
Definition: lsm6dsl.cxx:176
std::vector< float > getGyroscope()
Definition: lsm6dsl.cxx:117
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setAccelerometerFullScale(LSM6DSL_XL_FS_T fs)
Definition: lsm6dsl.cxx:148
void setGyroscopeODR(LSM6DSL_G_ODR_T odr)
Definition: lsm6dsl.cxx:155
void writeReg(uint8_t reg, uint8_t val)
Definition: lsm6dsl.cxx:87
uint8_t getChipID()
Definition: lsm6dsl.cxx:94
API for the LSM6DSL 3-axis Accelerometer and Gyroscope.
Definition: lsm6dsl.hpp:66
uint8_t getStatus()
Definition: lsm6dsl.cxx:190
void init(LSM6DSL_XL_ODR_T acc_odr=LSM6DSL_XL_ODR_104HZ, LSM6DSL_XL_FS_T acc_fs=LSM6DSL_XL_FS_2G, LSM6DSL_G_ODR_T gyr_odr=LSM6DSL_G_ODR_104HZ, LSM6DSL_G_FS_T gyr_fs=LSM6DSL_G_FS_245DPS)
Definition: lsm6dsl.cxx:57
void reset()
Definition: lsm6dsl.cxx:134
float getTemperature(bool fahrenheit=false)
Definition: lsm6dsl.cxx:125
void setAccelerometerOffsets(int x, int y, int z, bool weight)
Definition: lsm6dsl.cxx:195
void setInterruptPushPull(bool pp)
Definition: lsm6dsl.cxx:183
uint8_t readReg(uint8_t reg)
Definition: lsm6dsl.cxx:72