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

📄 scaler.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      : Scaler.h No.0000
// Update Note  :
//----------------------------------------------------------------------------------------------------

//--------------------------------------------------
// Definitions of Scaler
//--------------------------------------------------

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

#ifdef __SCALER__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------
#if(_LOAD_FONT_TYPE == _SOFT_WARE)
BYTE data ucVLDCnt, ucVLDTemp;
BYTE *pvldarray;
#endif

BYTE data ucTest = 0;//1231 sephinroth

//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
void CScalerInitial(void);
void CScalerResetInFromMCU(void);
void CScalerReset(void);
void CScalerInitialDisplayInterface(void);
void CScalerInitialDisplayOutput(void);
void CScalerEnableDisplayOutput(void);
//void CScalerDisableDisplayOutput(void);
void CScalerEnableDisplayTiming(void);
void CScalerDisableDisplayTiming(void);

#if(_MCU_TYPE != _REALTEK_EMBEDDED)
void CScalerSendReadStop(void);
void CScalerSendWriteStop(void);
void CScalerSendAddr(BYTE ucAddr, bit bReadWrite, bit bAutoInc);
void CScalerSendByte(BYTE ucValue);
#endif  // End of #if(_MCU_TYPE != _REALTEK_EMBEDDED)

#if(_MCU_TYPE == _REALTEK_EMBEDDED)
void CScalerSendAddr(BYTE ucAddr, bit bAutoInc);
void CScalerSendByte(BYTE ucValue);
#endif

void CScalerWrite(BYTE ucAddr, WORD usLength, BYTE *pArray, bit bAutoInc);
void CScalerRead(BYTE ucAddr, BYTE ucLength, BYTE *pArray, bit bAutoInc);
void CScalerWriteAmount(BYTE ucAddr, WORD usLength, BYTE ucValue, bit bAutoInc);
void CScalerSetByte(BYTE ucAddr, BYTE ucValue);
void CScalerSetDataPortByte(BYTE ucAddr, BYTE ucValue1, BYTE ucValue2);
void CScalerGetDataPortByte(BYTE ucAddr, BYTE ucValue, BYTE ucLength, BYTE *pArray, bit bAutoInc);
void CScalerSetBit(BYTE ucAddr, BYTE ucAnd, BYTE ucOr);
void CScalerSetDataPortBit(BYTE ucAddr, BYTE ucValue, BYTE ucAnd, BYTE ucOr);
BYTE CScalerGetBit(BYTE ucAddr, BYTE ucAnd);
//BYTE CScalerGetDataPortBit(BYTE ucAddr, BYTE ucValue, BYTE ucAnd);
void CScalerCodeW(BYTE *pArray);
void CScalerLoadHardwareVLCFont(BYTE *pArray, WORD usOffset);
void CScalerLoadFont(BYTE *pArray, WORD usOffset, WORD usLength, BYTE ucPar);
BYTE CScalerGetVLD(void);
bit CScalerGetBitVLD(void);
void CScalerPageSelect(BYTE page);

#if(_DP_SUPPORT == _ON)
void CScalerReadByteInt(BYTE ucAddr , BYTE *pArray);
void CScalerWriteInt(BYTE ucAddr, WORD usLength, BYTE *pArray, bit bAutoInc);
void CScalerSetByteInt(BYTE ucAddr, BYTE ucValue);
#endif

#if(_OSD_ROTATE_FUCTION == _ON)
void CScalerSendRotateByte(void);
#endif



#else


//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
#if(_LOAD_FONT_TYPE == _SOFT_WARE)
extern BYTE data ucVLDCnt, ucVLDTemp;
extern BYTE *pvldarray;
#endif

extern BYTE data ucTest;//1231 sephinroth

//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void CScalerInitial(void);
extern void CScalerResetInFromMCU(void);
extern void CScalerEnableDisplayOutput(void);
//extern void CScalerDisableDisplayOutput(void);
extern void CScalerEnableDisplayTiming(void);
extern void CScalerDisableDisplayTiming(void);

#if(_MCU_TYPE != _REALTEK_EMBEDDED)
extern void CScalerSendReadStop(void);
extern void CScalerSendWriteStop(void);
extern void CScalerSendAddr(BYTE ucAddr, bit bReadWrite, bit bAutoInc);
extern void CScalerSendByte(BYTE ucValue);
#endif  // End of #if(_MCU_TYPE != _REALTEK_EMBEDDED)

#if(_MCU_TYPE == _REALTEK_EMBEDDED)
extern void CScalerSendAddr(BYTE ucAddr, bit bAutoInc);
extern void CScalerSendByte(BYTE ucValue);
#endif

extern void CScalerWrite(BYTE ucAddr, WORD usLength, BYTE *pArray, bit bAutoInc);
extern void CScalerRead(BYTE ucAddr, BYTE ucLength, BYTE *pArray, bit bAutoInc);
extern void CScalerWriteAmount(BYTE ucAddr, WORD usLength, BYTE ucValue, bit bAutoInc);
extern void CScalerSetByte(BYTE ucAddr, BYTE ucValue);
extern void CScalerSetDataPortByte(BYTE ucAddr, BYTE ucValue1, BYTE ucValue2);
extern void CScalerGetDataPortByte(BYTE ucAddr, BYTE ucValue, BYTE ucLength, BYTE *pArray, bit bAutoInc);
extern void CScalerSetBit(BYTE ucAddr, BYTE ucAnd, BYTE ucOr);
extern void CScalerSetDataPortBit(BYTE ucAddr, BYTE ucValue, BYTE ucAnd, BYTE ucOr);
extern BYTE CScalerGetBit(BYTE ucAddr, BYTE ucAnd);
//extern BYTE CScalerGetDataPortBit(BYTE ucAddr, BYTE ucValue, BYTE ucAnd);
extern void CScalerCodeW(BYTE *pArray);
extern void CScalerLoadHardwareVLCFont(BYTE *pArray, WORD usOffset);
extern void CScalerLoadFont(BYTE *pArray, WORD usOffset, WORD usLength, BYTE ucPar);
extern BYTE CScalerGetVLD(void);
extern bit CScalerGetBitVLD(void);
extern void CScalerPageSelect(BYTE page);
#if(_DP_SUPPORT == _ON)
extern void CScalerReadByteInt(BYTE ucAddr , BYTE *pArray);
extern void CScalerWriteInt(BYTE ucAddr, WORD usLength, BYTE *pArray, bit bAutoInc);
extern void CScalerSetByteInt(BYTE ucAddr, BYTE ucValue);
#endif


#if(_OSD_ROTATE_FUCTION == _ON)
extern void CScalerSendRotateByte(void);
#endif
#endif // End of #ifdef __SCALER__


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

//--------------------------------------------------
// Macro of Scaler.c
//--------------------------------------------------
#define SETSCALERSCLK()             (bSCALERSCLK = _TRUE)
#define CLRSCALERSCLK()             (bSCALERSCLK = _FALSE)

#define SETSCALERSCSB()             (bSCALERSCSB = _TRUE)
#define CLRSCALERSCSB()             (bSCALERSCSB = _FALSE)

#define SETSCALERSDIO3(x)           (bSCALERSDIO3 = x)
#define GETSCALERSDIO3()            (bSCALERSDIO3)


⌨️ 快捷键说明

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