XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/idt_8t49n24x.c
static int IDT_8T49N24x_SelectInputReference(void *IicPtr,
							u8 I2CSlaveAddress, u8 Input)
{
	int Result;
	u8 Value;
	u8 Mask;
	u8 Shift;

	Shift = 5;

	/* Clock 1 */
	if (Input == 1) {
		Value = (0x05 << Shift); 
	}

	/* Clock 0 */
	else {
		Value = (0x04 << Shift); 	
	}
	Mask = 0x07 << Shift;

	Result = IDT_8T49N24x_ModifyRegister(IicPtr, I2CSlaveAddress,
							0x0008, Value, Mask);

	return Result;
}
/*****************************************************************************/
/**
*
* This function set the input reference
*
* @param I2CBaseAddress is the baseaddress of the I2C core.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS 
*    - XST_FAILURE 
*
* @note None.
*
******************************************************************************/
This function set the input reference
This function set the input reference
static int IDT_8T49N24x_SelectInputReference(void *IicPtr,
							u8 I2CSlaveAddress, u8 Input)
{
	int Result;
	u8 Value;
	u8 Mask;
	u8 Shift;
	Shift = 5;
	if (Input == 1) {
		Value = (0x05 << Shift); 
	}
	else {
		Value = (0x04 << Shift); 	
	}
	Mask = 0x07 << Shift;
	Result = IDT_8T49N24x_ModifyRegister(IicPtr, I2CSlaveAddress,
							0x0008, Value, Mask);
	return Result;
}
static int IDT_8T49N24x_SelectInputReference ( void * IicPtr , u8 I2CSlaveAddress , u8 Input ) { int Result ; u8 Value ; u8 Mask ; u8 Shift ; Shift = 5 ; if ( Input == 1 ) { Value = ( 0x05 << Shift ) ; } else { Value = ( 0x04 << Shift ) ; } Mask = 0x07 << Shift ; Result = IDT_8T49N24x_ModifyRegister ( IicPtr , I2CSlaveAddress , 0x0008 , Value , Mask ) ; return Result ; }
This function set the input reference
This function set the input reference
/* Clock 1 */ /* Clock 0 */