XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
static void XHdcp1x_RxExitState(XHdcp1x *InstancePtr, XHdcp1x_StateType State)
{
	/* Case-wise process the kind of state called */
	switch (State) {
		/* For the disabled state */
		case XHDCP1X_STATE_DISABLED:
			XHdcp1x_RxEnableState(InstancePtr);
			break;

		/* For the authenticated state */
		case XHDCP1X_STATE_AUTHENTICATED:
			XHdcp1x_RxStopTimer(InstancePtr);
			XHdcp1x_RxSetCheckLinkState(InstancePtr, FALSE);
			break;

		/* For physical layer down */
		case XHDCP1X_STATE_PHYDOWN:
			XHdcp1x_CipherEnable(InstancePtr);
			break;

		/* For wait-for-downstream ready */
		case XHDCP1X_STATE_WAITFORDOWNSTREAM:
			XHdcp1x_RxStopTimer(InstancePtr);

		/* Otherwise */
		default:
			/* Do nothing */
			break;
	}
}
/*****************************************************************************/
/**
* This function exits a HDCP receiver state.
*
* @param	InstancePtr is the receiver instance.
* @param	State is the state to exit.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function exits a HDCP receiver state.
This function exits a HDCP receiver state .
static void XHdcp1x_RxExitState(XHdcp1x *InstancePtr, XHdcp1x_StateType State)
{
	switch (State) {
		case XHDCP1X_STATE_DISABLED:
			XHdcp1x_RxEnableState(InstancePtr);
			break;
		case XHDCP1X_STATE_AUTHENTICATED:
			XHdcp1x_RxStopTimer(InstancePtr);
			XHdcp1x_RxSetCheckLinkState(InstancePtr, FALSE);
			break;
		case XHDCP1X_STATE_PHYDOWN:
			XHdcp1x_CipherEnable(InstancePtr);
			break;
		case XHDCP1X_STATE_WAITFORDOWNSTREAM:
			XHdcp1x_RxStopTimer(InstancePtr);
		default:
			break;
	}
}
static void XHdcp1x_RxExitState ( XHdcp1x * InstancePtr , XHdcp1x_StateType State ) { switch ( State ) { case XHDCP1X_STATE_DISABLED : XHdcp1x_RxEnableState ( InstancePtr ) ; break ; case XHDCP1X_STATE_AUTHENTICATED : XHdcp1x_RxStopTimer ( InstancePtr ) ; XHdcp1x_RxSetCheckLinkState ( InstancePtr , FALSE ) ; break ; case XHDCP1X_STATE_PHYDOWN : XHdcp1x_CipherEnable ( InstancePtr ) ; break ; case XHDCP1X_STATE_WAITFORDOWNSTREAM : XHdcp1x_RxStopTimer ( InstancePtr ) ; default : break ; } }
This function exits a HDCP receiver state.
This function exits a HDCP receiver state .
/* Case-wise process the kind of state called */ /* For the disabled state */ /* For the authenticated state */ /* For physical layer down */ /* For wait-for-downstream ready */ /* Otherwise */ /* Do nothing */