AEM
|
#include <adxl345.h>
Public Member Functions | |
YADXL345 (const YSPI *const y) | |
float | acquireChannel (uint8_t channel) |
bool | selftest (void) |
Public Member Functions inherited from YADC | |
YADC (const YSPI *const y) | |
Protected Member Functions | |
void | powerOn () const |
void | writeToSPI (byte __reg_address, byte __val) const |
void | readFromSPI (byte __reg_address, int num, byte _buff[]) const |
void | setRegisterBit (byte regAdress, int bitPos, bool state) const |
void | setSpiBit (bool spiBit) const |
void | setRangeSetting (int val) const |
void | readAccel (int *x, int *y, int *z) |
Protected Member Functions inherited from YADC | |
void | selfTestFailed () const |
Protected Attributes | |
byte | _buff [ADXL345_TO_READ] |
float | gains [3] |
Protected Attributes inherited from YADC | |
const YSPI *const | yspi = NULL |
Represents the ADXL345, acts like an ADC with 3 channels and 16 bit resolution. Encapsulates tha Adafruit driver and integrates YSPI functionality
YADXL345::YADXL345 | ( | const YSPI *const | y | ) |
|
virtual |
0=x, 1=y, 2=z : see getEvent for multipliers !!!
Implements YADC.
|
protected |
|
protected |
|
protected |
|
virtual |
0=x, 1=y, 2=z
Implements YADC.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |