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

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

#if(_DCR_MODE == _DCR_TYPE_2)

#ifdef __DCR_TYPE_2__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------
WORD xdata usHorBoundary;
WORD xdata usVerBoundary;
WORD xdata usRGBInfo;
BYTE xdata ucPreBacklightPWM = 255;
BYTE xdata ucPreDCCLum = 0;
//BYTE xdata ucDcrCtrl = 0;

BYTE xdata ucDCRPercent = 100;  //Max 100
bit idata bAutoMeasureByDCR = 0;

void CDcrSetBoundary(void);
void CDcrMeasureStart(void);
void CDcrDcr2(void);
void CAdjustDCRFillDCCTable( BYTE ucValue);
void CDcrWaitingMeasureReadyEven(void);
void CDcrSlowAdjust(BYTE ucValue);

#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
extern void CDcrSetBoundary(void);
extern void CDcrMeasureStart(void);
extern void CDcrWaitingMeasureReadyEven(void);  // add by DCR 20071218
extern void CDcrSlowAdjust(BYTE ucValue);
//extern BYTE xdata ucDcrCtrl;
extern bit idata bAutoMeasureByDCR;
#endif //End of #ifdef __DCR_TYPE_2__

//--------------------------------------------------
// DCR of Power Status
//--------------------------------------------------
/*
#define GET_DCRWAITINGTIMEOUT()                 (bit)(ucDcrCtrl & _BIT0)
#define SET_DCRWAITINGTIMEOUT()                 (ucDcrCtrl |= _BIT0)
#define CLR_DCRWAITINGTIMEOUT()                 (ucDcrCtrl &= ~_BIT0)

#define GET_DCR_STATUS()                        ((bit)(ucDcrCtrl & _BIT1))
#define SET_DCR_STATUS()                        (ucDcrCtrl |= _BIT1)
#define CLR_DCR_STATUS()                        (ucDcrCtrl &= ~_BIT1)

#define GET_DCR_CAPTUREIMAGE()                  (bit)(ucDcrCtrl & _BIT7)
#define SET_DCR_CAPTUREIMAGE()                  (ucDcrCtrl |= _BIT7)
#define CLR_DCR_CAPTUREIMAGE()                  (ucDcrCtrl &= ~_BIT7)
*/


#endif // End of #if(_DCR_MODE == _DCR_TYPE_2)


⌨️ 快捷键说明

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