XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static void XHdcp22Rx_ResetDdc(XHdcp22_Rx *InstancePtr, u8 ClrWrBuffer,
	u8 ClrRdBuffer, u8 ClrReady, u8 ClrReauthReq)
{
	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->Handles.IsDdcAllCallbacksSet == TRUE);

	/* Clear READY flag */
	if(ClrReady) {
		InstancePtr->Info.TopologyReady = FALSE;
	}

	/* Clear REAUTH_REQ flag */
	if(ClrReauthReq) {
		InstancePtr->Info.ReauthReq = FALSE;
	}

	/* Update RxStatus register */
	XHdcp22Rx_SetRxStatus(InstancePtr, 0, InstancePtr->Info.ReauthReq, InstancePtr->Info.TopologyReady);

	/* Reset read message buffers */
	if(ClrRdBuffer)
	{
		InstancePtr->Handles.DdcClearReadBufferCallback(InstancePtr->Handles.DdcClearReadBufferCallbackRef);
		/* Initialize DDC status flag */
		InstancePtr->Info.DdcFlag = XHDCP22_RX_DDC_FLAG_READ_MESSAGE_READY;
	}

	/* Reset write message buffers */
	if(ClrWrBuffer) {
		InstancePtr->Handles.DdcClearWriteBufferCallback(InstancePtr->Handles.DdcClearWriteBufferCallbackRef);
	}

	/* Clear DDC error flags */
	InstancePtr->Info.ErrorFlag &= ~XHDCP22_RX_ERROR_FLAG_DDC_BURST;

	/* Set HDCP2Version register */
	InstancePtr->Handles.DdcSetAddressCallback(InstancePtr->Handles.DdcSetAddressCallbackRef, XHDCP22_RX_DDC_VERSION_REG);
	InstancePtr->Handles.DdcSetDataCallback(InstancePtr->Handles.DdcSetDataCallbackRef, 0x04);
}
/*****************************************************************************/
/**
* This function resets the HDCP22-RX DDC registers to their default values
* and clears the read/write message buffers. The DDC status flag is set to
* it's initial state and the DDC error flags are cleared.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
* @param	ClrWrBuffer is TRUE to clear the write message buffer.
* @param	ClrRdBuffer is TRUE to clear the read message buffer.
* @param	ClrReady is TRUE to clear the READY bit.
* @param	ClrReauthReq is set to TRUE to clear the REAUTH_REQ bit.
*
* @return	None.
*
* @note		None.
******************************************************************************/
This function resets the HDCP22-RX DDC registers to their default values
and clears the read/write message buffers. The DDC status flag is set to
it's initial state and the DDC error flags are cleared.
This function resets the HDCP22 - RX DDC registers to their default values and clears the read / write message buffers . The DDC status flag is set to it ' s initial state and the DDC error flags are cleared .
static void XHdcp22Rx_ResetDdc(XHdcp22_Rx *InstancePtr, u8 ClrWrBuffer,
	u8 ClrRdBuffer, u8 ClrReady, u8 ClrReauthReq)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->Handles.IsDdcAllCallbacksSet == TRUE);
	if(ClrReady) {
		InstancePtr->Info.TopologyReady = FALSE;
	}
	if(ClrReauthReq) {
		InstancePtr->Info.ReauthReq = FALSE;
	}
	XHdcp22Rx_SetRxStatus(InstancePtr, 0, InstancePtr->Info.ReauthReq, InstancePtr->Info.TopologyReady);
	if(ClrRdBuffer)
	{
		InstancePtr->Handles.DdcClearReadBufferCallback(InstancePtr->Handles.DdcClearReadBufferCallbackRef);
		InstancePtr->Info.DdcFlag = XHDCP22_RX_DDC_FLAG_READ_MESSAGE_READY;
	}
	if(ClrWrBuffer) {
		InstancePtr->Handles.DdcClearWriteBufferCallback(InstancePtr->Handles.DdcClearWriteBufferCallbackRef);
	}
	InstancePtr->Info.ErrorFlag &= ~XHDCP22_RX_ERROR_FLAG_DDC_BURST;
	InstancePtr->Handles.DdcSetAddressCallback(InstancePtr->Handles.DdcSetAddressCallbackRef, XHDCP22_RX_DDC_VERSION_REG);
	InstancePtr->Handles.DdcSetDataCallback(InstancePtr->Handles.DdcSetDataCallbackRef, 0x04);
}
static void XHdcp22Rx_ResetDdc ( XHdcp22_Rx * InstancePtr , u8 ClrWrBuffer , u8 ClrRdBuffer , u8 ClrReady , u8 ClrReauthReq ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> Handles . IsDdcAllCallbacksSet == TRUE ) ; if ( ClrReady ) { InstancePtr -> Info . TopologyReady = FALSE ; } if ( ClrReauthReq ) { InstancePtr -> Info . ReauthReq = FALSE ; } XHdcp22Rx_SetRxStatus ( InstancePtr , 0 , InstancePtr -> Info . ReauthReq , InstancePtr -> Info . TopologyReady ) ; if ( ClrRdBuffer ) { InstancePtr -> Handles . DdcClearReadBufferCallback ( InstancePtr -> Handles . DdcClearReadBufferCallbackRef ) ; InstancePtr -> Info . DdcFlag = XHDCP22_RX_DDC_FLAG_READ_MESSAGE_READY ; } if ( ClrWrBuffer ) { InstancePtr -> Handles . DdcClearWriteBufferCallback ( InstancePtr -> Handles . DdcClearWriteBufferCallbackRef ) ; } InstancePtr -> Info . ErrorFlag &= ~ XHDCP22_RX_ERROR_FLAG_DDC_BURST ; InstancePtr -> Handles . DdcSetAddressCallback ( InstancePtr -> Handles . DdcSetAddressCallbackRef , XHDCP22_RX_DDC_VERSION_REG ) ; InstancePtr -> Handles . DdcSetDataCallback ( InstancePtr -> Handles . DdcSetDataCallbackRef , 0x04 ) ; }
This function resets the HDCP22-RX DDC registers to their default values
and clears the read/write message buffers.
This function resets the HDCP22 - RX DDC registers to their default values and clears the read / write message buffers .
/* Verify arguments */ /* Clear READY flag */ /* Clear REAUTH_REQ flag */ /* Update RxStatus register */ /* Reset read message buffers */ /* Initialize DDC status flag */ /* Reset write message buffers */ /* Clear DDC error flags */ /* Set HDCP2Version register */