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

	if (Enable) {
		/* Digital PLL enabled - Calibration logic for Analog PLL enabled */
		Value = 0x00;
	}

	else {
		/* Digital PLL disabled - Calibration logic for Analog PLL disabled */
		Value = 0x05;
	}
	Mask = 0x05;
	Result = IDT_8T49N24x_ModifyRegister(IicPtr, I2CSlaveAddress,
							0x0070, Value, Mask);

	return Result;
}
/*****************************************************************************/
/**
*
* This function enables/disables the DPLL and APLL calibration
*
* @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 enables/disables the DPLL and APLL calibration
This function enables / disables the DPLL and APLL calibration
static int IDT_8T49N24x_Enable(void *IicPtr, u8 I2CSlaveAddress,
							u8 Enable)
{
	int Result;
	u8 Value;
	u8 Mask;
	if (Enable) {
		Value = 0x00;
	}
	else {
		Value = 0x05;
	}
	Mask = 0x05;
	Result = IDT_8T49N24x_ModifyRegister(IicPtr, I2CSlaveAddress,
							0x0070, Value, Mask);
	return Result;
}
static int IDT_8T49N24x_Enable ( void * IicPtr , u8 I2CSlaveAddress , u8 Enable ) { int Result ; u8 Value ; u8 Mask ; if ( Enable ) { Value = 0x00 ; } else { Value = 0x05 ; } Mask = 0x05 ; Result = IDT_8T49N24x_ModifyRegister ( IicPtr , I2CSlaveAddress , 0x0070 , Value , Mask ) ; return Result ; }
This function enables/disables the DPLL and APLL calibration
This function enables / disables the DPLL and APLL calibration
/* Digital PLL enabled - Calibration logic for Analog PLL enabled */ /* Digital PLL disabled - Calibration logic for Analog PLL disabled */