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

📄 control.#1

📁 epsondriver 驱动源代码
💻 #1
📖 第 1 页 / 共 2 页
字号:



/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetVSPRSG (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Video Signal Processing Green Setting Register
		
*********************************************************************************************************/
void SetVSPGSG (void)
{
	n=66;
	for(i=0;i<=18;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}





/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetVSPRSB (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Video Signal Processing Blue Setting Register
		
*********************************************************************************************************/
void SetVSPBSB (void)
{
	n=85;
	for(i=0;i<=18;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}





/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetGCRAMR (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Red Gamma Correction RAM
		
*********************************************************************************************************/
void SetGCRAMR (void)
{
	n=104;
	for(i=0;i<=256;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}





/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetGCRAMG (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Green Gamma Correction RAM
		
*********************************************************************************************************/
void SetGCRAMG (void)
{
	n=361;
	for(i=0;i<=256;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}





/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetGCRAMB (void)
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Blue Gamma Correction RAM
		
*********************************************************************************************************/
void SetGCRAMB (void)
{
	n=618;
	for(i=0;i<=256;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetVSPPQICSR (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Video Signal Processing Picture Quality Improvement 
Correction Setting Register
		
*********************************************************************************************************/
void SetVSPPQICSR (void)
{
	n=875;
	for(i=0;i<=53;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetVSPCUCSRa (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Video Signal Processing Color Uniformity Correction Setting Register
		
*********************************************************************************************************/
void SetVSPCUCSRa (void)
{
	n=929;
	for(i=0;i<=41;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void SetVSPCUCSRb (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Video Signal Processing Color Uniformity Correction Setting Register 
NOTICE:
	Several data items are written to the same register.
	Be sure to reset the address counter before writing the first data
		
*********************************************************************************************************/
void SetVSPCUCSRb (void)
{
	n=971;
	for(i=0;i<=9;i++)
		{
			sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
			sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
			sRecComBuf[2]=SM_Receive (_24LC256, 4*n+2);
			sRecComBuf[3]=SM_Receive (_24LC256, 4*n+3);
			n++;
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			Address0707=*pointer++<<8;
			Address0707+=*pointer++;
			Data0707   =*pointer++<<8;
			Data0707   +=*pointer;
			Address24LC256=*pointer++<<8; 
			Address24LC256  +=*pointer++;     
			pointer=sRecComBuf;          //pointer->sRecComBuf[0]
			_0707READY();
			WRITE_0707(Address0707,Data0707);
			NONE_READY();
		}
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void Set6100R (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Red LCD panel voltage
		
*********************************************************************************************************/
void Set6100R (void)
{
	n=981;
	sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
	sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
	pointer=sRecComBuf;          //pointer->sRecComBuf[0]
	DataAddress6100=*pointer++<<4;
	DataAddress6100+=*pointer++;
	_B6100READY() ;                //Ready for red 6100
	WRITE_6100(DataAddress6100);
	NONE_READY();
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void Set6100G (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Green LCD panel voltage
		
*********************************************************************************************************/
void Set6100G (void)
{
	n=982;
	sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
	sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
	pointer=sRecComBuf;          //pointer->sRecComBuf[0]
	DataAddress6100=*pointer++<<4;
	DataAddress6100+=*pointer++;
	_B6100READY() ;                //Ready for red 6100
	WRITE_6100(DataAddress6100);
	NONE_READY();
}




/*********************************************************************************************************
----------------------------------------------------------------------------------------------------------
										void Set6100B (void) 
										Author            : Neil
										Data              : 2005-5
----------------------------------------------------------------------------------------------------------
This routine is read data and address 
from 24lc256 to Set Blue LCD panel voltage
		
*********************************************************************************************************/
void Set6100B (void)
{
	n=983;
	sRecComBuf[0]=SM_Receive (_24LC256, 4*n);
	sRecComBuf[1]=SM_Receive (_24LC256, 4*n+1);
	pointer=sRecComBuf;          //pointer->sRecComBuf[0]
	DataAddress6100=*pointer++<<4;
	DataAddress6100+=*pointer++;
	_B6100READY() ;                //Ready for red 6100
	WRITE_6100(DataAddress6100);
	NONE_READY();
}

#undef CTONL_C

⌨️ 快捷键说明

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