Microchip® Advanced Software Framework

atmega128rfa1_avr477_remote/qdebug_remote/qdebug_transport.c File Reference
#include "touch_api.h"
#include "qdebug.h"
#include "qdebug_transport.h"
#include "qdebug_settings.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]
 RX Buffer globals. More...
 
uint16_t RX_index
 
uint8_t SequenceH =0
 
uint8_t SequenceL =0
 
uint8_t TX_Buffer [TX_BUFFER_SIZE]
 TX Buffer globals. More...
 
uint16_t TX_index
 

void Init_Buffers ( void  )

Initialize the send and receive buffers.

Initialize the send and receive buffers Called from QDebug_Init.

Called from QDebug_Init

References MESSAGE_START, and TX_Buffer.

uint8_t RX_Buffer[RX_BUFFER_SIZE]

RX Buffer globals.

uint16_t RX_index
uint8_t SequenceH =0
uint8_t SequenceL =0
uint8_t TX_Buffer[TX_BUFFER_SIZE]

TX Buffer globals.

uint16_t TX_index