UI_MSF_myfi.c File Reference


Detailed Description

This module provides myFi menu support.

REVISION

Definition in file UI_MSF_myfi.c.

#include "ui.h"
#include "ui_assert.h"
#include "../SYSTEM/sys_main.h"
#include "../FMXMIT/xmit_inc.h"

Include dependency graph for UI_MSF_myfi.c:

Include dependency graph

Go to the source code of this file.

Functions

STATE UI_MSF_myfi (st_MSG *msgIN)
 Function serves as the myfi setup menu handle.
STATE UI_MSF_myfiMode (st_MSG *msgIN)
 Function serves as the myfi mode setup menu handle.
STATE UI_MSF_myfiQuality (st_MSG *msgIN)
 Function serves as the myfi quality setup menu handle.
void UI_MENU_myfi (void)
 Funciton sets up the myfi setup menu display.
void UI_MENU_myfiGain (void)
 Funciton sets up the myfi gain setup menu display.
void UI_MENU_myfiMode (void)
 Funciton sets up the myfi mode setup menu display.
void UI_MENU_myfiQuality (void)
 Funciton sets up the myfi quality setup menu display.


Function Documentation

STATE UI_MSF_myfi st_MSG msgIN  ) 
 

Function serves as the myfi setup menu handle.

Parameters:
msgIN Input message from UI.
Returns:
Next UI state.

Definition at line 42 of file UI_MSF_myfi.c.

References st_SYSPARAM::myfiMode, st_SYSPARAM::myfiQuality, and UI_msgbxCreate().

00043 {
00044     MSG_ID          id = msgIN->id;     
00045     MSG_DATA        d1 = msgIN->d1; 
00046     MSG_DATA        d2 = msgIN->d2; 
00047 
00048     if( (KBD_MSG_ID == id)&&(KEY_SELECT == d1) )
00049     {
00050         GEN_pushStack(MENU_MYFI);
00051         switch(actvItem)
00052         {               
00053             case 1: /* mode. */
00054                 oldMyfiMode = sysParam.myfiMode;
00055                 GEN_pushStack(MENU_MYFI_MODE);
00056                 return S_MENU;
00057             
00058             case 2: /* myfi quality. */
00059                 oldMyfiQuality = sysParam.myfiQuality;
00060                 GEN_pushStack(MENU_MYFI_QUALITY);
00061                 return S_MENU;
00062                 
00063             case 3: /* myfi gain. */
00064                 GEN_pushStack(MENU_MYFI_GAIN);
00065                 return S_MENU;
00066                 
00067             case 4: /* Auto scan. */            
00068                 if(SYS_isHPpresent()) return S_AUTOSCAN;
00069                 else 
00070                 {
00071                     UI_msgbxCreate(MSGBX_HEADPHONEPLUG);
00072                     GEN_popStack();
00073                 }
00074                 break;
00075         }   
00076     }
00077     
00078     return S_MENU_STAY;
00079 }

Here is the call graph for this function:

STATE UI_MSF_myfiMode st_MSG msgIN  ) 
 

Function serves as the myfi mode setup menu handle.

Parameters:
msgIN Input message from UI.
Returns:
Next UI state.

Definition at line 90 of file UI_MSF_myfi.c.

References st_SYSPARAM::myfiMode, and SMIFIMODECHANGED.

00091 {
00092     MSG_ID          id = msgIN->id;     
00093     MSG_DATA        d1 = msgIN->d1; 
00094     
00095     if( (KBD_MSG_ID == id)&&(KEY_SELECT == d1) )
00096     {
00097         if( (SYS_isPlayActive())&&(oldMyfiMode != sysParam.myfiMode) )
00098         {
00099             oldMyfiMode = sysParam.myfiMode;
00100             mMSG_send(uiParentMsgQ, SYS_MSG_ID, SMIFIMODECHANGED, DONTCARE, SYS_FOREVER);               
00101         }
00102     }
00103     
00104     return S_MENU_STAY;
00105 }

STATE UI_MSF_myfiQuality st_MSG msgIN  ) 
 

Function serves as the myfi quality setup menu handle.

Parameters:
msgIN Input message from UI.
Returns:
Next UI state.

Definition at line 116 of file UI_MSF_myfi.c.

References st_SYSPARAM::myfiQuality, and SMIFIQUALITYCHANGED.

00117 {
00118     MSG_ID          id = msgIN->id;     
00119     MSG_DATA        d1 = msgIN->d1; 
00120     
00121     if( (KBD_MSG_ID == id)&&(KEY_SELECT == d1) )
00122     {
00123         if( (SYS_isPlayActive())&&(oldMyfiQuality != sysParam.myfiQuality) )
00124         {
00125             oldMyfiQuality = sysParam.myfiQuality;
00126             mMSG_send(uiParentMsgQ, SYS_MSG_ID, SMIFIQUALITYCHANGED, DONTCARE, SYS_FOREVER);                
00127         }
00128     }
00129     
00130     return S_MENU_STAY;
00131 }


Generated on Wed Jan 19 01:13:29 2005 for neuros-firmware by  doxygen 1.3.9.1