📄 e20_sub.c
字号:
}
else if (gCursorMove == 2) FCONCTRL2 = ~FCONCTRL2;
else if (gCursorMove == 3) FCONCTRL3 = ~FCONCTRL3;
else if (gCursorMove == 4) FCON_AMP = ~FCON_AMP;
gCurrOutComctrl = Enter_SelectOutPut();
MLine1Conctrl();
MDIP_Menu_Power_Status(gCursorMove);
break;
case cMenu_Main01_PlayMusic :
MEnter_Menu_PlayMusic(gCursorMove);
break;
#ifndef OTG_MODE
case cMenu_Main01_Record :
MEnter_Menu_Record(gCursorMove);
break;
case cMenu_Main01_Erase :
MEnter_Menu_Erase(gCursorMove);
break;
#endif
/****************************************************************************************/
case cMenu_Main02_Week :
Enter_Main02_Week();
break;
case cMenu_Main02_OtherDay :
Enter_Main02_OtherDay();
//改变项数/日期时要更新项数最大值
break;
case cMenu_Main02_WeekList :
MEnter_Menu_WeekList();
break;
case cMenu_Main02_OtherDay_List :
MEnter_Menu_OtherDay();
break;
case cMenu_Prewarming_SetupTime :
if (gCursorMove == 1){
FPress_Enter_Modify = ~FPress_Enter_Modify;
gBellLong_Max = 120;
if (FPress_Enter_Modify) gBellLong = gDIP_Lind[0];
else gDIP_Lind[0] = gBellLong;
MEEP_ByteWrite(cEEPAddr_YundTime, gDIP_Lind[0]);
}
else if (gCursorMove == 2){
FPress_Enter_Modify = ~FPress_Enter_Modify;
gBellLong_Max = 120;
if (FPress_Enter_Modify) gBellLong = gDIP_Lind[1];
else gDIP_Lind[1] = gBellLong;
MEEP_ByteWrite(cEEPAddr_YundTimeClose, gDIP_Lind[1]);
}
gBellLong_Min = 1;
break;
/****************************************************************************************/
case cMenu_Menu_WeekOtherCtrl : //按"星期列表"内容下的"其它控制"进入其它控制内容菜单
case cMenu_Menu_DayOtherCtrl : //按"特别日子列表"内容下的""其它控制"
gMenuSelectBuffer = gMenuSelect; //暂记确定前的两种菜单之一
if (gCursorMove == 1){
//确定第一项反白光标项选择后,进入"电源选择菜单"
//设置好再进入时应是更新的内容
gCursorMove = 1; //CH1 :关/开
MDIP_WeekSelect(gBroadcast[8]);
MDIP_Menu_PowerCtrl(gCursorMove);
gMenuSelect = cMenu_Menu_PowerCtrl;
}
else if (gCursorMove == 2){
//确定第二项反白光标项选择后,进入"节目选择内容菜单"
gCursorMove = 1;
if (gBroadcast[9] & 0x02) gCursorMove = 2;
else if (gBroadcast[9] & 0x08) gCursorMove = 3;
else if (gBroadcast[9] & 0x10) gCursorMove = 4;
MDIP_Menu_SelectProgram(gCursorMove);
gMenuSelect = cMenu_Menu_SelectProgram;//节目选择内容
//确定记忆生效要确定进入设置项内容
gBroadcast[6] |= 0x82;
if ((gBroadcast[6] & 0x40) != 0x40) gBroadcast[6] &= 0xfe;
else gBroadcast[6] |= 0x01;
}
break;
case cMenu_Menu_Broadcast_Select :
if (gCursorMove == 1){
gMenuSelect = cMenu_Menu_Broadcast_PowerValue;
MDIP_Menu_PowerCtrl(0);
}
else if (gCursorMove == 2){
gMenuSelect = cMenu_Menu_Broadcast_PlayList;
gCursorMove = 1;
if (gBroadcast[9] & 0x02) gCursorMove = 2;
else if (gBroadcast[9] & 0x08) gCursorMove = 3;
else if (gBroadcast[9] & 0x10) gCursorMove = 4;
Enter_Main03_SelectProgram();
}
break;
/****************************************************************************************/
#ifndef OTG_MODE
case cMenu_Main02_Record_MIC :
case cMenu_Main02_Record_LINE :
case cMenu_Main02_Record_Tuner :
Mplay_Stop(cCTB_RECORD_PAUSE);
FRecordExit = 0;
MEnter_Menu_Record_doing(gCursorMove);
break;
#endif
/*****************************************************************************************/
case cMenu_Main02_Select_MP3 :
MEnter_Menu_MP3(gCursorMove);
break;
case cMenu_Main03_MP3Name : //再次按时返回MP3菜单
case cMenu_Main03_LoopPlayMP3 :
if (gMenuSelect == cMenu_Main03_LoopPlayMP3){
gPlayTYPE = gBellLong;
if ((gPlayTYPE == 3)||(gPlayTYPE == 4)) MSpecify_Play(1);
else {
if (gAUDAction_State != cAUDAction_Play){
gCTBCommandBuffer[0] = 0x02;
gCTBCommandBuffer[1] = cCTB_PLAY;
MCTBCommandWrite();
}
}
}
gMenuSelect = cMenu_Main02_Select_MP3;
MDIP_Menu_MP3_Music(gCursorMove,1);
gDIPTrack_Name = 1;
break;
case cMenu_Main02_Select_Tuner :
if (gCursorMove == 1){
FPress_Enter_Modify = ~FPress_Enter_Modify;
}
else if (gCursorMove == 2){
FPress_Enter_Modify = ~FPress_Enter_Modify;
}
else if (gCursorMove == 3){
FHandToAutoTuner = 1;
if (FTUNBandMW){
FTUNBandMW = 0;
g2TUNEEPAddr = cEEPAddr_TUNStart+1;
g2TUNAddrRead = g2TUNEEPAddr;
}
else {
FTUNBandMW = 1;
gTUN_MW_Freq = 0;
g2TUNAddrRead = 0xff;
}
MTUN_FreqConctrl();
MDIP_Menu_Tuner_Music(gCursorMove);
}
else if (gCursorMove == 4){
FPress_Enter_Modify = ~FPress_Enter_Modify;
if (FPress_Enter_Modify){
if (g2TUNEEPAddr != cEEPAddr_TUNStart)g2TUNEEPAddr = g2TUNAddrRead;
gTUNAutoTunDelayTm = 15;
FTUNAutoTun = 1;
FHandToAutoTuner = 0;
MDIP_Menu_Tuner_Music(gCursorMove);
FNoAuto_StoreTuner = 0; //自动存台
}
else {
gTUNAutoTunDelayTm = 0;
FTUNPLL_Enable = 1;
FTUNAutoEnter = 1;
FTUN_AutoTm = 0;
FTUNAutoTun = 0;
}
FNoAuto_StoreTuner = 0;
}
break;
case cMenu_Menu_PowerCtrl :
if (gCursorMove < 5){ //确定记忆生效要确定下内容
gBroadcast[6] |= 0x41;
if ((gBroadcast[6] & 0x80) != 0x80) gBroadcast[6] &= 0xfd;
else gBroadcast[6] |= 0x02;
gEEPSureWrite = 0x01;
}
//在电源菜单确定是否要记此值.先决条件为在此菜单电源值光标下按一下Enter.
if (gCursorMove == 1) FCONCTRL1 = ~FCONCTRL1;
else if (gCursorMove == 2) FCONCTRL2 = ~FCONCTRL2;
else if (gCursorMove == 3) FCONCTRL3 = ~FCONCTRL3;
else if (gCursorMove == 4) FCON_AMP = ~FCON_AMP;
else if (gCursorMove == 5) FWeek_One = ~FWeek_One;
else if (gCursorMove == 6) FWeek_Two = ~FWeek_Two;
else if (gCursorMove == 7)FWeek_Three = ~FWeek_Three;
else if (gCursorMove == 8) FWeek_Four = ~FWeek_Four;
else if (gCursorMove == 9) FWeek_Five = ~FWeek_Five;
else if (gCursorMove == 10) FWeek_Six = ~FWeek_Six;
else if (gCursorMove == 11) FWeek_Seven = ~FWeek_Seven;
gBroadcast[7] = Enter_SelectOutPut();
MDIP_Menu_PowerCtrl(gCursorMove);
break;
case cMenu_Menu_SelectProgram :
if (gCursorMove == 1){
gBroadcast[9] = 0x01;
gMenuSelect = cMenu_Main04_ProgramMIC;
}
else if (gCursorMove == 2){
gBroadcast[9] = 0x02;
gMenuSelect = cMenu_Main04_ProgramTuner;
}
else if (gCursorMove == 3){
gBroadcast[9] = 0x08;
gMenuSelect = cMenu_Main04_ProgramLINE;
}
else if (gCursorMove == 4){
gBroadcast[9] = 0x10;
gMenuSelect = cMenu_Main04_ProgramMusic;
}
Enter_Main03_SelectProgram();
break;
case cMenu_Main04_ProgramMusic :
Enter_Main04_ProgramMusic();
break;
case cMenu_Main04_ProgramMIC :
case cMenu_Main04_ProgramLINE :
Enter_Main04_ProgramMIC();
break;
case cMenu_Main04_ProgramTuner :
gEEPSureWrite = 0x05;
if (gCursorMove == 1) FPress_Enter_Modify = ~FPress_Enter_Modify;
else {
if (gMenuSelectBuffer == cMenu_Menu_WeekOtherCtrl){
if (gCursorMove == 2) FWeek_One = ~FWeek_One;
else if (gCursorMove == 3) FWeek_Two = ~FWeek_Two;
else if (gCursorMove == 4)FWeek_Three = ~FWeek_Three;
else if (gCursorMove == 5) FWeek_Four = ~FWeek_Four;
else if (gCursorMove == 6) FWeek_Five = ~FWeek_Five;
else if (gCursorMove == 7) FWeek_Six = ~FWeek_Six;
else if (gCursorMove == 8){
FWeek_Seven = ~FWeek_Seven;
gCursorMove = 1;
}
else if (gCursorMove == 9){
FHandToAutoTuner = 1;
if (FTUNBandMW){
FTUNBandMW = 0;
FFM_FreqLow5 = 1;
g2TUNAddrRead = g2TUNEEPAddr;
}
else {
FTUNBandMW = 1;
gTUN_MW_Freq = 0;
g2TUNAddrRead = 0xff;
}
if (FTUNBandMW) mTUNTuning_MW(); //调频
else mTUNTuning_FM();
MDIP_TUNShow(gCursorMove-8);
MDIP_TUNNumber(gCursorMove);
}
MProgramCurreDay();
gMain00 = gBroadcast[28];
gBroadcast[28] = MDIP_EnterSelectWeek(gBroadcast[28]);
if (gBroadcast[28] != gMain00)gEEPSureWrite = 0x07;
MProgramWorkDay(gCursorMove-1);
if (gCursorMove == 1) MDIP_Menu_ProgramTuner(gCursorMove);
}
else if (gMenuSelectBuffer == cMenu_Menu_DayOtherCtrl){
if (gCursorMove == 2){
FHandToAutoTuner = 1;
if (FTUNBandMW){
FTUNBandMW = 0;
FFM_FreqLow5 = 1;
g2TUNAddrRead = g2TUNEEPAddr;
}
else {
FTUNBandMW = 1;
gTUN_MW_Freq = 0;
g2TUNAddrRead = 0xff;
}
if (FTUNBandMW) mTUNTuning_MW(); //调频
else mTUNTuning_FM();
MDIP_TUNShow(gCursorMove-1);
MDIP_TUNNumber(gCursorMove);
}
}
}
break;
case cMenu_Day_Program_Broadcast :
Enter_Program_Broadcast();
break;
case cMenu_Day_Program_ClearAddr :
if (gMenuBroadcastBuffer == cMenu_Main02_OtherDay)Enter_ProgramOtherDay_ClearAddr();
else Enter_ProgramWeek_ClearAddr();
break;
#ifndef OTG_MODE
case cMenu_Main02_Record_doing :
break;
case cMenu_Main02_SectionErase :
Enter_SectionErase();
break;
#endif
case cMenu_Main02_ALLErase :
MDIPWriteChinese_String(64-16*3,cDOTLine2, "请稍候..");
#ifdef OTG_MODE
gCTBCommandBuffer[0] = cCTB_CommandA03;
gCTBCommandBuffer[1] = cCTB_REARD_INFO;
gCTBCommandBuffer[2] = cCTB_ReadTrack_Max;
MCTBCommandWrite();
#else
gCTBCommandBuffer[0] = cCTB_CommandA04;
gCTBCommandBuffer[1] = cCTB_REARD_INFO;
gCTBCommandBuffer[2] = cCTB_ReadTrack_Max;
gCTBCommandBuffer[3] = 0x00;
MCTBCommandWrite();
#endif
break;
#ifndef OTG_MODE
case cMenu_EnterSaveRevord :
gMenuSelect = gMenuSelectBuffer; //返回1.( )或2.
if ((gCursorMove == 1)||(gCursorMove == 2)) {
FRecordExit = 0;
if (gCursorMove == 2) FRecordExit = 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -