📄 mydef.h
字号:
#ifndef _MyDef_H
#define _MyDef_H
#include "panel.h"
typedef bit Bit;
typedef bit Bool;
typedef unsigned char Byte;
typedef unsigned short Word;
typedef code Code;
#define TRUE ((Bool)1)
#define FALSE ((Bool)0)
#define MainPowerIsOn ((Bool)1)
#define MainPowerIsOff ((Bool)0)
#define BIT_0 0x01
#define BIT_1 0x02
#define BIT_2 0x04
#define BIT_3 0x08
#define BIT_4 0x10
#define BIT_5 0x20
#define BIT_6 0x40
#define BIT_7 0x80
typedef union
{
unsigned short w;
unsigned char b[2];
}Union;
//*************************************************************************************
//
//*************************************************************************************
#define PM 0
#define maxBACKLIGHT 218
#define minBACKLIGHT 18
#define maxVolPWM 180
#define minVolPWM 50
#define H_UnderMuteScreenLimit 240
#define H_UnderNormalDisplayLimit 240
#define H_OverNormalDisplayLimit 810
#define H_OverMuteScreenLimit 940
#define V_UnderMuteScreenLimit 450
#define V_UnderNormalDisplayLimit 490
#define V_OverNormalDisplayLimit 770
#define V_OverMuteScreenLimit 860
#define MaxPixelClock 40 //MHz
#define MaxAutoClockRange 2048 // Pixel
//VGA Contrast
#define T_VGA_Contrast_range_Max 100
#define T_VGA_Contrast_range_Mid (T_VGA_Contrast_range/2+T_VGA_Contrast_range_Min)
#define T_VGA_Contrast_range_Min 0
#define T_VGA_Contrast_range (T_VGA_Contrast_range_Max-T_VGA_Contrast_range_Min)
#define T_VGA_RealContrast_Max 155//160
#define T_VGA_RealContrast_Mid 140
#define T_VGA_RealContrast_Min 80
#define T_VGA_RealContrast_Range (T_VGA_RealContrast_Max-T_VGA_RealContrast_Min)
//VGA Brightness
#define T_VGA_Bright_range_Max 100
#define T_VGA_Bright_range_Mid 80
#define T_VGA_Bright_range_Min 0
#define T_VGA_Bright_range (T_VGA_Bright_range_Max-T_VGA_Bright_range_Min)
//DVI
#define T_DVI_Contrast_range_Max 100
#define T_DVI_Contrast_range_Mid ((T_DVI_Contrast_range/2)+T_DVI_Contrast_range_Min)
#define T_DVI_Contrast_range_Min 0
#define T_DVI_Contrast_range (T_DVI_Contrast_range_Max-T_DVI_Contrast_range_Min)
//video Contrast
#define T_Video_Contrast_range_Max 100
#define T_Video_Contrast_range_Mid (T_Video_Contrast_range/2+T_Video_Contrast_range_Min)
#define T_Video_Contrast_range_Min 0
#define T_Video_Contrast_range (T_Video_Contrast_range_Max-T_Video_Contrast_range_Min)
#define T_Video_RealContrast_Max 190 //180
#define T_Video_RealContrast_Mid 175 //180
#define T_Video_RealContrast_Min 70 //80
#define T_Video_RealContrast_Range (T_Video_RealContrast_Max-T_Video_RealContrast_Min)
//video Brightness
#define T_Video_Bright_range_Max T_VGA_Bright_range_Max
#define T_Video_Bright_range_Min T_VGA_Bright_range_Min
#define T_Video_Bright_range (T_Video_Bright_range_Max-T_Video_Bright_range_Min)
#define ep_SSC_RATIO_Data 0x05 // 1/32
#define ep_UserColor_R 128
#define ep_UserColor_G 128
#define ep_UserColor_B 128
#define ep_PanelColorDefault_R 128
#define ep_PanelColorDefault_G 128
#define ep_PanelColorDefault_B 128
#define ep_UserColor_Max (ep_UserColor_R/0.8)
#define Year 2006
#define Month 04
#define Date 27
//#define ModeNum 90
#define UserModeSt T_Preset_Timing_No //0~68 is for preset mode
#define SAVE_DDC_TIME 100
#define SAVE_FUNC_TIME 10
#define BURN_IN_TIME 200
#define POWER_TIME 700
#define MUTE_DELAY_TIME 50
#define RES_TABLE_COUNT 15
#define MAX_COLOR_TEMP 3
#define MAX_LANGUAGE 7
#define Within_range 0
#define OverRangeWithCanDisplay 1
#define OverRangeMuteScreen 2
enum {
D_Sub_Source,DVI_Source
};
#define SCALER_ADDR 0xB0
#define NOVATEK_Addr 0x40 // for Utility Alignment command
// ADC PLL
#define AnalogPLL 0
#define DigitalPLL 1
#define ADC_PLL DigitalPLL
//DVI
#define HVmode 0
#define DEmode 1
#define DVImode DEmode
//Contrast control
#define BackEndGain 0
#define sRGBGain 1
#define ContrastBlock 0//sRGBGain
#define AutoClock_Step 7
//Auto Color control
#define GaugeGain 0
#define AutoGain 1
#define PRINT_MESSAGE 0
#define AUTO_COLOR AutoGain//GaugeGain
//Panel power active control
#define Low 0
#define High 1
#define PanelPowerActive High
enum {ColorTemp9300=0,ColorTemp6500,ColorTempUser};
enum {SourceVGA,SourceDVI,SourceEnd};
#define Default_ColorTemp ColorTemp9300
//CONTROL DEFINE ------------
//analog
enum{
pBRIGHTNESS=0 ,
pCONTRAST ,
pPHASE ,
pCLOCK ,
pHPOSITION ,
pVPOSITION ,
pOSDHPOSITION ,
pOSDVPOSITION ,
pOSDTIMER ,
pRCOLOR ,
pGCOLOR ,
///10
pBCOLOR ,
pCOLORTEMP ,
pLANGUAGE ,
pSHARPNESS ,
pRADC ,
pGADC ,
pBADC ,
pVOLUME ,
pVIDEOSOURCE , //0=Dsub; 1=DVI 24
///20
pSSC_Control ,
pRGAIN ,
pGGAIN ,
pBGAIN ,
pROFFSET ,
pGOFFSET ,
pBOFFSET ,
//degital
pFACTMENU ,
pRECALL ,
///29
pAUTOCOLOR ,
pAUTOADJUST ,
pEXIT ,
pOUTOFRANGE ,
pNOSIGNAL ,
pPOSSETTING ,
pCLOCKSETTING ,
///39
pCOLORSETTING ,
pLANGSETTING ,
pINFORMATION ,
pOSDSETTING ,
pOTHERSETTING ,
pGain ,
pOffset ,
///49
p_End
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -