Contiki-Inga 3.x
|
ADXL345 Accelerometer interface implementationMore...
Go to the source code of this file.
Functions | |
int8_t | adxl345_available (void) |
Checks if ADXL345 is available. More... | |
int8_t | adxl345_init (void) |
Initialize the ADXL345 accelerometer. More... | |
void | adxl345_deinit (void) |
Deinitilizes the ADX345 accelerometer. More... | |
void | adxl345_set_g_range (uint8_t range) |
void | adxl345_set_data_rate (uint8_t rate) |
void | adxl345_set_fifomode (uint8_t mode) |
void | adxl345_set_powermode (uint8_t mode) |
uint8_t | adxl345_get_fifo_level () |
Returns the current fill level of the internal FIFO (when operating in FIFO/Stream mode). More... | |
int16_t | adxl345_get_x (void) |
This function returns the current measured acceleration at the x-axis of the adxl345. More... | |
int16_t | adxl345_get_y (void) |
This function returns the current measured acceleration at the y-axis of the adxl345. More... | |
int16_t | adxl345_get_z (void) |
This function returns the current measured acceleration at the z-axis of the adxl345. More... | |
acc_data_t | adxl345_get (void) |
This function returns the current measured acceleration of all axis (x,y,z) More... | |
void | adxl345_write (uint8_t reg, uint8_t data) |
This function writes data to the given register of the ADXL345. More... | |
uint8_t | adxl345_read (uint8_t reg) |
This function reads from the given register of the ADXL345. More... | |
ADXL345 Accelerometer interface implementation
Definition in file adxl345.c.