XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/TxOnly/xhdmi_example.c
void StartTxAfterRx(void) {

	/* Clear the Start Tx After Rx Flag */
	StartTxAfterRxFlag = (FALSE);

	/* Reset TPG */
	ResetTpg();

	/* Disable TX TDMS clock */
	XVphy_Clkout1OBufTdsEnable(&Vphy, XVPHY_DIR_TX, (FALSE));

	XV_HdmiTxSs_StreamStart(&HdmiTxSs);

	/* Enable RX clock forwarding */
	XVphy_Clkout1OBufTdsEnable(&Vphy, XVPHY_DIR_RX, (TRUE));

	/* Program external clock generator in locked mode
	 * Only when the GT TX and RX are not coupled
	 */
	if (!XVphy_IsBonded(&Vphy, 0, XVPHY_CHANNEL_ID_CH1)) {
		I2cClk(Vphy.HdmiRxRefClkHz,Vphy.HdmiTxRefClkHz);
	} else {
#if (!defined XPS_BOARD_ZCU104)
		Si5324_Reset(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
		Si5324_Init(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
#else
		IDT_8T49N24x_Init(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
#endif
	}
}
/*****************************************************************************/
/**
*
* This function is called to start the TX stream after the RX stream
* was up and running.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called to start the TX stream after the RX stream
was up and running.
This function is called to start the TX stream after the RX stream was up and running .
void StartTxAfterRx(void) {
	StartTxAfterRxFlag = (FALSE);
	ResetTpg();
	XVphy_Clkout1OBufTdsEnable(&Vphy, XVPHY_DIR_TX, (FALSE));
	XV_HdmiTxSs_StreamStart(&HdmiTxSs);
	XVphy_Clkout1OBufTdsEnable(&Vphy, XVPHY_DIR_RX, (TRUE));
	if (!XVphy_IsBonded(&Vphy, 0, XVPHY_CHANNEL_ID_CH1)) {
		I2cClk(Vphy.HdmiRxRefClkHz,Vphy.HdmiTxRefClkHz);
	} else {
#if (!defined XPS_BOARD_ZCU104)
		Si5324_Reset(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
		Si5324_Init(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
#else
		IDT_8T49N24x_Init(XPAR_IIC_0_BASEADDR, I2C_CLK_ADDR);
#endif
	}
}
void StartTxAfterRx ( void ) { StartTxAfterRxFlag = ( FALSE ) ; ResetTpg ( ) ; XVphy_Clkout1OBufTdsEnable ( & Vphy , XVPHY_DIR_TX , ( FALSE ) ) ; XV_HdmiTxSs_StreamStart ( & HdmiTxSs ) ; XVphy_Clkout1OBufTdsEnable ( & Vphy , XVPHY_DIR_RX , ( TRUE ) ) ; if ( ! XVphy_IsBonded ( & Vphy , 0 , XVPHY_CHANNEL_ID_CH1 ) ) { I2cClk ( Vphy . HdmiRxRefClkHz , Vphy . HdmiTxRefClkHz ) ; } else { #if ( ! defined XPS_BOARD_ZCU104 ) Si5324_Reset ( XPAR_IIC_0_BASEADDR , I2C_CLK_ADDR ) ; Si5324_Init ( XPAR_IIC_0_BASEADDR , I2C_CLK_ADDR ) ; #else IDT_8T49N24x_Init ( XPAR_IIC_0_BASEADDR , I2C_CLK_ADDR ) ; #endif } }
This function is called to start the TX stream after the RX stream
was up and running.
This function is called to start the TX stream after the RX stream was up and running .
/* Clear the Start Tx After Rx Flag */ /* Reset TPG */ /* Disable TX TDMS clock */ /* Enable RX clock forwarding */ /* Program external clock generator in locked mode
	 * Only when the GT TX and RX are not coupled
	 */