Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lis302dl.h File Reference

ST LIS302DL 3-axis accelerometer driver common interface (I2C and SPI). More...

+ Include dependency graph for lis302dl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Lis302dlConfig
 

Enumerations

enum  Lis302dlConfStatus {
  LIS_CONF_UNINIT = 0, LIS_CONF_WHO_AM_I = 1, LIS_CONF_WHO_AM_I_OK = 2, LIS_CONF_REG2 = 3,
  LIS_CONF_REG3 = 4, LIS_CONF_ENABLE = 5, LIS_CONF_DONE = 6
}
 

Functions

static void lis302dl_set_default_config (struct Lis302dlConfig *c)
 

Detailed Description

ST LIS302DL 3-axis accelerometer driver common interface (I2C and SPI).

Definition in file lis302dl.h.


Data Structure Documentation

struct Lis302dlConfig

Definition at line 44 of file lis302dl.h.

Data Fields
bool_t filt_data Filtered Data Selection.

FALSE: internal filter bypassed; TRUE: data from internal filter sent to output register

bool_t int_invert Invert Interrupt FALSE: active high, TRUE: active low.
enum Lis302dlRanges range g Range
enum Lis302dlRates rate Data Output Rate.
bool_t spi_3_wire Set 3-wire SPI mode, if FALSE: 4-wire SPI mode.

Enumeration Type Documentation

Enumerator
LIS_CONF_UNINIT 
LIS_CONF_WHO_AM_I 
LIS_CONF_WHO_AM_I_OK 
LIS_CONF_REG2 
LIS_CONF_REG3 
LIS_CONF_ENABLE 
LIS_CONF_DONE 

Definition at line 34 of file lis302dl.h.

Function Documentation

static void lis302dl_set_default_config ( struct Lis302dlConfig c)
inlinestatic