![]() |
Rock Monitoring
V 1.0
|
Class that handles the communication to the Accelerometer FXLS8471Q. More...
#include <FXLS8471Q.h>

Classes | |
| struct | structPitchRoll |
| struct | structXYZ |
Public Member Functions | |
| FXLS8471Q () | |
| void | init (uint8_t slaveAddr) |
| This method initializes the Accelerometer FXLS8471Q. More... | |
| uint8_t | getAccXYZ (FXLS8471Q::structXYZ *xyz) |
| This method returns the values of the X, Y and Z axis of the Accelerometer FXLS8471Q. More... | |
| uint8_t | getAccPitchRoll (FXLS8471Q::structPitchRoll *PitchRoll) |
| This method returns the values of the pitch and roll angles of the Accelerometer FXLS8471Q. More... | |
| void | goToSleep () |
| This method sets the Accelerometer in Standby. More... | |
Private Attributes | |
| uint8_t | i2cSlaveAddr |
Class that handles the communication to the Accelerometer FXLS8471Q.
Definition at line 26 of file FXLS8471Q.h.
| FXLS8471Q::FXLS8471Q | ( | ) |
Definition at line 7 of file FXLS8471Q.cpp.
| uint8_t FXLS8471Q::getAccPitchRoll | ( | FXLS8471Q::structPitchRoll * | PitchRoll | ) |
This method returns the values of the pitch and roll angles of the Accelerometer FXLS8471Q.
| FXLS8471Q::structPitchRoll | * PitchRoll, pointer to pitch and roll angle data of one accelerometer |
Definition at line 125 of file FXLS8471Q.cpp.
| uint8_t FXLS8471Q::getAccXYZ | ( | FXLS8471Q::structXYZ * | xyz | ) |
This method returns the values of the X, Y and Z axis of the Accelerometer FXLS8471Q.
| FXLS8471Q::structXYZ | * xyz, pointer to x,y and z data of one accelerometer |
Definition at line 101 of file FXLS8471Q.cpp.
| void FXLS8471Q::goToSleep | ( | ) |
This method sets the Accelerometer in Standby.
Definition at line 166 of file FXLS8471Q.cpp.
| void FXLS8471Q::init | ( | uint8_t | slaveAddr | ) |
This method initializes the Accelerometer FXLS8471Q.
| int | slaveAddr, value from 0 to 3, sets the i2c slave address |
Definition at line 12 of file FXLS8471Q.cpp.
|
private |
Definition at line 55 of file FXLS8471Q.h.