Microchip® Advanced Software Framework

thirdparty/wireless/SmartConnect_6LoWPAN/core/dev/spi.h File Reference

    Basic SPI macros
Author
Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e Niclas Finne nfi@s.nosp@m.ics..nosp@m.se

Macros

#define SPI_FLUSH()
 
#define SPI_READ(data)
 
#define SPI_WAITFORTx_AFTER()   SPI_WAITFOREOTx()
 
#define SPI_WAITFORTx_BEFORE()
 
#define SPI_WAITFORTx_ENDED()
 
#define SPI_WRITE(data)
 
#define SPI_WRITE_FAST(data)
 

Functions

void spi_init (void)
 

Variables

unsigned char spi_busy
 

#define SPI_FLUSH ( )
Value:
do { \
SPI_RXBUF; \
} while(0);
#define SPI_READ (   data)
Value:
do { \
SPI_TXBUF = 0; \
SPI_WAITFOREORx(); \
data = SPI_RXBUF; \
} while(0)
static uint8_t data[SIO_RX_BUF_SIZE]
This is the buffer to hold the frame received through serial interface.
Definition: perf_api_serial_handler.c:133
#define SPI_WAITFORTx_AFTER ( )    SPI_WAITFOREOTx()
#define SPI_WAITFORTx_BEFORE ( )
#define SPI_WAITFORTx_ENDED ( )
#define SPI_WRITE (   data)
Value:
do { \
SPI_TXBUF = data; \
SPI_WAITFOREOTx(); \
} while(0)
static uint8_t data[SIO_RX_BUF_SIZE]
This is the buffer to hold the frame received through serial interface.
Definition: perf_api_serial_handler.c:133
#define SPI_WAITFORTx_BEFORE()
Definition: thirdparty/wireless/SmartConnect_6LoWPAN/core/dev/spi.h:50
#define SPI_WRITE_FAST (   data)
Value:
do { \
SPI_TXBUF = data; \
} while(0)
#define SPI_WAITFORTx_AFTER()
Definition: thirdparty/wireless/SmartConnect_6LoWPAN/core/dev/spi.h:51
static uint8_t data[SIO_RX_BUF_SIZE]
This is the buffer to hold the frame received through serial interface.
Definition: perf_api_serial_handler.c:133
#define SPI_WAITFORTx_BEFORE()
Definition: thirdparty/wireless/SmartConnect_6LoWPAN/core/dev/spi.h:50

void spi_init ( void  )

unsigned char spi_busy