/** * @brief Command handler for the data received from QTouch Studio * @ingroup QDebug-Remote * 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; /* Fill in the address for user data in memory */ uint8_t *pdata = 0; 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(); break; case QT_CMD_SET_CH_CONFIG: Set_Channel_Config(); break; #ifdef _QMATRIX_ case QT_CMD_SET_QM_BURST_LENGTHS: Set_QM_Burst_Lengths(); break; #endif case QT_CMD_SET_USER_DATA: Set_QT_User_Data(pdata); 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; } 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; }