XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
static void XHdcp1x_TxRunDisabledState(XHdcp1x *InstancePtr,
		XHdcp1x_EventType Event, XHdcp1x_StateType *NextStatePtr)
{
	/* Case-wise process the kind of event called */
	switch (Event) {
		/* For enable */
		case XHDCP1X_EVENT_ENABLE:
			*NextStatePtr = XHDCP1X_STATE_UNAUTHENTICATED;
			if ((InstancePtr->Tx.Flags & XVPHY_FLAG_PHY_UP) == 0) {
				*NextStatePtr = XHDCP1X_STATE_PHYDOWN;
			}
			break;

		/* For physical layer down */
		case XHDCP1X_EVENT_PHYDOWN:
			InstancePtr->Tx.Flags &= ~XVPHY_FLAG_PHY_UP;
			break;

		/* For physical layer up */
		case XHDCP1X_EVENT_PHYUP:
			InstancePtr->Tx.Flags |= XVPHY_FLAG_PHY_UP;
			break;

		/* Otherwise */
		default:
			/* Do nothing */
			break;
	}
}
/*****************************************************************************/
/**
* This function runs the "disabled" state of the transmit state machine.
*
* @param	InstancePtr is the transmitter instance.
* @param	Event is the event to process.
* @param	NextStatePtr is the next state.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function runs the "disabled" state of the transmit state machine.
This function runs the " disabled " state of the transmit state machine .
static void XHdcp1x_TxRunDisabledState(XHdcp1x *InstancePtr,
		XHdcp1x_EventType Event, XHdcp1x_StateType *NextStatePtr)
{
	switch (Event) {
		case XHDCP1X_EVENT_ENABLE:
			*NextStatePtr = XHDCP1X_STATE_UNAUTHENTICATED;
			if ((InstancePtr->Tx.Flags & XVPHY_FLAG_PHY_UP) == 0) {
				*NextStatePtr = XHDCP1X_STATE_PHYDOWN;
			}
			break;
		case XHDCP1X_EVENT_PHYDOWN:
			InstancePtr->Tx.Flags &= ~XVPHY_FLAG_PHY_UP;
			break;
		case XHDCP1X_EVENT_PHYUP:
			InstancePtr->Tx.Flags |= XVPHY_FLAG_PHY_UP;
			break;
		default:
			break;
	}
}
static void XHdcp1x_TxRunDisabledState ( XHdcp1x * InstancePtr , XHdcp1x_EventType Event , XHdcp1x_StateType * NextStatePtr ) { switch ( Event ) { case XHDCP1X_EVENT_ENABLE : * NextStatePtr = XHDCP1X_STATE_UNAUTHENTICATED ; if ( ( InstancePtr -> Tx . Flags & XVPHY_FLAG_PHY_UP ) == 0 ) { * NextStatePtr = XHDCP1X_STATE_PHYDOWN ; } break ; case XHDCP1X_EVENT_PHYDOWN : InstancePtr -> Tx . Flags &= ~ XVPHY_FLAG_PHY_UP ; break ; case XHDCP1X_EVENT_PHYUP : InstancePtr -> Tx . Flags |= XVPHY_FLAG_PHY_UP ; break ; default : break ; } }
This function runs the "disabled" state of the transmit state machine.
This function runs the " disabled " state of the transmit state machine .
/* Case-wise process the kind of event called */ /* For enable */ /* For physical layer down */ /* For physical layer up */ /* Otherwise */ /* Do nothing */