Rock Monitoring  V 1.0
FXLS8471Q Class Reference

Class that handles the communication to the Accelerometer FXLS8471Q. More...

#include <FXLS8471Q.h>

Collaboration diagram for FXLS8471Q:
Collaboration graph

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
 

Detailed Description

Class that handles the communication to the Accelerometer FXLS8471Q.

Definition at line 26 of file FXLS8471Q.h.

Constructor & Destructor Documentation

FXLS8471Q::FXLS8471Q ( )

Definition at line 7 of file FXLS8471Q.cpp.

Member Function Documentation

uint8_t FXLS8471Q::getAccPitchRoll ( FXLS8471Q::structPitchRoll PitchRoll)

This method returns the values of the pitch and roll angles of the Accelerometer FXLS8471Q.

Parameters
FXLS8471Q::structPitchRoll* PitchRoll, pointer to pitch and roll angle data of one accelerometer
Returns
uint8_t state, gives back 1 for Error and 0 for ok

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.

Parameters
FXLS8471Q::structXYZ* xyz, pointer to x,y and z data of one accelerometer
Returns
uint8_t state, gives back 1 for Error and 0 for ok

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.

Parameters
intslaveAddr, value from 0 to 3, sets the i2c slave address

Definition at line 12 of file FXLS8471Q.cpp.

Member Data Documentation

uint8_t FXLS8471Q::i2cSlaveAddr
private

Definition at line 55 of file FXLS8471Q.h.


The documentation for this class was generated from the following files: