XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/I2S/xhdmi_example.c
void VphyHdmiRxReadyCallback(void *CallbackRef) {
	XVphy *VphyPtr = (XVphy *)CallbackRef;
	XVphy_PllType RxPllType;

	/* Reset the menu to main */
	XHdmi_MenuReset(&HdmiMenu);

	RxPllType = XVphy_GetPllType(VphyPtr,
	                             0,
				     XVPHY_DIR_RX,
				     XVPHY_CHANNEL_ID_CH1);

	if (!(RxPllType == XVPHY_PLL_TYPE_CPLL)) {
		XV_HdmiRxSs_SetStream(&HdmiRxSs,
		        VphyPtr->HdmiRxRefClkHz,
			(XVphy_GetLineRateHz(&Vphy,
				             0,
					     XVPHY_CHANNEL_ID_CMN0)/1000000));

	} else {
		XV_HdmiRxSs_SetStream(&HdmiRxSs, VphyPtr->HdmiRxRefClkHz,
			 (XVphy_GetLineRateHz(&Vphy,
			                      0,
					      XVPHY_CHANNEL_ID_CH1)/1000000));
	}
}
/*****************************************************************************/
/**
*
* This function is called when the GT RX has been initialized.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when the GT RX has been initialized.
This function is called when the GT RX has been initialized .
void VphyHdmiRxReadyCallback(void *CallbackRef) {
	XVphy *VphyPtr = (XVphy *)CallbackRef;
	XVphy_PllType RxPllType;
	XHdmi_MenuReset(&HdmiMenu);
	RxPllType = XVphy_GetPllType(VphyPtr,
	                             0,
				     XVPHY_DIR_RX,
				     XVPHY_CHANNEL_ID_CH1);
	if (!(RxPllType == XVPHY_PLL_TYPE_CPLL)) {
		XV_HdmiRxSs_SetStream(&HdmiRxSs,
		        VphyPtr->HdmiRxRefClkHz,
			(XVphy_GetLineRateHz(&Vphy,
				             0,
					     XVPHY_CHANNEL_ID_CMN0)/1000000));
	} else {
		XV_HdmiRxSs_SetStream(&HdmiRxSs, VphyPtr->HdmiRxRefClkHz,
			 (XVphy_GetLineRateHz(&Vphy,
			                      0,
					      XVPHY_CHANNEL_ID_CH1)/1000000));
	}
}
void VphyHdmiRxReadyCallback ( void * CallbackRef ) { XVphy * VphyPtr = ( XVphy * ) CallbackRef ; XVphy_PllType RxPllType ; XHdmi_MenuReset ( & HdmiMenu ) ; RxPllType = XVphy_GetPllType ( VphyPtr , 0 , XVPHY_DIR_RX , XVPHY_CHANNEL_ID_CH1 ) ; if ( ! ( RxPllType == XVPHY_PLL_TYPE_CPLL ) ) { XV_HdmiRxSs_SetStream ( & HdmiRxSs , VphyPtr -> HdmiRxRefClkHz , ( XVphy_GetLineRateHz ( & Vphy , 0 , XVPHY_CHANNEL_ID_CMN0 ) / 1000000 ) ) ; } else { XV_HdmiRxSs_SetStream ( & HdmiRxSs , VphyPtr -> HdmiRxRefClkHz , ( XVphy_GetLineRateHz ( & Vphy , 0 , XVPHY_CHANNEL_ID_CH1 ) / 1000000 ) ) ; } }
This function is called when the GT RX has been initialized.
This function is called when the GT RX has been initialized .
/* Reset the menu to main */