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

📄 misc.h

📁 realtek LCD monitor, TV开发源代码
💻 H
字号:
//**********************************************************************************************************
//  The  Software  is  proprietary,  confidential,  and  valuable to Realtek Semiconductor
//  Corporation  ("Realtek").  All  rights, including but not limited  to  copyrights,
//  patents,  trademarks, trade secrets, mask work rights, and other similar rights and interests,
//  are reserved to Realtek. Without  prior  written  consent  from  Realtek,  copying, reproduction,
//  modification,  distribution,  or  otherwise  is strictly prohibited. The Software  shall  be
//  kept  strictly  in  confidence,  and  shall  not be  disclosed to or otherwise accessed by
//  any third party. @ <2003> - <2008>   The Software is provided "AS IS" without any warranty of any kind,
//  express, implied, statutory or otherwise.
//**********************************************************************************************************
//----------------------------------------------------------------------------------------------------
// ID Code      : Misc.h No.0000
// Update Note  :
//----------------------------------------------------------------------------------------------------

//--------------------------------------------------
// Definitions of
//--------------------------------------------------
//Anderson 080215 for Debug Message Support Start
#if((_DEBUG_MESSAGE_SUPPORT == _ON) && ((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED)))
#define _NO_VALUE                       0xFFFFFFFF
#endif
//Anderson 080215 for Debug Message Support End

//----------------------------------------------------------------------------------------------------

#ifdef __MISC__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------
#if((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED))

BYTE ucDdcciCommandNumber = 0;
BYTE TxBUF=0;
bit bRunCommand=0;
BYTE idata ucDdcciData[4];

#endif

//Anderosn 080512 for Debug Message Support Start
#if((_DEBUG_MESSAGE_SUPPORT == _ON) && ((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED)))
BYTE idata TxTemp = 0; //TxTemp is the register of TxBUF.
bit idata bDebugMessageEven = _INITIAL_MESSAGE_ACK;
bit idata bDebugMessageStart = 0;
bit idata bDataOutEnd = 0;
//BYTE xdata pDebugMessageBUF[4]        _at_ _DEBUG_MESSAGE_ADDRESS; //Ming-Yen modify 20080115
BYTE idata pDebugMessageBUF[4] = 0;
#endif
//Anderosn 080512 for Debug Message Support End


//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
bit CMiscScalerResetEvent(void);
bit CMiscStableFlagPollingEvent(void);
bit CMiscHsyncTypeAutoRunFlagPollingEvent(void);
bit CMiscModeMeasurePollingEvent(void);
bit CMiscAutoMeasurePollingEvent(void);
bit CMiscApplyDoubleBufferPollingEvent(void);
bit CMiscTMDSMeasureEvent(void);


bit CMiscFlashEraseEvent(void);
void CMiscEnableDoubleBuffer(void);
void CMiscDisableDoubleBuffer(void);
void CMiscApplyDoubleBuffer(void);
void CMiscClearStatusRegister(void);
void CMiscSetPinShare(void);
//Anderson 080512 for Debug Message Support Start
void CMiscIspack(void);
void CMiscIspDebugProc(void);
#if(_DEBUG_MESSAGE_SUPPORT == _ON)
void CMiscDebugMessage(BYTE *pArray1, DWORD pArray2);
#endif
//Anderson 080512 for Debug Message Support End
void CMiscEdidPoc(void);

#if((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED))
void CDdcciInitial(void);
#endif


#else


//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
#if((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED))

extern BYTE ucDdcciCommandNumber;
extern bit bRunCommand;
extern idata BYTE ucDdcciData[4];
extern BYTE TxBUF;

#endif

//Anderson 080215 for Debug Message Support Start
#if((_DEBUG_MESSAGE_SUPPORT == _ON) && ((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED)))
extern BYTE idata TxTemp;
extern bit idata bDebugMessageStart;
extern bit idata bDataOutEnd;
//extern BYTE xdata pDebugMessageBUF[4];//Anderson 080512

#endif
//Anderson 080215 for Debug Message Support End

//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern bit CMiscScalerResetEvent(void);
extern bit CMiscStableFlagPollingEvent(void);
extern bit CMiscHsyncTypeAutoRunFlagPollingEvent(void);
extern bit CMiscModeMeasurePollingEvent(void);
extern bit CMiscAutoMeasurePollingEvent(void);
extern bit CMiscTMDSMeasureEvent(void);


extern bit CMiscFlashEraseEvent(void);
extern void CMiscEnableDoubleBuffer(void);
extern void CMiscDisableDoubleBuffer(void);
extern void CMiscApplyDoubleBuffer(void);
extern void CMiscClearStatusRegister(void);
extern void CMiscSetPinShare(void);
//Anderson 080512 for Debug Message Support Start
extern void CMiscIspDebugProc(void);
#if(_DEBUG_MESSAGE_SUPPORT == _ON)
extern void CMiscDebugMessage(BYTE *pArray1, DWORD pArray2);
#endif
//Anderson 080512 for Debug Message Support End
extern void CMiscEdidPoc(void);

#if((_DEBUG_TOOL == _ISP_FOR_RTD2120) || (_DEBUG_TOOL == _ISP_FOR_EMBEDDED))
extern void CDdcciInitial(void);
#endif

extern void CMiscProtectLangauge(void);

#endif // End of #ifdef __MISC__



//----------------------------------------------------------------------------------------------------

⌨️ 快捷键说明

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