📄 e20_sub.c
字号:
case cRmKey_Delete :
MEnterQuessKey();
MDIP_Menu_Select_Erase(gCursorMove);
gMenuSelect = cMenu_Main01_Erase;
break;
case cRmKey_Record_Setup :
MEnterQuessKey();
MDIP_Menu_SelectRecord();
gMenuSelect = cMenu_Main01_Record;
break;
#else
case cRmKey_Delete :
/*
MEnterQuessKey();
MDIPClearALL();
FControlManual = 1;
gControlManualStatus = cControlAutoStatus;
FNoMission_Staus = 0;
if (FTaskNowing) FCurrMission_Staus = 1;
mLED_Sture();
MLED_Release();
FShow_Timer = ~FTaskNowing;
FAUDMuteEnl = 1; //静音
mInputSwitch();
gCurrOutComctrl = 0; //启动前要关闭所有的电源开关
MPowerComctrl(gCurrOutComctrl);
FCON_RING = 0;
MDEBUG(0x33);
MLine1Conctrl();
gCursorMove = 1;
gMenuSelect = cMenu_Main02_Start_up_TimerList;
MDIP_Start_up_TimerList(gCursorMove);
*/
MEnterQuessKey();
MDIPClearALL();
MDIPWriteChinese_String(64-16*2,cDOTLine3, "暂无此功能");
FDIPSimble_Erase(1);
break;
case cRmKey_Record_Setup :
/*
MDEBUG(0x23);
MEnterQuessKey();
MDIPClearALL();
FControlManual = 0;
FTaskNowing = 0;
FNoMission_Staus = 0;
mLED_Sture();
MLED_Release();
gMain00 = MEEP_ByteRead(cEEPAddr_OutComctrl);
if (gMain00 != 0xff){
gCurrOutComctrl = gMain00;
}
else gCurrOutComctrl = 0;
gControlManualStatus = cControlManualStatus;
gInputType = MEEP_ByteRead(cEEPAddr_WorkRest)&0x07;
mInputSwitch();
gReturnMenuBuffer = (MEEP_ByteRead(cEEPAddr_WorkRest)>>3)&0x1f;
MenuBuffer();
MReturnMenu();
MPowerComctrl(gCurrOutComctrl);
MLine1Conctrl();
FAUDMuteEnl = 0;
gMain00 = 1;
gMain00 = MEEP_ByteRead(cEEPAddr_PlayTrack); //开机播放记忆曲目
if ((gMain00 != 0xff)&&(gMain00 != gTrackNumber)) MSpecify_Play(gMain00);
*/
MEnterQuessKey();
MDIPClearALL();
MDIPWriteChinese_String(64-16*2,cDOTLine3, "暂无此功能");
FDIPSimble_Record(1);
break;
#endif
case cRmKey_PWR_Out :
MEnterQuessKey();
MPowerComctrl(gCurrOutComctrl);
MDIP_Menu_Power_Status(gCursorMove);
gMenuSelect = cMenu_Main01_Power;
break;
case cRmKey_0 :
if (FPreeAddTenKey) gBellLong += 0;
else gBellLong = 0;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_1 :
if (FPreeAddTenKey) gBellLong += 1;
else gBellLong = 1;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_2 :
if (FPreeAddTenKey) gBellLong += 2;
else gBellLong = 2;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_3 :
if (FPreeAddTenKey) gBellLong += 3;
else gBellLong = 3;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_4 :
if (FPreeAddTenKey) gBellLong += 4;
else gBellLong = 4;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_5 :
if (FPreeAddTenKey) gBellLong += 5;
else gBellLong = 5;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_6 :
if (FPreeAddTenKey) gBellLong += 6;
else gBellLong = 6;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_7 :
if (FPreeAddTenKey) gBellLong += 7;
else gBellLong = 7;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_8 :
if (FPreeAddTenKey) gBellLong += 8;
else gBellLong = 8;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_9 :
if (FPreeAddTenKey) gBellLong += 9;
else gBellLong = 9;
FPreeAddTenKey = 0;
MPreeNumberKey(gBellLong);
gMain00 = 0;
break;
case cRmKey_AddTen :
FPreeAddTenKey = 1;
if (++gMain00 > 9) gMain00 = 0;
gBellLong = gMain00 * 10;
MPreeNumberKey(gBellLong);
break;
default : gBuzzerTm = 0;break;
}
if (gRmKeyContinCanclTm && !gKeyCancelTm) gKeyCancelTm = 1;
}
MLED_Release();
MPKeyScan();
return;
}
void MPreeNumberKey(BYTE gLocal_1){
if ((gMenuSelect == cMenu_Main02_Select_MP3) || (gMenuSelect == cMenu_Main02_Start_up_TimerList)
||(gMenuSelect == cMenu_Exit)||(gMenuSelect == cMenu_Main02_Select_Tuner)){
if (gMenuSelect == cMenu_Exit){
switch (gReturnMenuBuffer){
case cMenu_Main02_Select_MP3 :
case cMenu_Main03_LoopPlayMP3 :
case cMenu_Main03_MP3Name :
if ((gLocal_1 < (gTrack_Max+1)) && (gLocal_1 != 0)) MSpecify_Play(gLocal_1);
MDIPClearALL();//清屏
MDIP_Menu_MP3_Music(gCursorMove,1);
gDIPTrack_Name = 1;
gMenuSelect = cMenu_Main02_Select_MP3;
#ifndef OTG_MODE
gCTBCommandBuffer[0] = cCTB_CommandA04;
gCTBCommandBuffer[1] = cCTB_REARD_INFO;
gCTBCommandBuffer[2] = cCTB_TRACK_NAME;
gCTBCommandBuffer[3] = 0;
MCTBCommandWrite();
#else
mCTB_Read_TreakName();
#endif
break;
case cMenu_Main02_Select_LINE : //进入播放LINE菜单
case cMenu_Main02_Select_MIC : //进入播放MIC菜单
break;
case cMenu_Main02_Select_Tuner : //进入播放收音菜单
MDIPClearALL();//清屏
g2TUNAddrRead = cEEPAddr_TUNStart + gLocal_1;
MTUN_FreqConctrl();
MEEP_ByteWrite(cEEPAddr_TunChannelLow, g2TUNAddrRead);
MEEP_ByteWrite(cEEPAddr_TunChannelHigh, g2TUNAddrRead >> 8);
FHandToAutoTuner = 1;
MDIP_Menu_Tuner_Music(gCursorMove);
gMenuSelect = cMenu_Main02_Select_Tuner;
break;
default : break;
}
}
else if (gMenuSelect == cMenu_Main02_Select_Tuner){
g2TUNAddrRead = cEEPAddr_TUNStart+gLocal_1;
MTUN_FreqConctrl();
MEEP_ByteWrite(cEEPAddr_TunChannelLow, g2TUNAddrRead);
MEEP_ByteWrite(cEEPAddr_TunChannelHigh, g2TUNAddrRead >> 8);
FHandToAutoTuner = 1;
MDIP_TUNShow(gCursorMove-2);
MDIP_TUNNumber(gCursorMove-1);
}
else if (gMenuSelect == cMenu_Main02_Select_MP3){
if ((gLocal_1 < (gTrack_Max+1)) && (gLocal_1 != 0)) MSpecify_Play(gLocal_1);
}
else if (gMenuSelect == cMenu_Main02_Start_up_TimerList) {
if (gNextType == cInput_MP3){
if ((gLocal_1 < (gTrack_Max+1)) && (gLocal_1 != 0)) MSpecify_Play(gLocal_1);
}
else if (gNextType == cInput_Tuner){
g2TUNAddrRead = cEEPAddr_TUNStart+gLocal_1;
MTUN_FreqConctrl();
MEEP_ByteWrite(cEEPAddr_TunChannelLow, g2TUNAddrRead);
MEEP_ByteWrite(cEEPAddr_TunChannelHigh, g2TUNAddrRead >> 8);
FHandToAutoTuner = 1;
}
}
}
else {
gBellLong = gLocal_1;
FNoAuto_StoreTuner = 0;
MMenu_None_ClearALL();
if (FPress_Enter_Clear) MDIPClearALL();
MEnter();//按确定后,进入反白光标的下一层菜单
mLED_Sture();
MLED_Release();
}
return;
}
void MEnterQuessKey(){
FPress_Enter_Modify = 0;
gAutoExitTime = 130;
MDIPClearALL();
gCursorMove = 1;//将反白光标置于下一子菜单第一项
if (FTUNAutoTun){
gTUNAutoTunDelayTm = 0;
FTUNPLL_Enable = 1;
FTUNAutoEnter = 1;
FTUN_AutoTm = 0;
FTUNAutoTun = 0;
FNoAuto_StoreTuner = 0;
}
return;
}
//反白光标 参数gLocal_1 菜单最大光标选项
void MMenu_Select_Opation(BYTE gLocal_2) {
if (FKeyJogUp_A){
if (++gCursorMove > gLocal_2) gCursorMove = 1;
}
else {
if (gCursorMove > 1) --gCursorMove;
else gCursorMove = gLocal_2;
}
return;
}
void MEnter(){
gAutoExitTime = 130;
switch (gMenuSelect){
case cMenu_Main02_Start_up_TimerList :
/*
gReturnMenuBuffer = gMenuSelect;
gMenuSelect = cMenu_Exit;
MDIP_Main_Logo();
*/
gControlManualStatus = cControlManualStatus;
gMenuSelect = cMenu_Exit;
gInputType = MEEP_ByteRead(cEEPAddr_WorkRest)&0x07;
gReturnMenuBuffer = (MEEP_ByteRead(cEEPAddr_WorkRest)>>3)&0x1f;
MenuBuffer();
if ((gReturnMenuBuffer < cMenu_Main02_Select_MIC) && (gReturnMenuBuffer > cMenu_Main03_LoopPlayMP3)){
gReturnMenuBuffer = cMenu_Main02_Select_MP3;
}
MDEBUG(gReturnMenuBuffer);
MReturnMenu();
break;
case cMenu_Exit :
gCursorMove = 1;
gMenuSelect = cMenu_Main;
MDIP_Main_Menu(gCursorMove); //显示 主菜单 & 反白光标
break;
case cMenu_Main : //当前菜单进入主菜单
MEnter_Menu_Main(gCursorMove);//按确定后,进入反白光标的下一层菜单
break;
/************************************************************************************/
case cMenu_Main01_Timer :
MEnter_Menu_TimerList();
break;
case cMenu_Main01_Program : //当前编程菜单进入一层菜单
MEnter_Menu_Program();//按确定后,进入反白光标的下一层菜单
break;
case cMenu_Main01_Power : //手动设置外控电源
if (gCursorMove == 1){
FCONCTRL1 = ~FCONCTRL1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -