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

◆ lis302dl_spi_event()

◆ lis302dl_spi_init()

◆ lis302dl_spi_read()

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:

◆ lis302dl_spi_send_config()

◆ lis302dl_spi_start_configure()

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:

◆ lis302dl_spi_write_to_reg()

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: