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

📄 menu.h

📁 BITEK DRIVER IC MENU CODE
💻 H
字号:
/* **********************************************************************

         Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd

         All rights are reserved. Reproduction in whole or in parts is
    prohibited without the prior written consent of the copyright owner.
   ----------------------------------------------------------------------

    Module: MENU.H

    Purpose: Interface of MENU.

    Version: 0.01                                   11:07AM  2005/11/17

    Compiler: Keil 8051 C Compiler v8.01

    Reference:
    [1] BIT1611B Data Sheet Version 1.0, 2005-11-10,
        Beyond Innovation Technology

   ----------------------------------------------------------------------
    Modification:

    R0.01 11:07AM  2005/11/17 Jeffrey Chang
    Reason:
        1. Original.
    Solution:

   ********************************************************************** */

#ifndef _MENU_H_
#define _MENU_H_

/* ------------------------------------
    Header Files
   ------------------------------------ */
#include "platform.h"


/* ------------------------------------
    Macro Definitions
   ------------------------------------ */
#undef EXTERN

#ifdef _MENU_C_
    #define EXTERN
#else
    #define EXTERN  extern
#endif


/* ::::::::::::::::::::::::::::::::::::
    Menu Configuration
   :::::::::::::::::::::::::::::::::::: */
#define MENU_MESSAGE                OSD_WINDOW1
#define MENU_MAINMENU               OSD_WINDOW2
#define MENU_SUBMENU                OSD_WINDOW3
#define MENU_ALL                    (MENU_SUBMENU | MENU_MAINMENU | MENU_MESSAGE)




#define MENU_AUTO_OFF_3SEC          500         // About 3  seconds = 3000 ms !
#define MENU_AUTO_OFF_5SEC          833         // About 5  seconds !
#define MENU_AUTO_OFF_6SEC          1000        // About 6  seconds !
#define MENU_AUTO_OFF_10SEC         1666        // About 10 seconds !

#define MENU_AUTO_OFF_SLOT          64          // 64 x 6 ms = 384 ms

#define MENU_AUTO_OFF_TIME          (MENU_AUTO_OFF_SLOT + MENU_AUTO_OFF_10SEC)

/* ------------------------------------
    Type Definitions
   ------------------------------------ */

/* ::::::::::::::::::::::::::::::::::::
    Menu Items ID
   :::::::::::::::::::::::::::::::::::: */

typedef enum MENU_ENUM
{
    MENU_BRIGHTNESS,
    MENU_CONTRAST,
    MENU_SATURATION,
    MENU_HUE,
    MENU_SHARPNESS,
    MENU_IMAGE_FILTER,
    MENU_DISPLAY_MODE,
    MENU_TCON_MODE,

    MAINMEMU_SIZE
} enumMENU;

#define MAINMEMU_WIDTH              OSD_WINDOW2_WIDTH

#ifdef _MENU_C_
EXTERN UB8 CODE * CODE apbMainMenu[ MAINMEMU_SIZE ] =
{
  //"123456789012"
    "Brightness  ",             //  0    MENU_BRIGHTNESS
    "Contrast    ",             //  1    MENU_CONTRAST
    "Saturation  ",             //  2    MENU_SATURATION
    "Hue         ",             //  3    MENU_HUE
    "Sharpness   ",             //  4    MENU_SHARPNESS
    "Image Filter",             //  5    MENU_IMAGE_FILTER
    "Display Mode",             //  6    MENU_DISPLAY_MODE
    "TCON Mode   ",             //  7    MENU_TCON_MODE
};
#else
EXTERN UB8 CODE * CODE apbMainMenu[ MAINMEMU_SIZE ];
#endif

/* ------------------------------------
    Variables Definitions/Declarations
   ------------------------------------ */
EXTERN UW16 wMENU_Tick;


#define MENU_SHOW_MAINMENUITEM       ON
#define MENU_UPDATE_MAINMENUCURSOR   ON

EXTERN UB8  bMenuBaseItem;
EXTERN UB8  bMenuCurrentItem;
EXTERN UB8  bMenuLastItem;


/* ------------------------------------
    Function Prototypes
   ------------------------------------ */
EXTERN void MENU_ClearMenu(UB8 bMenu);
EXTERN void MENU_EnableMenu(UB8 bMenu, BOOL fOn);
EXTERN void MENU_Init(void);

#if (MENU_SHOW_MAINMENUITEM)
EXTERN void MENU_ShowMainMenuItem(UB8 bBase);
#endif

#if (MENU_UPDATE_MAINMENUCURSOR)
EXTERN void MENU_UpdateMainMenuCursor(UB8 bBase, UB8 bLast, UB8 bCurrent);
#endif


#endif // _MENU_H_


/* **********************************************************************

    Description:

   ********************************************************************** */

/* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

⌨️ 快捷键说明

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