Microchip® Advanced Software Framework

BitBangSPI_Master.h File Reference

Macros

#define DELAY1US(...)   DELAY50US()
 
#define DELAY50US()
 
#define MISO_BB   17
 
#define MOSI_BB   16
 
#define SCK_BB   15
 
#define SPI_BB   A
 

Functions

void BitBangSPI_Master_Init (void)
 Initialize BitBangSPI Interface. More...
 
void BitBangSPI_Send_Message (void)
 Send and Read one frame using BitBangSPI Interface. More...
 

#define DELAY1US (   ...)    DELAY50US()

Referenced by BitBangSPI_Send_Byte().

#define DELAY50US ( )
Value:
do{ \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); nop(); \
} while(0);
#define nop()
Definition: compiler.h:1049

Referenced by BitBangSPI_Send_Byte().

#define MISO_BB   17
#define MOSI_BB   16
#define SCK_BB   15
#define SPI_BB   A

void BitBangSPI_Master_Init ( void  )

Initialize BitBangSPI Interface.

References CONCAT, MISO_BB, MOSI_BB, PORT, SCK_BB, and SPI_BB.

Referenced by QDebug_Init().

void BitBangSPI_Send_Message ( void  )

Send and Read one frame using BitBangSPI Interface.

References BitBangSPI_Send_Byte(), RxHandler(), TX_Buffer, and TX_index.

Referenced by Send_Message().