Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
spi_slave_hs_arch.h File Reference
#include "std.h"
#include "pprzlink/pprzlink_device.h"
+ Include dependency graph for spi_slave_hs_arch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  spi_slave_hs


#define SpiEnable()
#define SpiDisable()


struct spi_slave_hs spi_slave_hs
uint16_t spi_slave_hs_rx_insert_idx
uint16_t spi_slave_hs_rx_extract_idx
uint8_t spi_slave_hs_rx_buffer [SPI_SLAVE_HS_RX_BUFFER_SIZE]
uint8_t spi_slave_hs_tx_insert_idx
uint8_t spi_slave_hs_tx_extract_idx
uint8_t spi_slave_hs_tx_buffer [SPI_SLAVE_HS_TX_BUFFER_SIZE]

Detailed Description

Highspeed SPI Slave Interface. SS on P0.20 Circular Buffer

Definition in file spi_slave_hs_arch.h.

Data Structure Documentation

◆ spi_slave_hs

struct spi_slave_hs

Definition at line 37 of file spi_slave_hs_arch.h.

+ Collaboration diagram for spi_slave_hs:
Data Fields
struct link_device device Generic device interface.

Macro Definition Documentation



Definition at line 53 of file spi_slave_hs_arch.h.



Definition at line 59 of file spi_slave_hs_arch.h.

◆ SpiDisable

#define SpiDisable ( )
{ \
ClearBit(SSPCR1, SSE); \

Definition at line 48 of file spi_slave_hs_arch.h.

◆ SpiEnable

#define SpiEnable ( )
{ \
SetBit(SSPCR1, SSE); \

Definition at line 44 of file spi_slave_hs_arch.h.

Variable Documentation

◆ spi_slave_hs

Definition at line 41 of file spi_slave_hs_arch.c.

◆ spi_slave_hs_rx_buffer

uint8_t spi_slave_hs_rx_buffer[SPI_SLAVE_HS_RX_BUFFER_SIZE]

Definition at line 45 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_getch(), and SSP_ISR().

◆ spi_slave_hs_rx_extract_idx

uint16_t spi_slave_hs_rx_extract_idx

Definition at line 55 of file spi_slave_hs_arch.h.

◆ spi_slave_hs_rx_insert_idx

uint16_t spi_slave_hs_rx_insert_idx

Definition at line 44 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_char_available(), and SSP_ISR().

◆ spi_slave_hs_tx_buffer

uint8_t spi_slave_hs_tx_buffer[SPI_SLAVE_HS_TX_BUFFER_SIZE]

Definition at line 47 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_transmit(), and SSP_ISR().

◆ spi_slave_hs_tx_extract_idx

uint8_t spi_slave_hs_tx_extract_idx

Definition at line 61 of file spi_slave_hs_arch.h.

◆ spi_slave_hs_tx_insert_idx

uint8_t spi_slave_hs_tx_insert_idx

Definition at line 46 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_transmit(), and SSP_ISR().

#define SSPCR1
Definition: LPC21xx.h:223
#define SSE
Definition: LPC21xx.h:266