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

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

//--------------------------------------------------
// Definitions of
//--------------------------------------------------
//#if(_OSD_TYPE == _DUAL_OSD)

#define MAXOF(a,b)    (((a) > (b)) ? (a) : (b))
#define MINOF(a,b)    (((a) < (b)) ? (a) : (b))
//----------------------------------------------------------------------------------------------------

#ifdef __DUAL_ALIGN__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------

BYTE xdata RamI2cCommandData[10];
bit bAlignmentDo = 0;    //0727 Initial For Safe
//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
BYTE AlignMapToPercent(WORD RealValue,WORD Max,WORD Min);
WORD AlignMapToReal(BYTE PercentValue,WORD Max,WORD Min);

#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
extern BYTE xdata RamI2cCommandData[10];
extern bit bAlignmentDo;
//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void Alignment(void);
extern BYTE AlignMapToPercent(WORD RealValue,WORD Max,WORD Min);
extern WORD AlignMapToReal(BYTE PercentValue,WORD Max,WORD Min);
#endif


//----------------------------------------------------------------------------------------------------
//#endif  //End of #if(_OSD_TYPE == _DUAL_OSD)

⌨️ 快捷键说明

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