36 #include <mraa/gpio.hpp> 94 LIS3DH(
int bus = LIS3DH_DEFAULT_I2C_BUS,
int addr = LIS3DH_DEFAULT_I2C_ADDR,
int cs = -1);
115 init(LIS3DH_ODR_T odr = LIS3DH_ODR_100HZ, LIS3DH_FS_T fs = LIS3DH_FS_2G,
bool high_res =
true);
126 void enableAxes(
bool x_axis_enable,
bool y_axis_enable,
bool z_axis_enable);
206 void setODR(LIS3DH_ODR_T odr);
259 int readRegs(uint8_t reg, uint8_t* buffer,
int len);
268 void writeReg(uint8_t reg, uint8_t val);
void setODR(LIS3DH_ODR_T odr)
Definition: lis3dh.cxx:143
void enableADC(bool adc_enable)
Definition: lis3dh.cxx:127
API for the LIS3DH 3-axis Accelerometer.
Definition: lis3dh.hpp:75
uint8_t readReg(uint8_t reg)
Definition: lis3dh.cxx:184
void enableHPFiltering(bool filter)
Definition: lis3dh.cxx:110
LIS3DH(int bus=LIS3DH_DEFAULT_I2C_BUS, int addr=LIS3DH_DEFAULT_I2C_ADDR, int cs=-1)
Definition: lis3dh.cxx:49
uint8_t getChipID()
Definition: lis3dh.cxx:217
void writeReg(uint8_t reg, uint8_t val)
Definition: lis3dh.cxx:201
void setInterruptActiveHigh(bool high)
Definition: lis3dh.cxx:159
void installISR(LIS3DH_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: lis3dh.cxx:261
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
uint8_t getStatusAux()
Definition: lis3dh.cxx:255
void update()
Definition: lis3dh.cxx:209
void enableAxes(bool x_axis_enable, bool y_axis_enable, bool z_axis_enable)
Definition: lis3dh.cxx:70
void enableNormalMode()
Definition: lis3dh.cxx:102
std::vector< float > getAccelerometer()
Definition: lis3dh.cxx:229
void enableLPMode(bool lp_enable)
Definition: lis3dh.cxx:86
void setFullScale(LIS3DH_FS_T fs)
Definition: lis3dh.cxx:151
void init(LIS3DH_ODR_T odr=LIS3DH_ODR_100HZ, LIS3DH_FS_T fs=LIS3DH_FS_2G, bool high_res=true)
Definition: lis3dh.cxx:62
virtual ~LIS3DH()
Definition: lis3dh.cxx:56
void uninstallISR(LIS3DH_INTERRUPT_PINS_T intr)
Definition: lis3dh.cxx:273
C API for the lis3dh driver.
void setInt2Config(uint8_t cfg)
Definition: lis3dh.cxx:176
void enableInterruptLatching(bool int1_latch, bool int2_latch)
Definition: lis3dh.cxx:118
void enableHRMode(bool hr_enable)
Definition: lis3dh.cxx:94
uint8_t getStatus()
Definition: lis3dh.cxx:249
void setInt1Config(uint8_t cfg)
Definition: lis3dh.cxx:168
void enableTemperature(bool temperature_enable)
Definition: lis3dh.cxx:135
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: lis3dh.cxx:190
float getTemperature(bool fahrenheit=false)
Definition: lis3dh.cxx:238
void enableBDUMode(bool bdu_enable)
Definition: lis3dh.cxx:78