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

📄 cc_zilog.c

📁 此程序为twell8806驱动程序
💻 C
字号:
//=================================================================================================
//                         CC with Zilog
//=================================================================================================
void CCDecoderCmd( BYTE cmd)
{
	WriteI2Cn_(0x28, &cmd, 1);		// CC decoder i2c address:0x28
}

void EnableCCDecoder( BYTE on )
{
	if( GetInputSelection()==COMPONENT ) return;
	if( GetInputSelection()==SCART ) return;

	SEL_MIX = 1;	// Select CC decoder

	if( on >= CC_CC1 && on <= CC_CC4 ) 
	{
		WriteDecoder( INFORM, ReadDecoder(INFORM) | 0x01 );		// xxxx xxx1 // RGB1
		WriteDecoder( ACNTL, ReadDecoder(ACNTL) & 0xfe );		// x1xx xxx0  // FB ADC Normal
		WriteDecoder( SCrGAIN, ReadDecoder(SCrGAIN) & 0x7f );	// 0xxx xxxx	// Hsync Dac Enable
		WriteDecoder( RGBCONTROL, 0x03 );						// 0000 0000
		WriteDecoder( RGBMISC, 0x05 );							// 0000 0101	// RGB , FB Mode:RGB+FB
	}

	switch( on )
	 {
	case CC_CC1:	CCDecoderCmd(0x17);	break;
	case CC_CC2:	CCDecoderCmd(0x15);	break;
	case CC_CC3:	CCDecoderCmd(0x1f);	break;
	case CC_CC4:	CCDecoderCmd(0x1d);	break;
	case FALSE:		CCDecoderCmd(0x10);	break;
	}
}

void InitClosedCaption_Zilog(void)
{
	EnableCCDecoder( CCFLAG );
}

void ClearClosedCaption_Zilog(void)
{
	CCFlag &= ( ~(CC_ACTIVE) );			// clear CC_ACTIVE 	 //	CC_ACTIVE=0x10

	#ifdef DEBUG_CCEDS
	dPrintf("\r\n(ClearClosedCaption)CCFlag:%d \r\n__", (WORD)CCFlag);
	#endif

	#ifdef SUPPORT_CC_DECODER
	EnableCCDecoder(FALSE);
	#endif

	InitOSDMenu();		// reset OSD window and prepare menu

	Change_OSDColorLookup();

}

⌨️ 快捷键说明

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