XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1.c
u64 XHdmiphy1_GetLineRateHz(XHdmiphy1 *InstancePtr, u8 QuadId,
        XHdmiphy1_ChannelId ChId)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((ChId < XHDMIPHY1_CHANNEL_ID_CMNA));

	XHdmiphy1_ChannelId Ch_Id = ChId;

	if (ChId == XHDMIPHY1_CHANNEL_ID_CHA) {
		Ch_Id = XHDMIPHY1_CHANNEL_ID_CH1;
	} else if (ChId == XHDMIPHY1_CHANNEL_ID_CMNA) {
		Ch_Id = XHDMIPHY1_CHANNEL_ID_CMN0;
	}

	return InstancePtr->Quads[QuadId].Plls[Ch_Id -
		XHDMIPHY1_CHANNEL_ID_CH1].LineRateHz;
}
/*****************************************************************************/
/**
* This function will return the line rate in Hz for a given channel / quad.
*
* @param	InstancePtr is a pointer to the XHdmiphy1 core instance.
* @param	QuadId is the GT quad ID to check.
* @param	ChId is the channel ID for which to retrieve the line rate.
*
* @return	The line rate in Hz.
*
* @note		None.
*
******************************************************************************/
This function will return the line rate in Hz for a given channel / quad.
This function will return the line rate in Hz for a given channel / quad .
u64 XHdmiphy1_GetLineRateHz(XHdmiphy1 *InstancePtr, u8 QuadId,
        XHdmiphy1_ChannelId ChId)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((ChId < XHDMIPHY1_CHANNEL_ID_CMNA));
	XHdmiphy1_ChannelId Ch_Id = ChId;
	if (ChId == XHDMIPHY1_CHANNEL_ID_CHA) {
		Ch_Id = XHDMIPHY1_CHANNEL_ID_CH1;
	} else if (ChId == XHDMIPHY1_CHANNEL_ID_CMNA) {
		Ch_Id = XHDMIPHY1_CHANNEL_ID_CMN0;
	}
	return InstancePtr->Quads[QuadId].Plls[Ch_Id -
		XHDMIPHY1_CHANNEL_ID_CH1].LineRateHz;
}
u64 XHdmiphy1_GetLineRateHz ( XHdmiphy1 * InstancePtr , u8 QuadId , XHdmiphy1_ChannelId ChId ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ( ChId < XHDMIPHY1_CHANNEL_ID_CMNA ) ) ; XHdmiphy1_ChannelId Ch_Id = ChId ; if ( ChId == XHDMIPHY1_CHANNEL_ID_CHA ) { Ch_Id = XHDMIPHY1_CHANNEL_ID_CH1 ; } else if ( ChId == XHDMIPHY1_CHANNEL_ID_CMNA ) { Ch_Id = XHDMIPHY1_CHANNEL_ID_CMN0 ; } return InstancePtr -> Quads [ QuadId ] . Plls [ Ch_Id - XHDMIPHY1_CHANNEL_ID_CH1 ] . LineRateHz ; }
This function will return the line rate in Hz for a given channel / quad.
This function will return the line rate in Hz for a given channel / quad .