XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/idt_8t49n24x.c
static int IDT_8T49N24x_DSMFractional(void *IicPtr, u8 I2CSlaveAddress,
							u32 Value)
{
	int Result;
	u8 Data;

	/* DSM_FRAC[20:16] */
	Data = (Value >> 16) & 0x1f; 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x0028, Data);

	/* DSM_FRAC[15:8] */
	Data = (Value >> 8); 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x0029, Data);

	/* DSM_FRAC[7:0] */
	Data = (Value & 0xff); 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x002a, Data);

	return Result;
}
/*****************************************************************************/
/**
*
* This function set the DSM fractional
*
* @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 DSM fractional
This function set the DSM fractional
static int IDT_8T49N24x_DSMFractional(void *IicPtr, u8 I2CSlaveAddress,
							u32 Value)
{
	int Result;
	u8 Data;
	Data = (Value >> 16) & 0x1f; 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x0028, Data);
	Data = (Value >> 8); 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x0029, Data);
	Data = (Value & 0xff); 
	Result = IDT_8T49N24x_SetRegister(IicPtr, I2CSlaveAddress,
							0x002a, Data);
	return Result;
}
static int IDT_8T49N24x_DSMFractional ( void * IicPtr , u8 I2CSlaveAddress , u32 Value ) { int Result ; u8 Data ; Data = ( Value >> 16 ) & 0x1f ; Result = IDT_8T49N24x_SetRegister ( IicPtr , I2CSlaveAddress , 0x0028 , Data ) ; Data = ( Value >> 8 ) ; Result = IDT_8T49N24x_SetRegister ( IicPtr , I2CSlaveAddress , 0x0029 , Data ) ; Data = ( Value & 0xff ) ; Result = IDT_8T49N24x_SetRegister ( IicPtr , I2CSlaveAddress , 0x002a , Data ) ; return Result ; }
This function set the DSM fractional
This function set the DSM fractional
/* DSM_FRAC[20:16] */ /* DSM_FRAC[15:8] */ /* DSM_FRAC[7:0] */