Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lis302dl_spi.c File Reference

Driver for LIS302DL 3-axis accelerometer from ST using SPI. More...

+ Include dependency graph for lis302dl_spi.c:

Go to the source code of this file.

Functions

void lis302dl_spi_init (struct Lis302dl_Spi *lis, struct spi_periph *spi_p, uint8_t slave_idx)
 
static void lis302dl_spi_write_to_reg (struct Lis302dl_Spi *lis, uint8_t _reg, uint8_t _val)
 
static void lis302dl_spi_send_config (struct Lis302dl_Spi *lis)
 
void lis302dl_spi_start_configure (struct Lis302dl_Spi *lis)
 
void lis302dl_spi_read (struct Lis302dl_Spi *lis)
 
void lis302dl_spi_event (struct Lis302dl_Spi *lis)
 

Detailed Description

Driver for LIS302DL 3-axis accelerometer from ST using SPI.

Definition in file lis302dl_spi.c.

Function Documentation

void lis302dl_spi_read ( struct Lis302dl_Spi lis)

Definition at line 128 of file lis302dl_spi.c.

References Lis302dl_Spi::initialized, spi_transaction::input_length, LIS302DL_REG_STATUS, spi_transaction::output_length, Lis302dl_Spi::spi_p, spi_submit(), Lis302dl_Spi::spi_trans, SPITransDone, spi_transaction::status, and Lis302dl_Spi::tx_buf.

Referenced by lis302dl_spi_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lis302dl_spi_start_configure ( struct Lis302dl_Spi lis)

Definition at line 118 of file lis302dl_spi.c.

References Lis302dl_Spi::init_status, lis302dl_spi_send_config(), LIS_CONF_UNINIT, Lis302dl_Spi::spi_trans, SPITransDone, SPITransSuccess, and spi_transaction::status.

Referenced by lis302dl_spi_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lis302dl_spi_write_to_reg ( struct Lis302dl_Spi lis,
uint8_t  _reg,
uint8_t  _val 
)
static

Definition at line 64 of file lis302dl_spi.c.

References spi_transaction::input_length, spi_transaction::output_length, Lis302dl_Spi::spi_p, spi_submit(), Lis302dl_Spi::spi_trans, and Lis302dl_Spi::tx_buf.

Referenced by lis302dl_spi_send_config().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: