XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/TxOnly/xhdmi_example.c
int OnBoardSi5324Init(void)
{
	u8 Buffer;
	int Status;

	/* Select SI5324 clock generator */
	Buffer = 0x10;
	XIic_Send((XPAR_IIC_1_BASEADDR), (I2C_MUX_ADDR),
			  (u8 *)&Buffer, 1, (XIIC_STOP));

	/* Initialize Si5324 */
	Si5324_Init(XPAR_IIC_1_BASEADDR, I2C_CLK_ADDR);

	/* Program Output Frequency Si5324 */
	Status = Si5324_SetClock((XPAR_IIC_1_BASEADDR),
	                         (I2C_CLK_ADDR),
				 (SI5324_CLKSRC_XTAL),
				 (SI5324_XTAL_FREQ), (u32)125000000);

	if (Status != (SI5324_SUCCESS)) {
		xil_printf("Error programming On-Board SI5324\r\n");
		return 0;
	}

	return Status;
}
/*****************************************************************************/
/**
*
* This function initializes the ZC706 on-board SI5324 clock generator over IIC.
* CLKOUT1 is set to 125 MHz
*
* @param  None.
*
* @return The number of bytes sent.
*
* @note   None.
*
******************************************************************************/
This function initializes the ZC706 on-board SI5324 clock generator over IIC.
CLKOUT1 is set to 125 MHz
This function initializes the ZC706 on - board SI5324 clock generator over IIC . CLKOUT1 is set to 125 MHz
int OnBoardSi5324Init(void)
{
	u8 Buffer;
	int Status;
	Buffer = 0x10;
	XIic_Send((XPAR_IIC_1_BASEADDR), (I2C_MUX_ADDR),
			  (u8 *)&Buffer, 1, (XIIC_STOP));
	Si5324_Init(XPAR_IIC_1_BASEADDR, I2C_CLK_ADDR);
	Status = Si5324_SetClock((XPAR_IIC_1_BASEADDR),
	                         (I2C_CLK_ADDR),
				 (SI5324_CLKSRC_XTAL),
				 (SI5324_XTAL_FREQ), (u32)125000000);
	if (Status != (SI5324_SUCCESS)) {
		xil_printf("Error programming On-Board SI5324\r\n");
		return 0;
	}
	return Status;
}
int OnBoardSi5324Init ( void ) { u8 Buffer ; int Status ; Buffer = 0x10 ; XIic_Send ( ( XPAR_IIC_1_BASEADDR ) , ( I2C_MUX_ADDR ) , ( u8 * ) & Buffer , 1 , ( XIIC_STOP ) ) ; Si5324_Init ( XPAR_IIC_1_BASEADDR , I2C_CLK_ADDR ) ; Status = Si5324_SetClock ( ( XPAR_IIC_1_BASEADDR ) , ( I2C_CLK_ADDR ) , ( SI5324_CLKSRC_XTAL ) , ( SI5324_XTAL_FREQ ) , ( u32 ) 125000000 ) ; if ( Status != ( SI5324_SUCCESS ) ) { xil_printf ( " \r \n " ) ; return 0 ; } return Status ; }
This function initializes the ZC706 on-board SI5324 clock generator over IIC.
This function initializes the ZC706 on - board SI5324 clock generator over IIC .
/* Select SI5324 clock generator */ /* Initialize Si5324 */ /* Program Output Frequency Si5324 */