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

		/* For the computations state */
		case XHDCP1X_STATE_COMPUTATIONS:
			InstancePtr->Tx.StateHelper = 0;
			break;

		/* For the validate rx state */
		case XHDCP1X_STATE_VALIDATERX:
			XHdcp1x_TxStopTimer(InstancePtr);
			break;

		/* For the wait for ready state */
		case XHDCP1X_STATE_WAITFORREADY:
			if (*NextStatePtr == XHDCP1X_STATE_READKSVLIST ||
			    *NextStatePtr == XHDCP1X_STATE_UNAUTHENTICATED) {
				/* Timer already stopped. */
			} else {
				XHdcp1x_TxStopTimer(InstancePtr);
			}
			break;

		/* For the read ksv list state */
		case XHDCP1X_STATE_READKSVLIST:
			InstancePtr->Tx.StateHelper = 0;
			break;

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

		/* Otherwise */
		default:
			/* Do nothing */
			break;
	}
}
/*****************************************************************************/
/**
* This function exits a state.
*
* @param	InstancePtr is the HDCP state machine.
* @param	State is the state to exit.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function exits a state.
This function exits a state .
static void XHdcp1x_TxExitState(XHdcp1x *InstancePtr, XHdcp1x_StateType State,
		XHdcp1x_StateType *NextStatePtr)
{
	switch (State) {
		case XHDCP1X_STATE_DISABLED:
			XHdcp1x_TxEnableState(InstancePtr);
			break;
		case XHDCP1X_STATE_COMPUTATIONS:
			InstancePtr->Tx.StateHelper = 0;
			break;
		case XHDCP1X_STATE_VALIDATERX:
			XHdcp1x_TxStopTimer(InstancePtr);
			break;
		case XHDCP1X_STATE_WAITFORREADY:
			if (*NextStatePtr == XHDCP1X_STATE_READKSVLIST ||
			    *NextStatePtr == XHDCP1X_STATE_UNAUTHENTICATED) {
			} else {
				XHdcp1x_TxStopTimer(InstancePtr);
			}
			break;
		case XHDCP1X_STATE_READKSVLIST:
			InstancePtr->Tx.StateHelper = 0;
			break;
		case XHDCP1X_STATE_PHYDOWN:
			XHdcp1x_CipherEnable(InstancePtr);
			break;
		default:
			break;
	}
}
static void XHdcp1x_TxExitState ( XHdcp1x * InstancePtr , XHdcp1x_StateType State , XHdcp1x_StateType * NextStatePtr ) { switch ( State ) { case XHDCP1X_STATE_DISABLED : XHdcp1x_TxEnableState ( InstancePtr ) ; break ; case XHDCP1X_STATE_COMPUTATIONS : InstancePtr -> Tx . StateHelper = 0 ; break ; case XHDCP1X_STATE_VALIDATERX : XHdcp1x_TxStopTimer ( InstancePtr ) ; break ; case XHDCP1X_STATE_WAITFORREADY : if ( * NextStatePtr == XHDCP1X_STATE_READKSVLIST || * NextStatePtr == XHDCP1X_STATE_UNAUTHENTICATED ) { } else { XHdcp1x_TxStopTimer ( InstancePtr ) ; } break ; case XHDCP1X_STATE_READKSVLIST : InstancePtr -> Tx . StateHelper = 0 ; break ; case XHDCP1X_STATE_PHYDOWN : XHdcp1x_CipherEnable ( InstancePtr ) ; break ; default : break ; } }
This function exits a state.
This function exits a state .
/* Case-wise process the kind of state called */ /* For the disabled state */ /* For the computations state */ /* For the validate rx state */ /* For the wait for ready state */ /* Timer already stopped. */ /* For the read ksv list state */ /* For physical layer down */ /* Otherwise */ /* Do nothing */