Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
ST LIS302DL 3-axis accelerometer driver common interface (I2C and SPI). More...
#include "peripherals/lis302dl_regs.h"
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) |
ST LIS302DL 3-axis accelerometer driver common interface (I2C and SPI).
Definition in file lis302dl.h.
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. |
enum 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.
|
inlinestatic |
Definition at line 56 of file lis302dl.h.
References Lis302dlConfig::filt_data, Lis302dlConfig::int_invert, LIS302DL_RANGE_2G, LIS302DL_RATE_100HZ, Lis302dlConfig::range, Lis302dlConfig::rate, and Lis302dlConfig::spi_3_wire.
Referenced by lis302dl_spi_init().