Microchip® Advanced Software Framework

qdebug_transport.c File Reference
#include "touch_api.h"
#include "qdebug.h"
#include "qdebug_transport.h"
#include "qdebug_settings.h"
#include "vendor_data.h"
#include "app_config.h"

Functions

uint8_t GetChar (void)
 Get one byte from the Receive BufferRX_index is post incremented. More...
 
void Init_Buffers (void)
 Initialize the send and receive buffers. More...
 
void PutChar (uint8_t data)
 Puts one byte in the Transmit BufferTX_index is post incremented. More...
 
void PutInt (uint16_t data)
 Puts two bytes in the Transmit BufferBig Endian. More...
 
uint8_t RxHandler (uint8_t c)
 Handles the incomming bytes from the interface selected in QDebugSettings.h and puts the bytes in the RX_BufferUsed by SPI and TWI receive handlers. More...
 
void Send_Message (void)
 Send the content of the TX_Buffer to the USB Bridge using the interface selected in QDebugSettings.hCalled from the transmit functions in QDebug.c. More...
 

Variables

uint8_t RX_Buffer [RX_BUFFER_SIZE]
 
uint16_t RX_index
 
uint8_t SequenceH =0
 
uint8_t SequenceL =0
 
uint8_t TX_Buffer [TX_BUFFER_SIZE]
 
uint16_t TX_index
 

void Init_Buffers ( void  )

Initialize the send and receive buffers.

Called from QDebug_Init

References MESSAGE_START, and TX_Buffer.

Referenced by QDebug_Init().

uint8_t RX_Buffer[RX_BUFFER_SIZE]
uint16_t RX_index
uint8_t SequenceH =0

Referenced by QDebug_SendData().

uint8_t SequenceL =0
uint8_t TX_Buffer[TX_BUFFER_SIZE]

Referenced by Init_Buffers().

uint16_t TX_index