XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
u32 XHdcp22Tx_LogGetTimeUSecs(XHdcp22_Tx *InstancePtr)
{
	if (InstancePtr->Timer.TmrCtr.IsReady != XIL_COMPONENT_IS_READY)
		return 0;

	u32 PeriodUsec = (u32)InstancePtr->Timer.TmrCtr.Config.SysClockFreqHz / 1000000;
	return 	 ( XTmrCtr_GetValue(&InstancePtr->Timer.TmrCtr,
			   XHDCP22_TX_TIMER_CNTR_1) / PeriodUsec);
}
/*****************************************************************************/
/**
*
* This function returns the time expired since a log reset was called
*
* @param  InstancePtr is a pointer to the XHdcp22_Tx core instance.
*
* @return The expired logging time in useconds.
*
* @note   None.
*
******************************************************************************/
This function returns the time expired since a log reset was called
This function returns the time expired since a log reset was called
u32 XHdcp22Tx_LogGetTimeUSecs(XHdcp22_Tx *InstancePtr)
{
	if (InstancePtr->Timer.TmrCtr.IsReady != XIL_COMPONENT_IS_READY)
		return 0;
	u32 PeriodUsec = (u32)InstancePtr->Timer.TmrCtr.Config.SysClockFreqHz / 1000000;
	return 	 ( XTmrCtr_GetValue(&InstancePtr->Timer.TmrCtr,
			   XHDCP22_TX_TIMER_CNTR_1) / PeriodUsec);
}
u32 XHdcp22Tx_LogGetTimeUSecs ( XHdcp22_Tx * InstancePtr ) { if ( InstancePtr -> Timer . TmrCtr . IsReady != XIL_COMPONENT_IS_READY ) return 0 ; u32 PeriodUsec = ( u32 ) InstancePtr -> Timer . TmrCtr . Config . SysClockFreqHz / 1000000 ; return ( XTmrCtr_GetValue ( & InstancePtr -> Timer . TmrCtr , XHDCP22_TX_TIMER_CNTR_1 ) / PeriodUsec ) ; }
This function returns the time expired since a log reset was called
This function returns the time expired since a log reset was called