Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adxl345.h File Reference

Analog Devices ADXL345 accelerometer driver common interface (I2C and SPI). More...

#include "std.h"
#include "peripherals/adxl345_regs.h"
+ Include dependency graph for adxl345.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Adxl345Config
 

Enumerations

enum  Adxl345ConfStatus {
  ADXL_CONF_UNINIT = 0, ADXL_CONF_RATE = 1, ADXL_CONF_INT = 2, ADXL_CONF_FORMAT = 3,
  ADXL_CONF_ENABLE = 4, ADXL_CONF_DONE = 5
}
 

Functions

static void adxl345_set_default_config (struct Adxl345Config *c)
 
static uint8_t adxl345_data_format (struct Adxl345Config *c)
 

Detailed Description

Analog Devices ADXL345 accelerometer driver common interface (I2C and SPI).

Definition in file adxl345.h.

Enumeration Type Documentation

Enumerator
ADXL_CONF_UNINIT 
ADXL_CONF_RATE 
ADXL_CONF_INT 
ADXL_CONF_FORMAT 
ADXL_CONF_ENABLE 
ADXL_CONF_DONE 

Definition at line 36 of file adxl345.h.

Function Documentation

static uint8_t adxl345_data_format ( struct Adxl345Config c)
inlinestatic
static void adxl345_set_default_config ( struct Adxl345Config c)
inlinestatic