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

SPI peripheral structure. More...

#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

SPI peripheral structure.

Definition at line 168 of file spi.h.

Field Documentation

enum SPIMode spi_periph::mode

Definition at line 179 of file spi.h.

Referenced by spi_init(), and spi_slave_init().

volatile uint8_t spi_periph::rx_idx_buf

Definition at line 176 of file spi.h.

enum SPIStatus spi_periph::status

internal state of the peripheral

Definition at line 174 of file spi.h.

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

volatile uint8_t spi_periph::suspend

control for stop/resume of the fifo

Definition at line 181 of file spi.h.

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

uint8_t spi_periph::trans_insert_idx
volatile uint8_t spi_periph::tx_idx_buf

Definition at line 175 of file spi.h.

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