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 Struct Reference

#include <spi.h>

+ Collaboration diagram for spi_periph:

Data Fields

struct spi_transactiontrans [SPI_TRANSACTION_QUEUE_LEN]
 circular buffer holding transactions More...
uint8_t trans_insert_idx
uint8_t trans_extract_idx
enum SPIStatus status
 internal state of the peripheral More...
volatile uint8_t tx_idx_buf
volatile uint8_t rx_idx_buf
void * reg_addr
void * init_struct
enum SPIMode mode
volatile uint8_t suspend
 control for stop/resume of the fifo More...

Detailed Description

Definition at line 163 of file spi.h.

Field Documentation

enum SPIMode spi_periph::mode

Definition at line 174 of file spi.h.

Referenced by spi_init(), and spi_slave_init().

volatile uint8_t spi_periph::rx_idx_buf

Definition at line 171 of file spi.h.

enum SPIStatus spi_periph::status
volatile uint8_t spi_periph::suspend

control for stop/resume of the fifo

Definition at line 176 of file spi.h.

Referenced by spi_init(), spi_lock(), spi_next_transaction(), spi_resume(), spi_slave_init(), and spi_submit().

struct spi_transaction* spi_periph::trans[SPI_TRANSACTION_QUEUE_LEN]

circular buffer holding transactions

Definition at line 165 of file spi.h.

Referenced by process_rx_dma_interrupt(), process_tx_dma_interrupt(), spi_next_transaction(), spi_resume(), spi_slave_register(), spi_slave_wait(), and spi_submit().

volatile uint8_t spi_periph::tx_idx_buf

Definition at line 170 of file spi.h.

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