XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
void XHdcp22Tx_LogReset(XHdcp22_Tx *InstancePtr, u8 Verbose)
{
	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);

	InstancePtr->Log.Head = 0;
	InstancePtr->Log.Tail = 0;
	InstancePtr->Log.Verbose = Verbose;
	/* Reset and start the logging timer. */
	/* Note: This timer increments continuously and will wrap at 42 second (100 Mhz clock) */
	if (InstancePtr->Timer.TmrCtr.IsReady == XIL_COMPONENT_IS_READY) {
	   XTmrCtr_SetResetValue(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_1, 0);
	   XTmrCtr_Start(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_1);
	}
}
/*****************************************************************************/
/**
*
* This function clears the log pointers
*
* @param  InstancePtr is a pointer to the XHdcp22_Tx core instance.
* @param  Verbose allows to add debug logging.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function clears the log pointers
This function clears the log pointers
void XHdcp22Tx_LogReset(XHdcp22_Tx *InstancePtr, u8 Verbose)
{
	Xil_AssertVoid(InstancePtr != NULL);
	InstancePtr->Log.Head = 0;
	InstancePtr->Log.Tail = 0;
	InstancePtr->Log.Verbose = Verbose;
	if (InstancePtr->Timer.TmrCtr.IsReady == XIL_COMPONENT_IS_READY) {
	   XTmrCtr_SetResetValue(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_1, 0);
	   XTmrCtr_Start(&InstancePtr->Timer.TmrCtr, XHDCP22_TX_TIMER_CNTR_1);
	}
}
void XHdcp22Tx_LogReset ( XHdcp22_Tx * InstancePtr , u8 Verbose ) { Xil_AssertVoid ( InstancePtr != NULL ) ; InstancePtr -> Log . Head = 0 ; InstancePtr -> Log . Tail = 0 ; InstancePtr -> Log . Verbose = Verbose ; if ( InstancePtr -> Timer . TmrCtr . IsReady == XIL_COMPONENT_IS_READY ) { XTmrCtr_SetResetValue ( & InstancePtr -> Timer . TmrCtr , XHDCP22_TX_TIMER_CNTR_1 , 0 ) ; XTmrCtr_Start ( & InstancePtr -> Timer . TmrCtr , XHDCP22_TX_TIMER_CNTR_1 ) ; } }
This function clears the log pointers
This function clears the log pointers
/* Verify arguments. */ /* Reset and start the logging timer. */ /* Note: This timer increments continuously and will wrap at 42 second (100 Mhz clock) */