Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_periph_dma Struct Reference

This structure keeps track of specific config for each SPI bus, which allows for more code reuse. More...

+ Collaboration diagram for spi_periph_dma:

Data Fields

u32 spi
 SPI peripheral identifier. More...
 
u32 spidr
 SPI DataRegister address for DMA. More...
 
u32 dma
 DMA controller base address (DMA1 or DMA2) More...
 
u8 rx_chan
 receive DMA channel number More...
 
u8 tx_chan
 transmit DMA channel number More...
 
u8 rx_nvic_irq
 receive interrupt More...
 
u8 tx_nvic_irq
 transmit interrupt More...
 
u16 tx_dummy_buf
 dummy tx buffer for receive only cases More...
 
bool_t tx_extra_dummy_dma
 extra tx dummy dma flag for tx_len < rx_len More...
 
u16 rx_dummy_buf
 dummy rx buffer for receive only cases More...
 
bool_t rx_extra_dummy_dma
 extra rx dummy dma flag for tx_len > rx_len More...
 
struct locm3_spi_comm comm
 current communication paramters More...
 
u8 comm_sig
 comm config signature used to check for changes More...
 

Detailed Description

This structure keeps track of specific config for each SPI bus, which allows for more code reuse.

Definition at line 83 of file spi_arch.c.

Field Documentation

struct locm3_spi_comm spi_periph_dma::comm

current communication paramters

Definition at line 95 of file spi_arch.c.

Referenced by spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u8 spi_periph_dma::comm_sig

comm config signature used to check for changes

Definition at line 96 of file spi_arch.c.

Referenced by spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u32 spi_periph_dma::dma

DMA controller base address (DMA1 or DMA2)

Definition at line 86 of file spi_arch.c.

Referenced by process_rx_dma_interrupt(), process_tx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u8 spi_periph_dma::rx_chan

receive DMA channel number

Definition at line 87 of file spi_arch.c.

Referenced by process_rx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u16 spi_periph_dma::rx_dummy_buf

dummy rx buffer for receive only cases

Definition at line 93 of file spi_arch.c.

Referenced by process_rx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

bool_t spi_periph_dma::rx_extra_dummy_dma

extra rx dummy dma flag for tx_len > rx_len

Definition at line 94 of file spi_arch.c.

Referenced by process_rx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u8 spi_periph_dma::rx_nvic_irq

receive interrupt

Definition at line 89 of file spi_arch.c.

Referenced by spi1_arch_init(), and spi2_arch_init().

u32 spi_periph_dma::spi

SPI peripheral identifier.

Definition at line 84 of file spi_arch.c.

u32 spi_periph_dma::spidr

SPI DataRegister address for DMA.

Definition at line 85 of file spi_arch.c.

Referenced by process_rx_dma_interrupt(), process_tx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u8 spi_periph_dma::tx_chan

transmit DMA channel number

Definition at line 88 of file spi_arch.c.

Referenced by process_tx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u16 spi_periph_dma::tx_dummy_buf

dummy tx buffer for receive only cases

Definition at line 91 of file spi_arch.c.

Referenced by process_tx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

bool_t spi_periph_dma::tx_extra_dummy_dma

extra tx dummy dma flag for tx_len < rx_len

Definition at line 92 of file spi_arch.c.

Referenced by process_tx_dma_interrupt(), spi1_arch_init(), spi2_arch_init(), and spi_start_dma_transaction().

u8 spi_periph_dma::tx_nvic_irq

transmit interrupt

Definition at line 90 of file spi_arch.c.

Referenced by spi1_arch_init(), and spi2_arch_init().


The documentation for this struct was generated from the following file: