📄 global.c
字号:
/****************************************************************************
+----------------------------------------------------------------------+
| Copyright Trumpion Microelectronics Inc. 1999 |
| Trumpion Microelectronics Inc. reserves the right to change products |
| or specifications without notice. |
+----------------------------------------------------------------------+
Project : LCD monitor
Version : 0.94
File Name : global.c
Functions : ALL global variables definition
Revision :
1999-05-18 OriginalTeam First Created
2000-07-17 Bill Tseng Modified for Zurac-II
****************************************************************************/
//=========================================================================
// include files =
//=========================================================================
#include "lib\extent.h"
#include "lib\declare.h"
//***************************************************************************
// GLOBAL DATA
//**************************************************************************/
Bool FgOsdAct; // osd action flag
Bool FgAdcAct; // ADC converter action flag
Bool FgVideoAct; // video decoder action flag
Bool FgScalerAct; // scaler action flag
Bool FgScalerAdj; // scaler adjust flag
Bool FgAutoOn; // auto action flag
Bool FgAutoAdj; // auto function adjust flag
Bool FgWhiteOn; // white-balance action flag
Bool FgModeChange; // mode change flag
Bool FgMenuChange; // change osd menu flag
Bool FgBurnin; // burnin flag
Bool FgFreeRun; // free-run flag
Bool FgPowerStby; // power-standby flag
Bool FgPowerOff; // power-off flag
Bool FgNoSignal; // no-signal flag
Bool FgPowerKeyFlag; // power key press flag
Bool FgSelKeyFlag; //Select key press flag
Bool FgAutoKeyFlag; // auto key press flag
// Byte IDATA FgUpKeyFlag; //algu 1129 Bool -> Byte // +/Rt key press flag
// Byte IDATA FgDownKeyFlag; //algu 1129 Bool -> Byte // -/Lt key press flag
Bool FgInputKeyFlag; // input key press flag
Bool FgISP; // ISP flag
Bool FgShowBurnin; // show trumpion logo
Bool FgDosMode; // mode select(text/graphic) flag
Bool FgDosMode1; // mode select(640x350 @ 70) flag
Bool FgInterlace; // interlace mode flag
Bool FgMenuKey;
Bool FgFacMode;
Bool FgHatKey;
Bool FgMenuSelect;
Bool FgFunInc;
Bool FgKeyFlag;
Bool FgMenuPage;
Bool FgChangeAuto;
Bool FgPowerBurnin;
Bool FgSaveData; // Vincent 20011211
Byte DATA KeyStatus;
Byte DATA OSDPoint;
Byte DATA OSDMainPoint;
Byte DATA OSDMenuPage;
Byte IDATA ColorTemp1;
Byte IDATA ZRContrast;
Byte IDATA ZGContrast;
Byte IDATA ZBContrast;
Byte IDATA ZRBrightness;
Byte IDATA ZGBrightness;
Byte IDATA ZBBrightness;
Byte IDATA RxdBuf[6];
Byte IDATA RxdBufIndex;
Byte IDATA ModeInfo;
Byte IDATA DitherMode; // scaler dither mode select
Byte IDATA ScalingMode; // scaler scaling algorithm select
Byte IDATA HScaling; // scaler horizontal scaling select
Byte IDATA AlphaBlending; // scaler alpha_blending select
Byte IDATA GammaIndex; // scaler gamma factor index
Byte IDATA KeyBuffer; // key press value buffer
Byte IDATA ScanKeyCounter; // key press repeat count
Byte DATA CountTimer; // key press delay time
Byte DATA T8_192msTimer; // general 4ms timer for Delay()
Byte DATA GeneralTimer; // general timer to switch free-run display
Word DATA OSDOffTimer; // osd auto-disappear timer
Word DATA PromptTimer; // message prompt timer
Byte DATA ModeCounter; // VGA display mode index
Byte DATA OSDNumber; // osd current status index
Word DATA OSDMaxValue; // osd maximum adjustable value
Word DATA OSDMinValue; // osd minimum adjustable value
Byte IDATA OSDTimerByte; // osd auto-disappear 1sec counter
Byte IDATA OSDLanguage; // osd display language index
Byte IDATA OSDHorPosition; // osd horizontal position value
Byte IDATA OSDVerPosition; // osd vertical position value
Byte IDATA TrmBuf[20]; // i2c read/write data buffer
Word DATA CurrentValue; // osd current display value
Byte DATA UpdateValue; // value(-1/+1) to update routine
Byte RDATA *DataPointer; // general rom byte data pointer
Byte DATA ByteCnt; // byte count for iic i/o routine
Byte DATA SlvAdr; // slave address for iic i/o routine
Byte IDATA InputSource; // input source(Analog/Digital/Video)
Byte IDATA PanelType; // panel type(Hosiden,Sharp,LG,...)
Byte IDATA ColorTemp; // color temperature
Byte IDATA U1RgainValue; // ADC gain value of channel-R
Byte IDATA U1GgainValue; // ADC gain value of channel-G
Byte IDATA U1BgainValue; // ADC gain value of channel-B
Byte IDATA M_BrightnessR; // ADC offset value of channel-R
Byte IDATA M_BrightnessG; // ADC offset value of channel-G
Byte IDATA M_BrightnessB; // ADC offset value of channel-B
Byte IDATA VideoUnlockCount; // video unlock count
Byte DATA BrightnessValue; // backlight brightness
Byte DATA ContrastValue; // gain adjust for ADC 3 channels
Byte DATA BrightnessValueZ; // scaler brightness
Byte DATA ContrastValueZ; // scaler contrast
Word DATA HorPositionValue; // display horizontal position
Word DATA VerPositionValue; // display vertical position
Byte DATA PhaseValue; // ADC phase value
Word DATA ClockValue; // ADC clock value(also for scaler)
Word DATA HS1frCount; // Hsync 1 frame line count
Word IDATA HS2frCount; // Hsync 2 frame line count
#if ZURAC_HWMD
Byte DATA MuteTimer;
Byte DATA SyncSource;
Byte DATA StableCnt;
Byte DATA HCountH;
Byte DATA VCountH;
Byte DATA tempHCountH;
Byte DATA tempVCountH;
Byte DATA LastHCountH;
Byte DATA LastVCountH;
Word DATA CurHFreq; // Current H frequency
Word DATA CurVFreq; // Current V frequency
Word DATA PHsync16;
Bool FgPHSFilterOn;
Bool FgModeDetect;
Bool FgSogSignal;
Bool FgCompSignal;
Bool FgSepSignal;
Bool FgHWMDInt;
Bool tempHPol;
Bool tempVPol;
Bool LastHPol;
Bool LastVPol;
Bool FgSWChange;
Bool CurrentHPol; // current H-sync polarity
Bool CurrentVPol; // current V-sync polarity
Bool VSyncStart; // V-Sync start
#else // ZURAC_HWMD
Bool InHPol; // incoming H-sync polarity
Bool InVPol; // incoming V-sync polarity
Bool NewHPol; // last H-sync polarity
Bool NewVPol; // last V-sync polarity
Bool CurrentHPol; // current H-sync polarity
Bool CurrentVPol; // current V-sync polarity
Bool VSyncReady; // V-sync ready
Bool VSyncOn; // V-sync present
Bool VSyncStart; // V-Sync start
Word DATA VS1usCount; // Vsync 1us count
Byte DATA VS4msCount; // count of 4ms of 1 Vsync interval
Byte DATA VPolTime; // time to check V-sync polarity
Byte DATA VSyncOVTime; // H-sync overflow time
Word DATA InVTime; // Incoming V-Sync Period
Word IDATA NewVFreq; // last V frequency
Word IDATA NewHFreq; // Last H frequency
Word IDATA CurHFreq; // Current H frequency
Word IDATA CurVFreq; // Current V frequency
Word IDATA HFreq[4];
Word IDATA VFreq[4];
Byte IDATA StableCount; // counter for stable H-sync and V-sync
#endif // ZURAC_HWMD
// Word XDATA Valtest;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -