📄 mode.h
字号:
//BYTE idata ucPanelSelect;
WORD xdata HDMI_H_Width;
WORD xdata HDMI_V_Height;
//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
void CModeHandler(void);
bit CModeMeasureReady(void);
bit CModeMeasureData(void);
bit CModeDetect(void);
bit CModeDetectCommon(void);
bit CModeIsChange(void);
BYTE CModeSearchDisplayMode(void);
BYTE CModeSearchModeVGA(void);
bit CModeComparePresetModeVGA(BYTE ucModeCnt);
BYTE CModeSearchAcceptiveModeVGA(void);
BYTE CModeCheckFIFOModeVGA(BYTE ucModeCnt);
bit CModeCompareFIFOModeVGA(BYTE ucNum, BYTE ucModeCnt);
BYTE CModeSearchModeDVI(void);
bit CModeCompareModeDVI(BYTE ucModeCnt);
bit CModeDisplayActiveMode(void);
bit CModeSetupModeVGA(void);
bit CModeSetupModeDVI(void);
void CModeSetupDisplay(void);
void CModeSetupColorProcess(void);
void CModeSetupColorConversion(void);//jerry20070605
void CModeSetupEtcs(BYTE ucPar);
void CModeGetModeTableInfo(void);
void CModeStartUpVGA(void);
void CModeStartUpDVI(void);
BYTE CModeGetScaleSetting(void);
void CModeSetCaptureWindow(BYTE ucOption);
void CModeSetScaling(BYTE ucOption);
void CModeSetDisplay(BYTE ucOption);
void CModeModifyVTotal(void);
void CModeResetMode(void);
void CModeSetFreeRun(void);
bit CModeConnectIsChange(void);
void CModeAutoMeasureOn(void);
void CModeAutoMeasureOff(void);
void CModeSyncTimeoutCountDownEvent(void);
void CModeStableCountDownEvent(void);
void CModePowerSavingEvent(void);
/*
void CModeNoSignalEvent(void);
void CModeNoCableEvent(void);
void CModeNoSupportEvent(void);
*/
BYTE CModeGetScaleSetting(void);
void CModeHDMITimeoutCountDownEvent();
void CModeInterlaceCheck(void);//v003_interlace_check
void CModeDeInterlaceSetting(void);
void CModeNoSupportEvent(void);
void CModeNoSignalEvent(void);
void CModeNoCableEvent(void);
void CAccAdjust (BYTE mode);
#else
//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
extern BYTE idata ucCurrState;
extern BYTE idata ucModeControl;
extern BYTE idata ucHStartBias;
extern BYTE idata ucVStartBias;
//extern BYTE idata ucPanelSelect;
extern UINT16 xdata HDMI_H_Width,HDMI_V_Height;
extern BYTE idata ucModeFound;
extern BYTE idata ucEvent1;
//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void CModeHandler(void);
extern bit CModeMeasureReady(void);
extern bit CModeMeasureData(void);
extern bit CModeDetect(void);
extern bit CModeIsChange(void);
extern void CModeSetScaling(BYTE ucOption);
extern void CModeResetMode(void);
extern void CModeSetFreeRun(void);
extern void CModeSyncTimeoutCountDownEvent(void);
extern void CModeStableCountDownEvent(void);
extern void CModeSetupDisplay(void);
extern void CModeSetupColorProcess(void);
extern void CModeSetupColorConversion(void);//jerry20070605
extern void CModeSetupEtcs(BYTE ucPar);
extern void CModeStartUpVGA(void);
extern void CModeAutoMeasureOn(void);
extern void CModeAutoMeasureOff(void);
extern bit CModeDisplayActiveMode(void);
extern bit CModeConnectIsChange(void);
extern void CModePowerSavingEvent(void);
extern BYTE CModeGetScaleSetting(void);
extern bit CModeSetupModeVGA(void);
extern void CModeHDMITimeoutCountDownEvent();
extern void CModeInterlaceCheck(void);//v003_interlace_check
extern void CModeDeInterlaceSetting(void);
extern void CModeSetCaptureWindow(BYTE ucOption);
extern void CModeSetDisplay(BYTE ucOption);
extern void CModeNoSupportEvent(void);
extern void CModeNoSignalEvent(void);
extern void CModeNoCableEvent(void);
extern void CAccAdjust (BYTE mode);
#if (_HDMI_HOT_PLUG_OPTION == _ENABLE) //2007-8-23 15:36
//eric 20070315
void CModeHdmiHP(void);
//eric 20070315
extern void CModeHdmiHP(void);
#endif
#endif
//--------------------------------------------------
// Macro of Sync Processor Measure Ready Flag
//--------------------------------------------------
#define GET_VIDEOMODECHANGE() (bit)(ucInputSyncType & _BIT6)
#define SET_VIDEOMODECHANGE() ucInputSyncType |= _BIT6
#define CLR_VIDEOMODECHANGE() ucInputSyncType &= ~_BIT6
//--------------------------------------------------
// Macro of Start Display for OSD Flow
//--------------------------------------------------
#define GET_SHOW_NO_SIGNAL() (bit)(ucModeControl & _BIT0)
#define SET_SHOW_NO_SIGNAL() ucModeControl |= _BIT0
#define CLR_SHOW_NO_SIGNAL() ucModeControl &= ~_BIT0
#define GET_OSD_READYFORDISPLAY() (bit)(ucModeControl & _BIT1)
#define SET_OSD_READYFORDISPLAY() ucModeControl |= _BIT1
#define CLR_OSD_READYFORDISPLAY() ucModeControl &= ~_BIT1
//--------------------------------------------------
// Macro of Mode Stable Flag
//--------------------------------------------------
#define GET_MODESTABLE() ((bit)(ucModeControl & _BIT2))
#define SET_MODESTABLE() (ucModeControl |= _BIT2)
#define CLR_MODESTABLE() (ucModeControl &= ~_BIT2)
//--------------------------------------------------
// Macro of Frame Sync Status
//--------------------------------------------------
#define GET_FRAMESYNCSTATUS() ((bit)(ucModeControl & _BIT3))
#define SET_FRAMESYNCSTATUS() (ucModeControl |= _BIT3)
#define CLR_FRAMESYNCSTATUS() (ucModeControl &= ~_BIT3)
//--------------------------------------------------
// Macro of Start Display for show note flag // add by eric 20070718
//--------------------------------------------------
#define GET_FIRST_SHOW_NOTE() (bit)(ucModeControl & _BIT4)
#define SET_FIRST_SHOW_NOTE() ucModeControl |= _BIT4
#define CLR_FIRST_SHOW_NOTE() ucModeControl &= ~_BIT4
#define GET_CLEAR_OSD_EN() (bit)(ucModeControl & _BIT5)
#define SET_CLEAR_OSD_EN() ucModeControl |= _BIT5
#define CLR_CLEAR_OSD_EN() ucModeControl &= ~_BIT5
//--------------------------------------------------
// Macro of Start Display
//--------------------------------------------------
#define GET_READYFORDISPLAY() ((bit)(ucModeControl & _BIT7))
#define SET_READYFORDISPLAY() (ucModeControl |= _BIT7)
#define CLR_READYFORDISPLAY() (ucModeControl &= ~_BIT7)
//--------------------------------------------------
// Macro of Color Temperature
//--------------------------------------------------
#define GET_COLOR_TEMP_TYPE() (stSystemData.ColorTemp & (_BIT3 | _BIT2 | _BIT1 | _BIT0))
#define SET_COLOR_TEMP_TYPE(x) (stSystemData.ColorTemp = ((stSystemData.ColorTemp & ~(_BIT3 | _BIT2 | _BIT1 | _BIT0)) | x))
//----------------------------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -