www.pudn.com > bu1566.rar > W_MenuMode.h


#if !defined _W_MENU_MODE_H_INCLUDED_ 
#define	_W_MENU_MODE_H_INCLUDED_ 
 
#include "BUxx_demoset.h" 
#include "BUxx_setuptable.h" 
 
#include "W_Interface.h" 
 
#define PICT_SIZE 10 
 
//The background color of Main LCD is set up[Top] 
#define MLCD_BCOL_RU	0xf8 
#define MLCD_BCOL_GU	0xfc 
#define MLCD_BCOL_BU	0x00 
 
//The background color of Main LCD is set up[Center] 
#define MLCD_BCOL_RC	0xf8 
#define MLCD_BCOL_GC	0xfc 
#define MLCD_BCOL_BC	0xf8 
 
//The background color of Main LCD is set up[Bottom] 
#define MLCD_BCOL_RL	0xf8 
#define MLCD_BCOL_GL	0xfc 
#define MLCD_BCOL_BL	0x00 
 
typedef UINT8 u8; 
typedef UINT16 u16; 
typedef UINT32 u32; 
 
typedef struct 
{ 
    void (*fFuncAddr)(void); 
    char szFuncName[32]; 
} t_MenuFunc; 
 
 
#ifdef _W_MENUMODE_C_ 
 
static void Menu(void); 
static void Preview(void); 
static void StillJpeg(void); 
static void Jpeg4Frame(void); 
static void MotionJpeg(void); 
static void RingBufferJpeg(void); 
static void RotJpeg(void); 
#ifdef _BU1563API_INTERFACE_ 
static void CamFunc(void); 
#endif 
 
static void MenuMoveUp(u8 * p_u8SelectedFuncID); 
static void MenuMoveDown(u8 * p_u8SelectedFuncID); 
static void ShowMenu(u8 u8SelectedFuncID); 
static void StringWrite(const char *string, u16 u16StartPosX, u16 u16StartPosY); 
//static void NumberWrite(int s32Number, u16 u16StartPosX, u16 u16StartPosY); 
 
t_MenuFunc tMenu[]={ 
    Menu,"" 
    ,Preview, "1 PREVIEW" 
    ,StillJpeg, "2 STILLJPEG" 
    ,Jpeg4Frame, "3 JPEG4FRAME" 
    ,MotionJpeg, "4 MOTIONJPEG" 
    ,RingBufferJpeg,"5 VGAJPEG" 
#ifdef _BU1563API_INTERFACE_ 
    ,CamFunc,"CAM FUNC" 
#endif 
    ,RotJpeg, "ROT JPEG" 
}; 
 
UINT8 gl_function_id=0; 
UINT8 gl_menu_first_show=1; 
UINT8 gl_first_action=1; 
 
#else 
 
extern t_MenuFunc tMenu[]; 
extern UINT8 gl_function_id; 
 
#endif //_W_MENUMODE_C_ 
 
#endif //MENU_MODE_H_INCLUDED