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

📄 global.h

📁 LCD Monitor 部分源码
💻 H
字号:
//----------------------------------------------------------------------------------------------------
// ID Code      : Global.h No.0001
// Update Note  : 
//
//----------------------------------------------------------------------------------------------------

//--------------------------------------------------
// Data Type Redefine
//--------------------------------------------------
typedef unsigned char BYTE;
typedef char          SBYTE;
typedef unsigned int  WORD;
typedef	int           SWORD;
typedef unsigned long DWORD;
typedef long          SDWORD;


//--------------------------------------------------
// Definations of Physical Boolean
//--------------------------------------------------
#define _TRUE                           1
#define _FALSE                          0
#define _HIGH                           1
#define _LOW                            0
#define _ENABLE                         1
#define _DISABLE                        0
#define _READ                           1
#define _WRITE                          0
#define _ON                             1
#define _OFF                            0
#define _SUCCESS                        1
#define _FAIL                           0
#define _STABLE                         1
#define _UNSTABLE                       0
#define _POSITIVE                       1
#define _NEGATIVE                       0


//--------------------------------------------------
// Definitions of Bits
//--------------------------------------------------
#define _BIT0                           0x0001
#define _BIT1                           0x0002
#define _BIT2                           0x0004
#define _BIT3                           0x0008
#define _BIT4                           0x0010
#define _BIT5                           0x0020
#define _BIT6                           0x0040
#define _BIT7                           0x0080
#define _BIT8                           0x0100
#define _BIT9                           0x0200
#define _BIT10                          0x0400
#define _BIT11                          0x0800
#define _BIT12                          0x1000
#define _BIT13                          0x2000
#define _BIT14                          0x4000
#define _BIT15                          0x8000


//--------------------------------------------------
// Definations of Input Ports
//--------------------------------------------------
#define _INPUT_PORT_0                   0
#define _INPUT_PORT_1                   1
#define _INPUT_PORT_2                   2
#define _INPUT_PORT_3                   3
#define _INPUT_PORT_4                   4
#define _INPUT_PORT_5                   5
#define _INPUT_PORT_6                   6


//--------------------------------------------------
// Definitions of Input Source Type
//--------------------------------------------------
#define _SOURCE_VGA                     0
#define _SOURCE_DVI                     1
#define _SOURCE_VIDEO8_AV               2
#define _SOURCE_VIDEO8_SV               3
#define _SOURCE_VIDEO8_YUV              4
#define _SOURCE_VIDEO8_TV               5
#define _SOURCE_YPBPR                   6
#define _SOURCE_NONE                    7


//--------------------------------------------------
// Definitions of ModeHandler State
//--------------------------------------------------
#define _PWOFF_STATE                    0
#define _INITIAL_STATE                  1
#define _SEARCH_STATE                   2
#define _SEARCH1_STATE                  21    //ANDY ADD
#define _ACTIVE_STATE                   3
#define _NOSUPPORT_STATE                4
#define _NOSIGNAL_STATE                 5
#define _SLEEP_STATE                    6
//--------------------------------------------------
// Definitions of Input Sync Type State
//--------------------------------------------------
#define _NO_SYNC_STATE                  0
#define _SS_STATE                       1
#define _CS_STATE                       2
#define _SOG_STATE                      3
#define _DSS_STATE                      4
#define _VIDEO8_STATE                   5


//--------------------------------------------------
// Definitions of Mode Search Type
//--------------------------------------------------
#define _PRESET_MODE_TYPE               0
#define _USER_MODE_TYPE                 1


//--------------------------------------------------
// Definitions of Waiting Events
//--------------------------------------------------
#define _EVENT_IVS                      0x01
#define _EVENT_IEN_START                0x02
#define _EVENT_IEN_STOP                 0x04
#define _EVENT_DVS                      0x08
#define _EVENT_DEN_START                0x10
#define _EVENT_DEN_STOP                 0x20
#define _EVENT_UNDERFLOW                0x40
#define _EVENT_OVERFLOW                 0x80


//--------------------------------------------------
// Definations of Scaler Write/Read Type
//--------------------------------------------------
#define _NON_AUTOINC                    1
#define _AUTOINC                        0
#define _BURST                          2
#define _END                            0


//--------------------------------------------------
// Definations of Load OSD Font Table Type
//--------------------------------------------------
#define _NORMAL_FONT                    0x00
#define _COMPRESS_FONT                  0x01


//--------------------------------------------------
// Definations of Red/Green/Blue
//--------------------------------------------------
#define _RED                            0
#define _GREEN                          1
#define _BLUE                           2


//--------------------------------------------------
// Definitions of Display Delay
//--------------------------------------------------
#define _CAPTURE_HDELAY                 3

#define _PROGRAM_HDELAY                 10
#define _PROGRAM_VDELAY                 2

#define _MEASURE_HDEALY                 7


//--------------------------------------------------
// Global Macros
//--------------------------------------------------
#define LOBYTE(w)                       ((BYTE)(w))
#define HIBYTE(w)                       ((BYTE)(((WORD)(w) >> 8) & 0x00FF))
#define SEC(x)                          (100 * x)

⌨️ 快捷键说明

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