Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
spi_slave_hs_arch.h File Reference
#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]
 

Macro Definition Documentation

#define SPI_SLAVE_HS_RX_BUFFER_SIZE   256

Definition at line 47 of file spi_slave_hs_arch.h.

#define SPI_SLAVE_HS_TX_BUFFER_SIZE   64

Definition at line 60 of file spi_slave_hs_arch.h.

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

Definition at line 42 of file spi_slave_hs_arch.h.

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

Definition at line 38 of file spi_slave_hs_arch.h.

#define SpiSlaveChAvailable ( )    (spi_slave_hs_rx_insert_idx != spi_slave_hs_rx_extract_idx)

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

#define SpiSlaveTransmit (   data)
Value:
{\
if (temp != spi_slave_hs_tx_extract_idx) /* there is room left */ \
{ \
} \
}
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 65 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 40 of file spi_slave_hs_arch.c.

uint16_t spi_slave_hs_rx_extract_idx

Definition at line 39 of file spi_slave_hs_arch.c.

uint16_t spi_slave_hs_rx_insert_idx

Definition at line 39 of file spi_slave_hs_arch.c.

uint8_t spi_slave_hs_tx_buffer[SPI_SLAVE_HS_TX_BUFFER_SIZE]

Definition at line 42 of file spi_slave_hs_arch.c.

uint8_t spi_slave_hs_tx_extract_idx

Definition at line 41 of file spi_slave_hs_arch.c.

uint8_t spi_slave_hs_tx_insert_idx

Definition at line 41 of file spi_slave_hs_arch.c.