Macros | |
#define | DEF_TOUCH_QDEBUG_ENABLE 0 |
#define | DEF_TOUCH_QDEBUG_ENABLE_AT 0 |
#define | DEF_TOUCH_QDEBUG_ENABLE_QM 0 |
#define | DEF_TOUCH_QDEBUG_ENABLE_QTA 0 |
#define | DEF_TOUCH_QDEBUG_ENABLE_QTB 0 |
#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. More... | |
void | Init_Buffers (void) |
Initialize the send and receive buffers. More... | |
void | PutChar (uint8_t data) |
Puts one byte in the Transmit Buffer. More... | |
void | PutInt (uint16_t data) |
Puts two bytes in the Transmit Buffer. More... | |
uint8_t | Receive_Message (void) |
Executes a master read transmission if TWI is selected as interface. Checks if RX_Buffer has a valid frame. More... | |
uint8_t | RxHandler (uint8_t c) |
Handles the incoming bytes from the interface selected in QDebugSettings.h and puts the bytes in the RX_Buffer data read by the selected interface. More... | |
void | Send_Message (void) |
Send the content of the TX_Buffer to the USB Bridge using the interface selected in QDebugSettings.h. More... | |
Variables | |
uint8_t | RX_Buffer [RX_BUFFER_SIZE] |
RX Buffer globals. More... | |
uint16_t | RX_index |
uint8_t | SequenceH |
uint8_t | SequenceL |
uint8_t | TX_Buffer [TX_BUFFER_SIZE] |
TX Buffer globals. More... | |
uint16_t | TX_index |
#define DEF_TOUCH_QDEBUG_ENABLE 0 |
#define DEF_TOUCH_QDEBUG_ENABLE_AT 0 |
#define DEF_TOUCH_QDEBUG_ENABLE_QM 0 |
#define DEF_TOUCH_QDEBUG_ENABLE_QTA 0 |
#define DEF_TOUCH_QDEBUG_ENABLE_QTB 0 |
#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 |
void Init_Buffers | ( | void | ) |
Initialize the send and receive buffers.
Initialize the send and receive buffers.
Initialize the send and receive buffers Called from QDebug_Init.
Called from QDebug_Init
Initialize the send and receive buffers Called from QDebug_Init.
References MESSAGE_START, RX_Buffer, RX_index, TX_Buffer, and TX_index.
Referenced by QDebug_Init().
uint8_t Receive_Message | ( | void | ) |
Executes a master read transmission if TWI is selected as interface. Checks if RX_Buffer has a valid frame.
Executes a master read transmission if TWI is selected as interface. Checks if RX_Buffer has a valid frame.
mdata | contains merged touch data in RF4CE packet |
Executes a master read transmission if TWI is selected as interface
Checks if RX_Buffer has a valid frame Called from QDebug_ProcessCommands in QDebug.c.
References count, LED_ON, pal_led(), RF4CE_RX_Buffer, RX_Buffer, RX_index, and twi_retrieve_message().
Referenced by app_task(), and QDebug_ProcessCommands().
uint8_t RX_Buffer[RX_BUFFER_SIZE] |
RX Buffer globals.
Referenced by GetChar(), Init_Buffers(), QDebug_ProcessCommands(), Receive_Message(), RxHandler(), Set_QT_User_Data(), and twi_retrieve_message().
uint16_t RX_index |
Referenced by GetChar(), Init_Buffers(), QDebug_ProcessCommands(), and Receive_Message().
uint8_t SequenceH |
Referenced by QDebug_SendData(), and Send_Message().
uint8_t SequenceL |
Referenced by Send_Message().
uint8_t TX_Buffer[TX_BUFFER_SIZE] |
TX Buffer globals.
compile qdebug files only when QDebug is enabled.
Referenced by BitBangSPI_Send_Message(), Init_Buffers(), PutChar(), PutInt(), Send_Message(), switch(), and twi_send_message().
uint16_t TX_index |
Referenced by BitBangSPI_Send_Message(), Init_Buffers(), main(), PutChar(), PutInt(), Send_Message(), and zrc_cmd_confirm().