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_slave_hs_arch.h File Reference

Highspeed SPI Slave Interface. More...

#include "std.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.

Macros

#define SpiEnable()
 
#define SpiDisable()
 
#define SPI_SLAVE_HS_RX_BUFFER_SIZE   256
 
#define SpiSlaveChAvailable()   (spi_slave_hs_rx_insert_idx != spi_slave_hs_rx_extract_idx)
 
#define SpiSlaveGetch()
 
#define SPI_SLAVE_HS_TX_BUFFER_SIZE   64
 
#define SpiSlaveTransmit(data)
 

Variables

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.

Macro Definition Documentation

#define SPI_SLAVE_HS_RX_BUFFER_SIZE   256

Definition at line 46 of file spi_slave_hs_arch.h.

Referenced by SSP_ISR().

#define SPI_SLAVE_HS_TX_BUFFER_SIZE   64

Definition at line 59 of file spi_slave_hs_arch.h.

Referenced by SSP_ISR().

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

Definition at line 41 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 37 of file spi_slave_hs_arch.h.

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

#define SpiSlaveChAvailable ( )    (spi_slave_hs_rx_insert_idx != spi_slave_hs_rx_extract_idx)

Definition at line 51 of file spi_slave_hs_arch.h.

#define SpiSlaveGetch ( )
Value:
({\
ret; \
})
uint16_t spi_slave_hs_rx_extract_idx
#define SPI_SLAVE_HS_RX_BUFFER_SIZE
unsigned char uint8_t
Definition: types.h:14
uint8_t spi_slave_hs_rx_buffer[SPI_SLAVE_HS_RX_BUFFER_SIZE]

Definition at line 53 of file spi_slave_hs_arch.h.

#define SpiSlaveTransmit (   data)
Value:
{\
if (temp != spi_slave_hs_tx_extract_idx) /* there is room left */ \
{ \
} \
}
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
uint8_t spi_slave_hs_tx_buffer[SPI_SLAVE_HS_TX_BUFFER_SIZE]
#define SPI_SLAVE_HS_TX_BUFFER_SIZE
unsigned char uint8_t
Definition: types.h:14
uint8_t spi_slave_hs_tx_extract_idx
uint8_t spi_slave_hs_tx_insert_idx

Definition at line 64 of file spi_slave_hs_arch.h.

Variable Documentation

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

uint16_t spi_slave_hs_rx_extract_idx

Definition at line 44 of file spi_slave_hs_arch.c.

Referenced by SSP_ISR().

uint16_t spi_slave_hs_rx_insert_idx

Definition at line 44 of file spi_slave_hs_arch.c.

Referenced by 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 SSP_ISR().

uint8_t spi_slave_hs_tx_extract_idx

Definition at line 46 of file spi_slave_hs_arch.c.

Referenced by SSP_ISR().

uint8_t spi_slave_hs_tx_insert_idx

Definition at line 46 of file spi_slave_hs_arch.c.

Referenced by SSP_ISR().