28 #define BMI160_I2C_BUS 0 29 #define BMI160_DEFAULT_I2C_ADDR 0x69 91 BMI160(
int bus=BMI160_I2C_BUS,
int address=BMI160_DEFAULT_I2C_ADDR,
92 int csPin=-1,
bool enableMag=
true);
228 std::string
busRead(
int addr,
int reg,
int len);
242 void busWrite(
int addr,
int reg, std::string data);
void setAccelerometerScale(BMI160_ACC_RANGE_T scale)
Definition: bmi160.cxx:53
BMI160 3-axis Accelerometer, Gyroscope and (optionally) a Magnetometer.
Definition: bmi160.h:65
float * getMagnetometer()
Definition: bmi160.cxx:96
unsigned int getSensorTime()
Definition: bmi160.cxx:110
float * getGyroscope()
Definition: bmi160.cxx:87
UPM API for the BMI160 3-axis Accelerometer, Gyroscope and Magnetometer.
Definition: bmi160.hpp:75
void setGyroscopeScale(BMI160_GYRO_RANGE_T scale)
Definition: bmi160.cxx:58
void enableMagnetometer(bool enable)
Definition: bmi160.cxx:105
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
~BMI160()
Definition: bmi160.cxx:43
BMI160(int bus=BMI160_I2C_BUS, int address=BMI160_DEFAULT_I2C_ADDR, int csPin=-1, bool enableMag=true)
Definition: bmi160.cxx:35
void busWrite(int addr, int reg, std::string data)
Definition: bmi160.cxx:136
void update()
Definition: bmi160.cxx:48
float * getAccelerometer()
Definition: bmi160.cxx:78
std::string busRead(int addr, int reg, int len)
Definition: bmi160.cxx:115