Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
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

uint32_t spi
 SPI peripheral identifier. More...
 
uint32_t spidr
 SPI DataRegister address for DMA. More...
 
uint32_t dma
 DMA controller base address (DMA1 or DMA2) More...
 
uint8_t rx_chan
 receive DMA channel (or stream on F4) number More...
 
uint8_t tx_chan
 transmit DMA channel (or stream on F4) number More...
 
uint32_t rx_chan_sel
 F4 only: actual receive DMA channel number. More...
 
uint32_t tx_chan_sel
 F4 only: actual transmit DMA channel number. More...
 
uint8_t rx_nvic_irq
 receive interrupt More...
 
uint8_t tx_nvic_irq
 transmit interrupt More...
 
uint16_t 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...
 
uint16_t 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...
 
uint8_t 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 88 of file spi_arch.c.

Field Documentation

struct locm3_spi_comm spi_periph_dma::comm

current communication paramters

Definition at line 102 of file spi_arch.c.

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

uint8_t spi_periph_dma::comm_sig

comm config signature used to check for changes

Definition at line 103 of file spi_arch.c.

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

uint8_t spi_periph_dma::rx_chan

receive DMA channel (or stream on F4) number

Definition at line 92 of file spi_arch.c.

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

uint32_t spi_periph_dma::rx_chan_sel

F4 only: actual receive DMA channel number.

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().

uint16_t spi_periph_dma::rx_dummy_buf

dummy rx buffer for receive only cases

Definition at line 100 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 101 of file spi_arch.c.

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

uint8_t spi_periph_dma::rx_nvic_irq

receive interrupt

Definition at line 96 of file spi_arch.c.

Referenced by spi1_arch_init(), and spi2_arch_init().

uint32_t spi_periph_dma::spi

SPI peripheral identifier.

Definition at line 89 of file spi_arch.c.

uint32_t spi_periph_dma::spidr
uint8_t spi_periph_dma::tx_chan

transmit DMA channel (or stream on F4) number

Definition at line 93 of file spi_arch.c.

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

uint32_t spi_periph_dma::tx_chan_sel

F4 only: actual transmit DMA channel number.

Definition at line 95 of file spi_arch.c.

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

uint16_t spi_periph_dma::tx_dummy_buf

dummy tx buffer for receive only cases

Definition at line 98 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 99 of file spi_arch.c.

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

uint8_t spi_periph_dma::tx_nvic_irq

transmit interrupt

Definition at line 97 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: