31 #include <mraa/gpio.hpp> 83 LSM303D(
int bus=LSM303D_DEFAULT_I2C_BUS,
84 int addr=LSM303D_DEFAULT_I2C_ADDR);
167 void init(LSM303D_M_RES_T res);
228 int readRegs(uint8_t reg, uint8_t *buffer,
int len);
237 void writeReg(uint8_t reg, uint8_t val);
void init(LSM303D_M_RES_T res)
Definition: lsm303d.cxx:50
std::vector< float > getMagnetometer()
Definition: lsm303d.cxx:91
void setMagnetometerFullScale(LSM303D_MFS_T fs)
Definition: lsm303d.cxx:124
float getTemperature()
Definition: lsm303d.cxx:112
LSM303D(int bus=LSM303D_DEFAULT_I2C_BUS, int addr=LSM303D_DEFAULT_I2C_ADDR)
Definition: lsm303d.cxx:37
uint8_t readReg(uint8_t reg)
Definition: lsm303d.cxx:64
~LSM303D()
Definition: lsm303d.cxx:45
int readRegs(uint8_t reg, uint8_t *buffer, int len)
Definition: lsm303d.cxx:69
void update()
Definition: lsm303d.cxx:57
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
std::vector< float > getAccelerometer()
Definition: lsm303d.cxx:104
void writeReg(uint8_t reg, uint8_t val)
Definition: lsm303d.cxx:79
API for the LSM303D 3-Axis Geomagnetic Sensor.
Definition: lsm303d.hpp:68
void setAccelerometerFullScale(LSM303D_AFS_T fs)
Definition: lsm303d.cxx:117
void setAccelerometerODR(LSM303D_AODR_T odr)
Definition: lsm303d.cxx:130
void setMagnetometerODR(LSM303D_MODR_T odr)
Definition: lsm303d.cxx:137
C API for the lsm303d driver.