|
@@ -1,8 +1,6 @@
|
|
|
|
|
|
#include "includes.h"
|
|
|
/****************************状态栏显示部分开始***********************************/
|
|
|
-#define MIN_PWR_LEVEL 315 //低于此电压后不工作
|
|
|
-#define WARN_PWR_LEVEL 325 //提示请充电电压
|
|
|
static const char *NullPtr="";
|
|
|
|
|
|
//显示信号强度
|
|
@@ -747,6 +745,7 @@ void uiShowMenuSysSetup(char flash){
|
|
|
"7,终端信息",
|
|
|
"8,SD卡检测",
|
|
|
"9,天线调试",
|
|
|
+ "10,功放模式",
|
|
|
#ifdef MENU_TEST
|
|
|
"10,测试",
|
|
|
#endif
|
|
@@ -795,6 +794,9 @@ void sysTemSetResponse(void){
|
|
|
case 8://天线调试
|
|
|
uISetNextStatus(UIS_MENU_SYS_ANT);
|
|
|
break;
|
|
|
+ case 9://功放模式
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_PA);
|
|
|
+ break;
|
|
|
#ifdef MENU_TEST
|
|
|
case 9://测试
|
|
|
uISetNextStatus(UIS_MENU_SYS_TEST);
|
|
@@ -803,7 +805,7 @@ void sysTemSetResponse(void){
|
|
|
if(sutMenuSysSetup.handle<=9)
|
|
|
#else
|
|
|
}
|
|
|
- if(sutMenuSysSetup.handle<=8)
|
|
|
+ if(sutMenuSysSetup.handle<=9)
|
|
|
#endif
|
|
|
uiPushStack(sutMenuSysSetup.handle);
|
|
|
}else if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_MAIN);
|
|
@@ -1603,6 +1605,51 @@ void uiShowNoteSelResponse(void){
|
|
|
}
|
|
|
/*****************************提示音设置结束********************************/
|
|
|
|
|
|
+/*****************************功放模式开始********************************/
|
|
|
+static void paFlash(void){
|
|
|
+ char info[30];
|
|
|
+ unsigned short x,y,len;
|
|
|
+
|
|
|
+ if(noteSetTmp==2) snprintf(info, sizeof(info), "FM模式");
|
|
|
+ else snprintf(info, sizeof(info), "免提模式");
|
|
|
+
|
|
|
+ len=guiGetStrXLen((char *)info, FONT_MODE_12X12);
|
|
|
+ x=(GLCD_WIDTH-len)/2;
|
|
|
+ y=UI_CONTENT_SHOW_Y+(GLCD_HEIGHT-UI_CONTENT_SHOW_Y)/2-12;
|
|
|
+ guiClearRect(0, y, GLCD_WIDTH-1, y+12, guiGetBackColor());
|
|
|
+ guiShowStr(x,y,info, FONT_MODE_12X12, REVERSED_NO, COLOR_BLACK, guiGetBackColor());
|
|
|
+}
|
|
|
+void uiShowPA(char StatusUpdate){
|
|
|
+ if(StatusUpdate){
|
|
|
+ guiClearAll(guiGetBackColor());
|
|
|
+ guiShowCaption(0,"功放模式设置",UI_STATUS_ITEM_Y+1,guiGetBackColor(),guiGetForeColor(),FONT_MODE_12X12);
|
|
|
+ uiMenuShowBottomLine();
|
|
|
+ noteSetTmp=newPara.paCnt;
|
|
|
+ paFlash();
|
|
|
+ uiMenuShowBottomIndacitor("保存", "返回");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void uiShowPAResponse(void){
|
|
|
+ unsigned short key=getKeyValue();
|
|
|
+ if(MKEY_VALUE_ESC==key) uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ else if(MKEY_VALUE_MENU==key){
|
|
|
+ getStackStruct()->ok_back=1;
|
|
|
+ if(newPara.paCnt != noteSetTmp){
|
|
|
+ newPara.paCnt=noteSetTmp;
|
|
|
+ if(newPara.paCnt==2) MSG_INFO(1,"FM Mode:%d", newPara.paCnt);
|
|
|
+ else MSG_INFO(1,"MIAN TI MODE:%d", newPara.paCnt);
|
|
|
+ sysIniSave();
|
|
|
+ }
|
|
|
+ uISetNextStatus(UIS_MENU_SYS_SEL);
|
|
|
+ }else if(MKEY_VALUE_DOWN || MKEY_VALUE_UP){
|
|
|
+ if(noteSetTmp==2) noteSetTmp=4;
|
|
|
+ else noteSetTmp=2;
|
|
|
+ paFlash();
|
|
|
+ }
|
|
|
+}
|
|
|
+/*****************************功放模式结束********************************/
|
|
|
+
|
|
|
void uiShowPassword(char StatusUpdate){
|
|
|
int len,x,y=GLCD_HEIGHT/2;
|
|
|
char info[60];
|