XilinxProcessorIPLib/drivers/hdcp22_rx/src/xhdcp22_rx.c
int XHdcp22Rx_Enable(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	/* Verify DDC handles assigned */
	Xil_AssertNonvoid(InstancePtr->Handles.IsDdcAllCallbacksSet == TRUE);
	/* Verify keys loaded */
	Xil_AssertNonvoid(InstancePtr->PublicCertPtr != NULL);
	Xil_AssertNonvoid(InstancePtr->PrivateKeyPtr != NULL);
	/* Verify devices ready */
	Xil_AssertNonvoid(InstancePtr->MmultInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->TimerInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->RngInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->CipherInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/* Log info event */
	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_INFO, XHDCP22_RX_LOG_INFO_ENABLE);

	/* Enable RNG and Cipher */
	XHdcp22Rng_Enable(&InstancePtr->RngInst);
	XHdcp22Cipher_Enable(&InstancePtr->CipherInst);

	/* Assert enabled flag */
	InstancePtr->Info.IsEnabled = TRUE;

	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
* This function enables the HDCP22-RX state machine. The HDCP2Version
* register is set to active.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	XST_SUCCESS or XST_FAILURE.
*
* @note		Before enabling the state machine ensure that the instance has
*			been initialized, DDC message handles have been assigned, and keys
*			have been loaded.
******************************************************************************/
This function enables the HDCP22-RX state machine. The HDCP2Version
register is set to active.
This function enables the HDCP22 - RX state machine . The HDCP2Version register is set to active .
int XHdcp22Rx_Enable(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->Handles.IsDdcAllCallbacksSet == TRUE);
	Xil_AssertNonvoid(InstancePtr->PublicCertPtr != NULL);
	Xil_AssertNonvoid(InstancePtr->PrivateKeyPtr != NULL);
	Xil_AssertNonvoid(InstancePtr->MmultInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->TimerInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->RngInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->CipherInst.IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XHdcp22Rx_LogWr(InstancePtr, XHDCP22_RX_LOG_EVT_INFO, XHDCP22_RX_LOG_INFO_ENABLE);
	XHdcp22Rng_Enable(&InstancePtr->RngInst);
	XHdcp22Cipher_Enable(&InstancePtr->CipherInst);
	InstancePtr->Info.IsEnabled = TRUE;
	return (XST_SUCCESS);
}
int XHdcp22Rx_Enable ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> Handles . IsDdcAllCallbacksSet == TRUE ) ; Xil_AssertNonvoid ( InstancePtr -> PublicCertPtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> PrivateKeyPtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> MmultInst . IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( InstancePtr -> TimerInst . IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( InstancePtr -> RngInst . IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( InstancePtr -> CipherInst . IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; XHdcp22Rx_LogWr ( InstancePtr , XHDCP22_RX_LOG_EVT_INFO , XHDCP22_RX_LOG_INFO_ENABLE ) ; XHdcp22Rng_Enable ( & InstancePtr -> RngInst ) ; XHdcp22Cipher_Enable ( & InstancePtr -> CipherInst ) ; InstancePtr -> Info . IsEnabled = TRUE ; return ( XST_SUCCESS ) ; }
This function enables the HDCP22-RX state machine.
This function enables the HDCP22 - RX state machine .
/* Verify arguments */ /* Verify DDC handles assigned */ /* Verify keys loaded */ /* Verify devices ready */ /* Log info event */ /* Enable RNG and Cipher */ /* Assert enabled flag */