5 #include <SparkFun_ADXL345.h> 11 #define ADXL345_TO_READ (6) // Number of Bytes Read - Two Bytes Per Axis 14 #define YADXL345_NB_CHANNELS (3) 15 #define YADXL345_T_DELAY (15) 16 #define YADXL345_T_QUIET (15) 21 class YADXL345 : public YADC { 27 void writeToSPI(byte __reg_address, byte __val)
const;
28 void readFromSPI(byte __reg_address,
int num, byte _buff[])
const;
29 void setRegisterBit(byte regAdress,
int bitPos,
bool state)
const;
30 void setSpiBit(
bool spiBit)
const;
31 void setRangeSetting(
int val)
const;
32 void readAccel(
int* x,
int* y,
int* z);
36 float acquireChannel(uint8_t channel);
#define ADXL345_TO_READ
Definition: adxl345.h:11