27 #include "../bus/BusDevice.h"
28 #define BUFFER_SIZE 0x80
40 PLUSMINUS_1POINT5_G = 1,
69 unsigned char *registers;
80 BMA180::BANDWIDTH bandwidth;
81 BMA180::MODECONFIG modeConfig;
83 int convertAcceleration(
int msb_addr,
int lsb_addr);
84 void calculatePitchAndRoll();
BMA180(BusDevice *device)
Definition: BMA180.cxx:43
BMA180::MODECONFIG getModeConfig()
Definition: BMA180.cxx:164
BMA180::RANGE getRange()
Definition: BMA180.cxx:114
int readFullSensorState()
Definition: BMA180.cxx:56
float getPitch()
Definition: BMA180.hxx:104
A class to control a BMA180 accelerometer (untested)
Definition: BMA180.hxx:36
int setModeConfig(BMA180::MODECONFIG mode)
int getAccelerationY()
Definition: BMA180.hxx:101
void displayMode(int iterations)
Definition: BMA180.cxx:80
float getRoll()
Definition: BMA180.hxx:105
Definition: BusDevice.cpp:27
int getAccelerationZ()
Definition: BMA180.hxx:102
int setBandwidth(BMA180::BANDWIDTH bandwidth)
Definition: BMA180.cxx:151
This class is the parent of I2C and SPI devices, so that devices that use both SPI and I2C interfaces...
Definition: BusDevice.h:37
int getAccelerationX()
Definition: BMA180.hxx:100
float getTemperature()
Definition: BMA180.cxx:91
BMA180::BANDWIDTH getBandwidth()
Definition: BMA180.cxx:139
int setRange(BMA180::RANGE range)
Definition: BMA180.cxx:125