⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setcha.c

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 C
字号:
/****************************************************************
**                                                              *
**  FILE         :  SetCha.C                                    *
**  COPYRIGHT    :  (c) 2001 .Xiamen Yaxon NetWork CO.LTD       *
**                                                              *
**                                                              *
**  By : CCH 2002.1.15                                          *
****************************************************************/
#include "includes.h"
#include "public.h"
#include "prompt.h"
#include "menuwin.h"
#include "itemmenu.h"
#include "setCha.h"


#if EN_HANDSET > 0


static INT16U InitRecordProc(void)
{
    if (HstCfg.HandsfreeChannel) {
        return 1;
    } else {
        return 0;
    }
}

static void StoreProc(void)
{
    if (GetMenuWinRecordNum() == 0) {
        HstCfg.HandsfreeChannel = FALSE;
    } else {
        HstCfg.HandsfreeChannel = TRUE;
    }
    PopMenuWin();
    ActivateStringPrompt("设置成功!");
    StorePubPara(HSTCFG_);
}


static ITEMMENU_STRUCT  MENU_AUTO              = {ITEM_FCN,   "手柄", StoreProc, 0, 0};
static ITEMMENU_STRUCT  MENU_MANUAL            = {ITEM_FCN,   "免提", StoreProc, 0, 0};
static ITEMMENU_STRUCT *MENU_SELOPTION_CHILD[] = {&MENU_AUTO, &MENU_MANUAL};
static ITEMMENU_STRUCT  MENU_SELOPTION         = {ITEM_LMENU, 0, 0, 2, MENU_SELOPTION_CHILD};

static void ActivateSelOptionMenu(void)
{
    ActivateItemMenu_Init(&MENU_SELOPTION, InitRecordProc);
}

ITEMMENU_STRUCT MENU_SETCHA                    = {ITEM_FCN, "    设置\n  缺省模式", ActivateSelOptionMenu, 0, 0};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -