Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ Lis302dlConfig

struct Lis302dlConfig

Definition at line 44 of file lis302dl.h.

Data Fields
bool filt_data Filtered Data Selection.

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

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

Enumeration Type Documentation

◆ Lis302dlConfStatus

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

◆ lis302dl_set_default_config()

static void lis302dl_set_default_config ( struct Lis302dlConfig c)
inlinestatic