Microchip® Advanced Software Framework

BitBangSPI_Master.c File Reference
#include <avr/io.h>
#include "BitBangSPI_Master.h"
#include "QDebugTransport.h"

Macros

#define CONCAT(A, B, C)   JOIN1( A, B, C )
 
#define JOIN1(A, B, C)   A ## B ## C
 

Functions

void BitBangSPI_Master_Init (void)
 BitBangSPI_Master_Init to Initialize BitBangSPI Interface. More...
 
uint8_t BitBangSPI_Send_Byte (uint8_t c)
 BitBangSPI_Send_Byte Send and Read one byte using BitBangSPI Interface. More...
 
void BitBangSPI_Send_Message (void)
 BitBangSPI_Send_Message to Send and Read one frame using BitBangSPI Interface. More...
 

#define CONCAT (   A,
  B,
 
)    JOIN1( A, B, C )
#define JOIN1 (   A,
  B,
 
)    A ## B ## C

void BitBangSPI_Master_Init ( void  )

BitBangSPI_Master_Init to Initialize BitBangSPI Interface.

Note
Called from QDebug_Init in QDebug.c

References CONCAT, MISO_BB, MOSI_BB, SCK_BB, SPI_BB_MISO, SPI_BB_MOSI, SPI_BB_SCK, SPI_BB_SS, and SS_BB.

Referenced by QDebug_Init().

uint8_t BitBangSPI_Send_Byte ( uint8_t  c)

BitBangSPI_Send_Byte Send and Read one byte using BitBangSPI Interface.

Parameters
inputis Data to send to slave output is Data read from slave
Note
Called from BitBangSPI_Send_Message in this file

References CONCAT, DELAYUS, MISO_BB, MOSI_BB, SCK_BB, SPI_BB_MISO, SPI_BB_MOSI, and SPI_BB_SCK.

Referenced by BitBangSPI_Send_Message().

void BitBangSPI_Send_Message ( void  )

BitBangSPI_Send_Message to Send and Read one frame using BitBangSPI Interface.

Note
Called from Send_Message in QDebugTransport.c

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

Referenced by Send_Message().