Interface definition for the ADXL345. More...
Interface definition for the ADXL345.
Definition in file adxl345.h.
Go to the source code of this file.
Data Structures | |
struct | adxl345_data_t |
ADXL345 result vector struct. More... | |
struct | adxl345_interrupt_t |
Interrupt configuration struct for the ADXL345 sensor. More... | |
struct | adxl345_params_t |
Configuration struct for the ADXL345 sensor. More... | |
struct | adxl345_t |
Device descriptor for the ADXL345 sensor. More... | |
Functions | |
int | adxl345_init (adxl345_t *dev, const adxl345_params_t *params) |
Initialize the ADXL345 accelerometer driver. | |
void | adxl345_read (const adxl345_t *dev, adxl345_data_t *data) |
Read accelerometer's data. | |
void | adxl345_set_interrupt (const adxl345_t *dev) |
set ADXL345's interrupts configuration | |
void | adxl345_set_measure (const adxl345_t *dev) |
set ADXL345's measure mode | |
void | adxl345_set_standby (const adxl345_t *dev) |
Set standby mode. | |
void | adxl345_set_sleep (const adxl345_t *dev) |
Set sleep mode. | |
void | adxl345_set_autosleep (const adxl345_t *dev) |
Set autosleep mode. | |
void | adxl345_set_bandwidth_rate (const adxl345_t *dev, uint8_t bw_rate) |
Set bandwidth rate. | |
void | adxl345_set_fifo_mode (const adxl345_t *dev, uint8_t mode, uint8_t output, uint8_t value) |
Set fifo mode with its configuration. | |