内容发布更新时间 : 2024/11/6 9:38:10星期一 下面是文章的全部内容请认真阅读。
struct MenuItem VoiceMenu[5]; struct MenuItem RobotMenu[5]; struct MenuItem FlashMenu[5]; /*********************** * 函 数 声 明 区 * ***********************/
void MainMenuInit(void); void TimeMenuInit(void);
void VoiceMenuInit(void); void RobotMenuInit(void); void FlashMenuInit(void);
/**************************************************************
* 函数说明:Flash处理目录初始化函数 * **************************************************************/ void FlashMenuInit(void) {
FlashMenu[0].MenuCount = 5;
FlashMenu[0].DisplayString = \ FlashMenu[0].Subs = FlashRecord;
FlashMenu[0].ChildrenMenus = &Null;
FlashMenu[0].ParentMenus = MainMenu;
FlashMenu[1].MenuCount = 5;
FlashMenu[1].DisplayString = \
FlashMenu[1].Subs = FlashPlay;
FlashMenu[1].ChildrenMenus = &Null;
FlashMenu[1].ParentMenus = MainMenu;
FlashMenu[2].MenuCount = 5;
FlashMenu[2].DisplayString = \ FlashMenu[2].Subs = FlashPause;
FlashMenu[2].ChildrenMenus = &Null;
FlashMenu[2].ParentMenus = MainMenu;
FlashMenu[3].MenuCount = 5;
FlashMenu[3].DisplayString = \ FlashMenu[3].Subs = FlashDelete;
FlashMenu[3].ChildrenMenus = &Null;
FlashMenu[3].ParentMenus = MainMenu;
FlashMenu[4].MenuCount = 5;
FlashMenu[4].DisplayString = \ FlashMenu[4].Subs = NullSubs;
FlashMenu[4].ChildrenMenus = MainMenu; FlashMenu[4].ParentMenus = MainMenu; }
/**************************************************************
* 函数说明:机器人控制目录初始化函数 *
**************************************************************/ void RobotMenuInit(void) {
RobotMenu[0].MenuCount = 5;
RobotMenu[0].DisplayString = \ RobotMenu[0].Subs = RobotTurnLeft;
RobotMenu[0].ChildrenMenus = &Null;
RobotMenu[0].ParentMenus = MainMenu;
RobotMenu[1].MenuCount = 5;
RobotMenu[1].DisplayString = \ RobotMenu[1].Subs = RobotTurnRight; RobotMenu[1].ChildrenMenus = &Null;
RobotMenu[1].ParentMenus = MainMenu;
RobotMenu[2].MenuCount = 5;
RobotMenu[2].DisplayString = \ RobotMenu[2].Subs = RobotGoAhead; RobotMenu[2].ChildrenMenus = &Null;
RobotMenu[2].ParentMenus = MainMenu;
RobotMenu[3].MenuCount = 5;
RobotMenu[3].DisplayString = \ RobotMenu[3].Subs = RobotGoBack;
RobotMenu[3].ChildrenMenus = &Null;
RobotMenu[3].ParentMenus = MainMenu;
RobotMenu[4].MenuCount = 5;
RobotMenu[4].DisplayString = \ RobotMenu[4].Subs = NullSubs;
RobotMenu[4].ChildrenMenus = MainMenu; RobotMenu[4].ParentMenus = MainMenu; }
/**************************************************************
* 函数说明:声音处理目录初始化函数 * **************************************************************/ void VoiceMenuInit(void) {
VoiceMenu[0].MenuCount = 5;
VoiceMenu[0].DisplayString = \ VoiceMenu[0].Subs = VoiceRecord;
VoiceMenu[0].ChildrenMenus = &Null;
VoiceMenu[0].ParentMenus = MainMenu;
VoiceMenu[1].MenuCount = 5;
VoiceMenu[1].DisplayString = \ VoiceMenu[1].Subs = Play;
VoiceMenu[1].ChildrenMenus = &Null;
VoiceMenu[1].ParentMenus = MainMenu;
VoiceMenu[2].MenuCount = 5;
VoiceMenu[2].DisplayString = \ VoiceMenu[2].Subs = Pause;
VoiceMenu[2].ChildrenMenus = &Null;
VoiceMenu[2].ParentMenus = MainMenu;
VoiceMenu[3].MenuCount = 5;
VoiceMenu[3].DisplayString = \ VoiceMenu[3].Subs = VoiceDelete;
VoiceMenu[3].ChildrenMenus = &Null;
VoiceMenu[3].ParentMenus = MainMenu;
VoiceMenu[4].MenuCount = 5;
VoiceMenu[4].DisplayString = \ VoiceMenu[4].Subs = NullSubs;
VoiceMenu[4].ChildrenMenus = MainMenu; VoiceMenu[4].ParentMenus = MainMenu; }
/************************************************************** * 函数说明:时间设定子目录初始化 * **************************************************************/