/*! \brief Command handler for the data received from QTouch Studio * \note This function should be called in the main loop after * measure_sensors to process the data received from QTOuch Studio. */ void QDebug_ProcessCommands(void) { uint8_t CommandID; if (Receive_Message() == 0) { return; } /* Handle the commands */ CommandID = GetChar(); switch (CommandID) { case QT_CMD_DUMMY: break; case QT_CMD_SET_SUBS: Set_Subscriptions(); break; case QT_CMD_SET_GLOBAL_CONFIG: Set_Global_Config(); Set_Measurement_Period(); break; case QT_CMD_SET_CH_CONFIG: Set_Channel_Config(); break; } RX_Buffer[0] = 0; RX_index = 0; }
/*! \brief Command handler for the data received from QTouch Studio * \note This function should be called in the main loop after * measure_sensors to process the data received from QTOuch Studio. */ void QDebug_ProcessCommands(void) { uint8_t CommandID; if (Receive_Message() == 0) { return; } /* Handle the commands */ CommandID = GetChar(); switch (CommandID) { case QT_CMD_DUMMY: break; case QT_CMD_SET_SUBS: Set_Subscriptions(); break; case QT_CMD_SET_GLOBAL_CONFIG: Set_Global_Config(); Set_Measurement_Period(); break; case QT_CMD_SET_CH_CONFIG: Set_Channel_Config(); break; #if (DEF_TOUCH_QDEBUG_ENABLE_QM == 1) case QT_CMD_SET_QM_BURST_LENGTHS: Set_QM_Burst_Lengths(); break; #endif } RX_Buffer[0] = 0; RX_index = 0; }