#include "UIModeVoice.h" #if (VOICE_MODE == ENABLE) int PRIMARY_MODE_VOICE = -1; void ModeVoice_Open(void); void ModeVoice_Close(void); void ModeVoice_Open(void) { Ux_SetActiveApp(&CustomVoiceObjCtrl); Ux_SendEvent(0, NVTEVT_EXE_OPEN, 0); // Ux_OpenWindow((VControl *)(&UIFlowWndWavCtrl), 0); } void ModeVoice_Close(void) { // Ux_CloseWindow((VControl *)(&UIFlowWndWavCtrl), 0); Ux_SendEvent(0, NVTEVT_EXE_CLOSE, 0); } SYS_MODE gModeVoice = { "VOICE", ModeVoice_Open, ModeVoice_Close, NULL, NULL, NULL, NULL }; #endif