Microchip® Advanced Software Framework

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

Functions

void QDebug_Init (void)
 Initialize Debug InterfaceMust be called before the main loop. More...
 
void QDebug_ProcessCommands (void)
 Command handler for the data received from QTouch StudioThis function should be called in the main loop after measure_sensors to process the data received from QTOuch Studio More...
 
void QDebug_SendData (uint16_t qt_lib_flags)
 Send data to QTouch Studio based on the subscriptionThis function should be called in the main loop after measure_sensors to send the measured touch data. More...
 
void QDebug_SetSubscriptions (uint16_t once, uint16_t change, uint16_t allways)
 Set subscription values. More...
 
void Set_Channel_Config (void)
 Extract the data packet from QTouch Studio and set channel configShould only be called from the command handler. More...
 
void Set_Global_Config (void)
 Extract the data packet from QTouch Studio and set global configShould only be called from the command handler. More...
 
void Set_QM_Burst_Lengths (void)
 Set QMatrix burst lengthsShould only be called from the command handler. More...
 
void Set_QT_User_Data (uint8_t *pdata)
 Extracts user data from QTouch Studio to touch mcu memoryThe data can be binary data. More...
 
void Set_Subscriptions (void)
 Set Data Subscription valuesShould only be called from the command handler. More...
 
void Transmit_Burst_Lengths (void)
 Transmits the QMatrix burst length values to QTouch StudioThis value is available for each channel. More...
 
void Transmit_Delta (void)
 Transmits the channel delta values to QTouch StudioThe value is equal to signal-reference. More...
 
void Transmit_Dummy (void)
 Transmits a dummy packet if no other subscriptions are set. More...
 
void Transmit_Global_Config (void)
 Transmits the global config struct to QTouch Studio. More...
 
void Transmit_QT_User_Data (uint8_t *pdata, uint16_t c)
 Transmits user data to QTouch StudioThe data will be binary data. More...
 
void Transmit_Ref (void)
 Transmits the channel reference values to QTouch Studio. More...
 
void Transmit_Sensor_Config (void)
 Transmits the channel config struct to QTouch Studio. More...
 
void Transmit_Sign_On (void)
 Transmits the sign on packet to QTouch Studio. More...
 
void Transmit_Signals (void)
 Transmits the measurement values for each channel to QTouch Studio. More...
 
void Transmit_State (void)
 Transmits the state values to QTouch StudioOn/Off condition for each sensor. More...
 
void Transmit_Time_Stamps (void)
 Transmits the application execution timestamp values to QTouch StudioThis value is a combination of current_time_ms_touch (high word) & timer counter register (low word) More...
 

Variables

uint8_t allow_to_sleep = 0
 
uint16_t delivery = 0
 
qt_lib_siginfo_t lib_siginfo
 
uint8_t num_sensors
 
static uint16_t qgLibraryChanges = 0
 
uint8_t qgRefschanged
 
uint8_t qgStateschanged
 
uint16_t qgSubsAllways = 0
 
uint16_t qgSubsChange = 0
 
uint16_t qgSubsOnce = 0
 
uint8_t RX_Buffer []
 
sensor_t sensors []
 
uint16_t timestamp1_hword
 
uint16_t timestamp1_lword
 
uint16_t timestamp2_hword
 
uint16_t timestamp2_lword
 
uint16_t timestamp3_hword
 
uint16_t timestamp3_lword
 

void Transmit_Ref ( void  )

Transmits the channel reference values to QTouch Studio.

References tag_qt_touch_lib_measure_data_t::channel_references, PutChar(), qt_measure_data, QT_NUM_CHANNELS, QT_REFERENCES, and Send_Message().

Referenced by app_task().

uint8_t allow_to_sleep = 0
uint16_t delivery = 0

Referenced by app_task(), and QDebug_SendData().

qt_lib_siginfo_t lib_siginfo
uint8_t num_sensors

Referenced by Transmit_Delta().

uint16_t qgLibraryChanges = 0
static

Referenced by QDebug_SendData().

uint8_t qgRefschanged
uint8_t qgStateschanged
uint16_t qgSubsAllways = 0
uint16_t qgSubsChange = 0
uint16_t qgSubsOnce = 0
uint8_t RX_Buffer[]
sensor_t sensors[]
uint16_t timestamp1_hword

Referenced by Transmit_Time_Stamps().

uint16_t timestamp1_lword

Referenced by Transmit_Time_Stamps().

uint16_t timestamp2_hword

Referenced by Transmit_Time_Stamps().

uint16_t timestamp2_lword

Referenced by Transmit_Time_Stamps().

uint16_t timestamp3_hword

Referenced by Transmit_Time_Stamps().

uint16_t timestamp3_lword

Referenced by Transmit_Time_Stamps().