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 | Receive_Message (void) |
Executes a master read transmission if TWI is selected as interfaceChecks if RX_Buffer has a valid frame Called from QDebug_ProcessCommands in QDebug.c. 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... | |
Variables | |
uint8_t | RF4CE_RX_Buffer [RX_BUFFER_SIZE] |
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 |
uint8_t GetChar | ( | void | ) |
Get one byte from the Receive Buffer RX_index is post incremented.
Get one byte from the Receive Buffer.
Referenced by QDebug_ProcessCommands(), Set_Channel_Config(), Set_Global_Config(), and Set_Subscriptions().
void Init_Buffers | ( | void | ) |
Initialize the send and receive buffers Called from QDebug_Init.
Initialize the send and receive buffers.
Referenced by QDebug_Init().
void PutChar | ( | uint8_t | data | ) |
Puts one byte in the Transmit Buffer TX_index is post incremented.
Puts one byte in the Transmit Buffer.
Referenced by Set_QT_User_Data(), Transmit_Delta(), Transmit_Dummy(), Transmit_Global_Config(), Transmit_QT_User_Data(), Transmit_Ref(), Transmit_Sensor_Config(), Transmit_Sign_On(), Transmit_Signals(), Transmit_State(), and zrc_cmd_indication().
void PutInt | ( | uint16_t | data | ) |
Puts two bytes in the Transmit Buffer Big Endian.
Puts two bytes in the Transmit Buffer.
TX_index is post incremented
Referenced by Transmit_Global_Config(), Transmit_Sign_On(), and Transmit_Time_Stamps().
uint8_t Receive_Message | ( | void | ) |
Executes a master read transmission if TWI is selected as interfaceChecks if RX_Buffer has a valid frame Called from QDebug_ProcessCommands in QDebug.c.
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 |
Referenced by app_task(), and QDebug_ProcessCommands().
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.
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.
c | data read by the selected interface |
Referenced by BitBangSPI_Send_Message(), and switch().
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.
Send the content of the TX_Buffer to the USB Bridge using the interface selected in QDebugSettings.h.
Referenced by Set_QT_User_Data(), Transmit_Delta(), Transmit_Dummy(), Transmit_Global_Config(), Transmit_QT_User_Data(), Transmit_Ref(), Transmit_Sensor_Config(), Transmit_Sign_On(), Transmit_Signals(), Transmit_State(), and Transmit_Time_Stamps().
uint8_t RF4CE_RX_Buffer[RX_BUFFER_SIZE] |
Referenced by app_task(), and Receive_Message().
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 =0 |
Referenced by QDebug_SendData(), and Send_Message().
uint8_t SequenceL =0 |
Referenced by Send_Message().
uint8_t TX_Buffer[TX_BUFFER_SIZE] |
TX Buffer globals.
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().