|
void | WriteRegister (uint8_t reg, uint8_t value) |
| Write some data into a register. More...
|
|
void | WriteBuffer (uint8_t reg, uint8_t *buffer, uint8_t length) |
| Send a buffer of data to the device. More...
|
|
uint8_t | ReadRegister (uint8_t reg) |
| Read some data from a register. More...
|
|
void | ReadBuffer (uint8_t reg, uint8_t *buffer, uint8_t length) |
| Read a buffer of data from the device. More...
|
|
ADXL345::ADXL345 |
( |
I2C_TypeDef * |
I2C_Port, |
|
|
uint8_t |
address = 0xA6 , |
|
|
uint32_t |
speed = 100000 |
|
) |
| |
Initialize a ADXL345 in I2C.
- Parameters
-
I2C | Port |
Slave | address |
Bus | speed (Hz) |
- Return values
-
Get acceleration values in g.
- Parameters
-
- Return values
-
g | values (3xfloat structure) |
Get raw data.
- Parameters
-
- Return values
-
raw | values (3xint16_t structure) |
Get the roll an pitch angles in radians and degres.
- Parameters
-
- Return values
-
raw | values (rollpitch structure) |
The documentation for this class was generated from the following files:
- /Users/blackswords/Public/Dropbox/Projet M1/roverSTM/Libraries/MyLib/ADXL345.h
- /Users/blackswords/Public/Dropbox/Projet M1/roverSTM/Libraries/MyLib/ADXL345.cpp