Microchip® Advanced Software Framework

atmega128rfa1_avr477_remote/qdebug_remote/qdebug_transport.h File Reference
#include "touch_api.h"

Macros

#define INT(a, b)   ((a << 8) | b)
 
#define MESSAGE_START   0x1B
 
#define RX_BUFFER_SIZE   (QT_NUM_CHANNELS*3)+10
 
#define STATE_DATA   3
 
#define STATE_IDLE   0
 
#define STATE_LENGTH1   1
 
#define STATE_LENGTH2   2
 
#define TX_BUFFER_SIZE   (QT_NUM_CHANNELS*3)+10
 

Functions

uint8_t GetChar (void)
 Get one byte from the Receive Buffer RX_index is post incremented. More...
 
void Init_Buffers (void)
 Initialize the send and receive buffers Called from QDebug_Init. More...
 
void PutChar (uint8_t data)
 Puts one byte in the Transmit Buffer TX_index is post incremented. More...
 
void PutInt (uint16_t data)
 Puts two bytes in the Transmit Buffer Big 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.h Called from the transmit functions in QDebug.c. More...
 
void Set_datamode (unsigned char mode)
 

Variables

unsigned int gMsTimeout
 
uint8_t RX_Buffer [RX_BUFFER_SIZE]
 
uint16_t RX_index
 
uint8_t SequenceH
 
uint8_t SequenceL
 
uint8_t TX_Buffer [TX_BUFFER_SIZE]
 
uint16_t TX_index
 

#define INT (   a,
 
)    ((a << 8) | b)
#define MESSAGE_START   0x1B
#define RX_BUFFER_SIZE   (QT_NUM_CHANNELS*3)+10
#define STATE_DATA   3
#define STATE_IDLE   0
#define STATE_LENGTH1   1
#define STATE_LENGTH2   2
#define TX_BUFFER_SIZE   (QT_NUM_CHANNELS*3)+10

void Init_Buffers ( void  )

Initialize the send and receive buffers Called from QDebug_Init.

Initialize the send and receive buffers Called from QDebug_Init.

Called from QDebug_Init

Initialize the send and receive buffers Called from QDebug_Init.

Note
Called from QDebug_Init.
void Set_datamode ( unsigned char  mode)

unsigned int gMsTimeout
uint8_t RX_Buffer[RX_BUFFER_SIZE]
uint16_t RX_index
uint8_t SequenceH
uint8_t SequenceL
uint8_t TX_Buffer[TX_BUFFER_SIZE]

compile qdebug files only when QDebug is enabled.

uint16_t TX_index