XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/idt_8t49n24x.c
int IDT_8T49N24x_Init(void *IicPtr, u8 I2CSlaveAddress)
{
	int Result;

	/* Check device ID */
	Result = IDT_8T49N24x_CheckDeviceID(IicPtr, I2CSlaveAddress);

	if (Result == XST_SUCCESS) {

		/* Disable DPLL and APLL calibration
		 * The i2c interface is clocked by the APLL.
		 * During the PLL parameters update, the i2c might become unresponsive.
		 * To prevent this, the DPLL and APLL calibration are disabled during
		 * the i2c transactions
		 */
		Result = IDT_8T49N24x_Enable(IicPtr, I2CSlaveAddress, FALSE);

		/* Configure device */
		Result = IDT_8T49N24x_Configure_JA(IicPtr, I2CSlaveAddress);

		/* Enable DPLL and APLL calibration */
		Result = IDT_8T49N24x_Enable(IicPtr, I2CSlaveAddress, TRUE);

		return Result;
	}

	return XST_FAILURE;
}
/*****************************************************************************/
/**
*
* This function initializes the IDT 8TN49N24x with default values
* for use with the Video FMC.
*
* @param I2CBaseAddress is the baseaddress of the I2C core.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS Initialization was successful.
*    - XST_FAILURE I2C write error.
*
* @note None.
*
******************************************************************************/
This function initializes the IDT 8TN49N24x with default values
for use with the Video FMC.
This function initializes the IDT 8TN49N24x with default values for use with the Video FMC .
int IDT_8T49N24x_Init(void *IicPtr, u8 I2CSlaveAddress)
{
	int Result;
	Result = IDT_8T49N24x_CheckDeviceID(IicPtr, I2CSlaveAddress);
	if (Result == XST_SUCCESS) {
		Result = IDT_8T49N24x_Enable(IicPtr, I2CSlaveAddress, FALSE);
		Result = IDT_8T49N24x_Configure_JA(IicPtr, I2CSlaveAddress);
		Result = IDT_8T49N24x_Enable(IicPtr, I2CSlaveAddress, TRUE);
		return Result;
	}
	return XST_FAILURE;
}
int IDT_8T49N24x_Init ( void * IicPtr , u8 I2CSlaveAddress ) { int Result ; Result = IDT_8T49N24x_CheckDeviceID ( IicPtr , I2CSlaveAddress ) ; if ( Result == XST_SUCCESS ) { Result = IDT_8T49N24x_Enable ( IicPtr , I2CSlaveAddress , FALSE ) ; Result = IDT_8T49N24x_Configure_JA ( IicPtr , I2CSlaveAddress ) ; Result = IDT_8T49N24x_Enable ( IicPtr , I2CSlaveAddress , TRUE ) ; return Result ; } return XST_FAILURE ; }
This function initializes the IDT 8TN49N24x with default values
for use with the Video FMC.
This function initializes the IDT 8TN49N24x with default values for use with the Video FMC .
/* Check device ID */ /* Disable DPLL and APLL calibration
		 * The i2c interface is clocked by the APLL.
		 * During the PLL parameters update, the i2c might become unresponsive.
		 * To prevent this, the DPLL and APLL calibration are disabled during
		 * the i2c transactions
		 */ /* Configure device */ /* Enable DPLL and APLL calibration */