Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_slave_hs_arch.h File Reference

Highspeed SPI Slave Interface. More...

#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
 

Macros

#define SpiEnable()
 
#define SpiDisable()
 
#define SPI_SLAVE_HS_RX_BUFFER_SIZE   256
 
#define SPI_SLAVE_HS_TX_BUFFER_SIZE   64
 

Variables

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

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

#define SPI_SLAVE_HS_RX_BUFFER_SIZE   256

Definition at line 53 of file spi_slave_hs_arch.h.

Referenced by spi_slave_hs_getch(), and SSP_ISR().

#define SPI_SLAVE_HS_TX_BUFFER_SIZE   64

Definition at line 59 of file spi_slave_hs_arch.h.

Referenced by spi_slave_hs_transmit(), and SSP_ISR().

#define SpiDisable ( )
Value:
{ \
ClearBit(SSPCR1, SSE); \
}
#define SSPCR1
Definition: LPC21xx.h:223
#define SSE
Definition: LPC21xx.h:266

Definition at line 48 of file spi_slave_hs_arch.h.

Referenced by SPI1_ISR().

#define SpiEnable ( )
Value:
{ \
SetBit(SSPCR1, SSE); \
}
#define SSPCR1
Definition: LPC21xx.h:223
#define SSE
Definition: LPC21xx.h:266

Definition at line 44 of file spi_slave_hs_arch.h.

Referenced by ADS8344_start(), baro_scp_read(), baro_scp_start_high_res_measurement(), and lcd_spi_tx().

Variable Documentation

Definition at line 41 of file spi_slave_hs_arch.c.

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

uint16_t spi_slave_hs_rx_extract_idx

Definition at line 44 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_char_available(), spi_slave_hs_getch(), and SSP_ISR().

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

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

uint8_t spi_slave_hs_tx_extract_idx

Definition at line 46 of file spi_slave_hs_arch.c.

Referenced by spi_slave_hs_transmit(), and SSP_ISR().

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