📄 debug.c
字号:
break;
case 102://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[2] / 1000) + 48;
chM[12] = ((g_intGP_Current[2] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[2] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[2] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[2] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[2] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[2] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[2] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 103;
}
break;
case 103://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[3] / 1000) + 48;
chM[12] = ((g_intGP_Current[3] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[3] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[3] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[3] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[3] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[3] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[3] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 104;
}
break;
case 104://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[4] / 1000) + 48;
chM[12] = ((g_intGP_Current[4] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[4] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[4] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[4] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[4] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[4] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[4] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 105;
}
break;
case 105://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[5] / 1000) + 48;
chM[12] = ((g_intGP_Current[5] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[5] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[5] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[5] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[5] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[5] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[5] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 106;
}
break;
case 106://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[6] / 1000) + 48;
chM[12] = ((g_intGP_Current[6] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[6] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[6] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[6] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[6] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[6] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[6] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 107;
}
break;
case 107://
{
unsigned char chM[] = "第1列电流: xxxx固: xxxx\n\r";
chM[11] = (g_intGP_Current[7] / 1000) + 48;
chM[12] = ((g_intGP_Current[7] / 100) % 10) + 48;
chM[13] = ((g_intGP_Current[7] / 10) % 10) + 48;
chM[14] = (g_intGP_Current[7] % 10) + 48;
chM[19] = (g_intGP_FixedCurrent[7] / 1000) + 48;
chM[20] = ((g_intGP_FixedCurrent[7] / 100) % 10) + 48;
chM[21] = ((g_intGP_FixedCurrent[7] / 10) % 10) + 48;
chM[22] = (g_intGP_FixedCurrent[7] % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 108;
}
break;
///////////////////////////DEBUG INFORMATION ZERO///////////////////////////////////
case 220://
{
unsigned char chM[] = "main-intMark: xxxxx\n\r";
chM[14] = (g_intMark / 10000) + 48;
chM[15] = (g_intMark / 1000) % 10 + 48;
chM[16] = (g_intMark / 100) % 10 + 48;
chM[17] = (g_intMark / 10) % 10 + 48;
chM[18] = (g_intMark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 221;
}
break;
case 221://
{
unsigned char chM[] = "main-intMakA: xxxxx\n\r\n\r";
chM[14] = (g_intMarkA / 10000) + 48;
chM[15] = (g_intMarkA / 1000) % 10 + 48;
chM[16] = (g_intMarkA / 100) % 10 + 48;
chM[17] = (g_intMarkA / 10) % 10 + 48;
chM[18] = (g_intMarkA % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 222;
}
break;
case 222://
{
unsigned char chM[] = "CommPC-SendPCHead: xx\n\r";
chM[19] = (g_chSendPCHead / 10) + 48;
chM[20] = (g_chSendPCHead % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 223;
}
break;
case 223://
{
unsigned char chM[] = "CommPC-SendPCTail: xx\n\r";
chM[19] = (g_chSendPCTail / 10) + 48;
chM[20] = (g_chSendPCTail % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 224;
}
break;
case 224://
{
unsigned char chM[] = "CommPC-SendPC_Stat: xx\n\r";
chM[20] = (g_chSendPCBuf_Stat / 10) + 48;
chM[21] = (g_chSendPCBuf_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 225;
}
break;
case 225://
{
unsigned char chM[] = "CommPC-MainPushReport_Stat: xx\n\r";
chM[28] = (g_chMainPushReport_Stat / 10) + 48;
chM[29] = (g_chMainPushReport_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 226;
}
break;
case 226://g_chPushBit0to7
{
unsigned char chM[] = "PushBit0to7: xxx\n\r";
chM[13] = (g_chPushBit0to7 / 100) + 48;
chM[14] = ((g_chPushBit0to7 / 10) % 10) + 48;
chM[15] = (g_chPushBit0to7 % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 227;
}
break;
case 227://
{
unsigned char chM[] = "CommPC-PushReportDetail_Stat: xx\n\r";
chM[30] = (g_chPushReportDetail_SubStat / 10) + 48;
chM[31] = (g_chPushReportDetail_SubStat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 228;
}
break;
case 228://
{
unsigned char chM[] = "CommPC-ReceivePCHead: xx\n\r";
chM[22] = (g_chReceivePCHead / 10) + 48;
chM[23] = (g_chReceivePCHead % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 229;
}
break;
case 229://
{
unsigned char chM[] = "CommPC-ReceivePCTail: xx\n\r";
chM[22] = (g_chReceivePCTail / 10) + 48;
chM[23] = (g_chReceivePCTail % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 230;
}
break;
case 230://
{
unsigned char chM[] = "CommPC-ReceivePC_Stat: xx\n\r\n\r";
chM[23] = (g_chReceivePCBuf_Stat / 10) + 48;
chM[24] = (g_chReceivePCBuf_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 231;
}
break;
case 231://
{
unsigned char chM[] = "BuildDTMF_Stat: xx\n\r\n\r";
chM[16] = (g_chBuildDTMF_Stat / 10) + 48;
chM[17] = (g_chBuildDTMF_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 232;
}
break;
case 232://
{
unsigned char chM[] = "FS_Status: xxx\n\r";
chM[11] = (g_chFS_Status / 100) + 48;
chM[12] = ((g_chFS_Status / 10) % 10) + 48;
chM[13] = (g_chFS_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 233;
}
break;
case 233://
{
unsigned char chM[] = "SelfCheck_Status: xxx\n\r";
chM[18] = (g_chFS_SelfCheck_Status / 100) + 48;
chM[19] = ((g_chFS_SelfCheck_Status / 10) % 10) + 48;
chM[20] = (g_chFS_SelfCheck_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 234;
}
break;
case 234://
{
unsigned char chM[] = "GP_SelfCheck_Status: xxx\n\r";
chM[21] = (g_chGP_SelfCheck_Status / 100) + 48;
chM[22] = ((g_chGP_SelfCheck_Status / 10) % 10) + 48;
chM[23] = (g_chGP_SelfCheck_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 235;
}
break;
case 235://
{
unsigned char chM[] = "GP_Status: xxx\n\r";
chM[11] = (g_chGP_Status / 100) + 48;
chM[12] = ((g_chGP_Status / 10) % 10) + 48;
chM[13] = (g_chGP_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 236;
}
break;
case 236://
{
unsigned char chM[] = "Cable_Status: xxx\n\r";
chM[14] = (g_chCable_Status / 100) + 48;
chM[15] = ((g_chCable_Status / 10) % 10) + 48;
chM[16] = (g_chCable_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 237;
}
break;
case 237://
{
unsigned char chM[] = "Env_Status: xxx\n\r\n\r";
chM[12] = (g_chEnv_Status / 100) + 48;
chM[13] = ((g_chEnv_Status / 10) % 10) + 48;
chM[14] = (g_chEnv_Status % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 238;
}
break;
case 238://
{
unsigned char chM[] = "InnerCommSendHead: xx\n\r";
chM[19] = (g_chInnerCommHead / 10) + 48;
chM[20] = (g_chInnerCommHead % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 239;
}
break;
case 239://
{
unsigned char chM[] = "InnerCommSendTail: xx\n\r";
chM[19] = (g_chInnerCommTail / 10) + 48;
chM[20] = (g_chInnerCommTail % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 240;
}
break;
case 240://
{
unsigned char chM[] = "InnerCommSingleChar: xxx\n\r";
chM[21] = (g_chInnerCommSingleChar / 100) + 48;
chM[22] = ((g_chInnerCommSingleChar / 10) % 10)+ 48;
chM[23] = (g_chInnerCommSingleChar % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 241;
}
break;
case 241://g_chInnerCommSubSingleChar
{
unsigned char chM[] = "InnerCommSubSingleChar: xx\n\r";
chM[24] = (g_chInnerCommSubSingleChar / 10) + 48;
chM[25] = (g_chInnerCommSubSingleChar % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 242;
}
break;
case 242://g_chInnerCommSubSingleChar
{
unsigned char chM[] = "MainInnerComm_Stat: xx\n\r\n\r";
chM[20] = (g_chMainInnerComm_Stat / 10) + 48;
chM[21] = (g_chMainInnerComm_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 243;
}
break;
case 243://g_chInnerCommSubSingleChar
{
unsigned char chM[] = "参数状态 : x\n\r\n\r";
chM[11] = *(unsigned char *)(WriteMode_Info);
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 244;
}
break;
case 244://g_chTemperature
{
unsigned char chM[] = "Temperature: xxx\n\r";
chM[13] = (g_chTemperature / 100) + 48;
chM[14] = ((g_chTemperature / 10) % 10)+ 48;
chM[15] = (g_chTemperature % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 245;
}
break;
case 245://g_chTemperatureBoard
{
unsigned char chM[] = "TemperBoard: xxx\n\r";
chM[13] = (g_chTemperatureBoard / 100) + 48;
chM[14] = ((g_chTemperatureBoard / 10) % 10)+ 48;
chM[15] = (g_chTemperatureBoard % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 246;
}
break;
case 246://g_chDoorStat
{
unsigned char chM[] = "DoorStat: xxx\n\r";
chM[10] = (g_chDoorStat / 100) + 48;
chM[11] = ((g_chDoorStat / 10) % 10)+ 48;
chM[12] = (g_chDoorStat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 247;
}
break;
case 247://g_chDoorStatTemp
{
unsigned char chM[] = "DoorStatTemp: xxx\n\r";
chM[14] = (g_chDoorStatTemp / 100) + 48;
chM[15] = ((g_chDoorStatTemp / 10) % 10)+ 48;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -