XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_hdmi.c
u8 XHdmiphy1_ClkDetCheckFreqZero(XHdmiphy1 *InstancePtr,
        XHdmiphy1_DirectionType Dir)
{
	u32 MaskVal = 0;
	u32 RegVal;

	if (Dir == XHDMIPHY1_DIR_TX) {
		MaskVal = XHDMIPHY1_CLKDET_STAT_TX_FREQ_ZERO_MASK;
	}
	else {
		MaskVal = XHDMIPHY1_CLKDET_STAT_RX_FREQ_ZERO_MASK;
	}

	RegVal = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_DRU_STAT_REG);
	RegVal &= MaskVal;

	if (RegVal) {
		return (TRUE);
	}

	return (FALSE);
}
/*****************************************************************************/
/**
* This function checks clock detector RX/TX frequency zero indicator bit.
*
* @param	InstancePtr is a pointer to the XHdmiphy1 core instance.
* @param	Dir is an indicator for RX or TX.
*
* @return	- TRUE if zero frequency.
*		- FALSE otherwise, if non-zero frequency.
*
* @note		None.
*
******************************************************************************/
This function checks clock detector RX/TX frequency zero indicator bit.
This function checks clock detector RX / TX frequency zero indicator bit .
u8 XHdmiphy1_ClkDetCheckFreqZero(XHdmiphy1 *InstancePtr,
        XHdmiphy1_DirectionType Dir)
{
	u32 MaskVal = 0;
	u32 RegVal;
	if (Dir == XHDMIPHY1_DIR_TX) {
		MaskVal = XHDMIPHY1_CLKDET_STAT_TX_FREQ_ZERO_MASK;
	}
	else {
		MaskVal = XHDMIPHY1_CLKDET_STAT_RX_FREQ_ZERO_MASK;
	}
	RegVal = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_DRU_STAT_REG);
	RegVal &= MaskVal;
	if (RegVal) {
		return (TRUE);
	}
	return (FALSE);
}
u8 XHdmiphy1_ClkDetCheckFreqZero ( XHdmiphy1 * InstancePtr , XHdmiphy1_DirectionType Dir ) { u32 MaskVal = 0 ; u32 RegVal ; if ( Dir == XHDMIPHY1_DIR_TX ) { MaskVal = XHDMIPHY1_CLKDET_STAT_TX_FREQ_ZERO_MASK ; } else { MaskVal = XHDMIPHY1_CLKDET_STAT_RX_FREQ_ZERO_MASK ; } RegVal = XHdmiphy1_ReadReg ( InstancePtr -> Config . BaseAddr , XHDMIPHY1_DRU_STAT_REG ) ; RegVal &= MaskVal ; if ( RegVal ) { return ( TRUE ) ; } return ( FALSE ) ; }
This function checks clock detector RX/TX frequency zero indicator bit.
This function checks clock detector RX / TX frequency zero indicator bit .