XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
static void XHdcp1x_RxCheckEncryptionChange(XHdcp1x *InstancePtr)
{
	InstancePtr->Rx.XORState.PreviousState =
			InstancePtr->Rx.XORState.CurrentState;

	InstancePtr->Rx.XORState.CurrentState =
			XHdcp1x_CipherXorInProgress(InstancePtr);

	/* Check if encrypted */
	if (InstancePtr->Rx.XORState.CurrentState !=
			InstancePtr->Rx.XORState.PreviousState) {
		/* Call encryption update callback */
		if (InstancePtr->Rx.IsEncryptionUpdateCallbackSet) {
			InstancePtr->Rx.EncryptionUpdateCallback(
			InstancePtr->Rx.EncryptionUpdateCallbackRef);
		}
	}

	/* Start a 2 second timer again */
	XHdcp1x_RxStartTimer(InstancePtr, (2 * XVPHY_TMO_1SECOND));
}
/*****************************************************************************/
/**
* This functions handles check if the encryption status (enable/disable) of
* the HDCP cipher has changed.
*
* @param	InstancePtr is the receiver instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This functions handles check if the encryption status (enable/disable) of
the HDCP cipher has changed.
This functions handles check if the encryption status ( enable / disable ) of the HDCP cipher has changed .
static void XHdcp1x_RxCheckEncryptionChange(XHdcp1x *InstancePtr)
{
	InstancePtr->Rx.XORState.PreviousState =
			InstancePtr->Rx.XORState.CurrentState;
	InstancePtr->Rx.XORState.CurrentState =
			XHdcp1x_CipherXorInProgress(InstancePtr);
	if (InstancePtr->Rx.XORState.CurrentState !=
			InstancePtr->Rx.XORState.PreviousState) {
		if (InstancePtr->Rx.IsEncryptionUpdateCallbackSet) {
			InstancePtr->Rx.EncryptionUpdateCallback(
			InstancePtr->Rx.EncryptionUpdateCallbackRef);
		}
	}
	XHdcp1x_RxStartTimer(InstancePtr, (2 * XVPHY_TMO_1SECOND));
}
static void XHdcp1x_RxCheckEncryptionChange ( XHdcp1x * InstancePtr ) { InstancePtr -> Rx . XORState . PreviousState = InstancePtr -> Rx . XORState . CurrentState ; InstancePtr -> Rx . XORState . CurrentState = XHdcp1x_CipherXorInProgress ( InstancePtr ) ; if ( InstancePtr -> Rx . XORState . CurrentState != InstancePtr -> Rx . XORState . PreviousState ) { if ( InstancePtr -> Rx . IsEncryptionUpdateCallbackSet ) { InstancePtr -> Rx . EncryptionUpdateCallback ( InstancePtr -> Rx . EncryptionUpdateCallbackRef ) ; } } XHdcp1x_RxStartTimer ( InstancePtr , ( 2 * XVPHY_TMO_1SECOND ) ) ; }
This functions handles check if the encryption status (enable/disable) of
the HDCP cipher has changed.
This functions handles check if the encryption status ( enable / disable ) of the HDCP cipher has changed .
/* Check if encrypted */ /* Call encryption update callback */ /* Start a 2 second timer again */