31 #include <mraa/gpio.hpp> 92 LIS2DS12(
int bus=LIS2DS12_DEFAULT_I2C_BUS,
93 int addr=LIS2DS12_DEFAULT_I2C_ADDR,
160 void init(LIS2DS12_ODR_T odr=LIS2DS12_ODR_100HZ,
161 LIS2DS12_FS_T fs=LIS2DS12_FS_2G);
179 void setODR(LIS2DS12_ODR_T odr);
263 void installISR(LIS2DS12_INTERRUPT_PINS_T intr,
int gpio,
265 void (*isr)(
void *),
void *arg);
292 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
301 void writeReg(uint8_t reg, uint8_t val);
void setInt2Config(uint8_t cfg)
Definition: lis2ds12.cxx:176
uint8_t getChipID()
Definition: lis2ds12.cxx:93
void setInterruptActiveHigh(bool high)
Definition: lis2ds12.cxx:155
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: lis2ds12.cxx:76
void setODR(LIS2DS12_ODR_T odr)
Definition: lis2ds12.cxx:127
std::vector< float > getAccelerometer()
Definition: lis2ds12.cxx:103
void update()
Definition: lis2ds12.cxx:64
void enableHPFiltering(bool filter)
Definition: lis2ds12.cxx:141
C API for the lis2ds12 driver.
void init(LIS2DS12_ODR_T odr=LIS2DS12_ODR_100HZ, LIS2DS12_FS_T fs=LIS2DS12_FS_2G)
Definition: lis2ds12.cxx:57
API for the LIS2DS12 3-axis Accelerometer.
Definition: lis2ds12.hpp:73
uint8_t readReg(uint8_t reg)
Definition: lis2ds12.cxx:71
void setInt1Config(uint8_t cfg)
Definition: lis2ds12.cxx:169
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
uint8_t getStatus()
Definition: lis2ds12.cxx:183
void reset()
Definition: lis2ds12.cxx:120
void enableInterruptLatching(bool latch)
Definition: lis2ds12.cxx:148
LIS2DS12(int bus=LIS2DS12_DEFAULT_I2C_BUS, int addr=LIS2DS12_DEFAULT_I2C_ADDR, int cs=-1)
Definition: lis2ds12.cxx:44
float getTemperature(bool fahrenheit=false)
Definition: lis2ds12.cxx:111
void setInterruptPushPull(bool pp)
Definition: lis2ds12.cxx:162
void setFullScale(LIS2DS12_FS_T fs)
Definition: lis2ds12.cxx:134
virtual ~LIS2DS12()
Definition: lis2ds12.cxx:52
void writeReg(uint8_t reg, uint8_t val)
Definition: lis2ds12.cxx:86
void uninstallISR(LIS2DS12_INTERRUPT_PINS_T intr)
Definition: lis2ds12.cxx:198
Definition: lis2ds12.h:54
void installISR(LIS2DS12_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg)
Definition: lis2ds12.cxx:188