XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
static const char *XHdcp1x_TxStateToString(XHdcp1x_StateType State)
{
	const char *String = NULL;

	/* Case-wise process the kind of state called */
	switch (State) {
		case XHDCP1X_STATE_DISABLED:
			String = "disabled";
			break;

		case XHDCP1X_STATE_DETERMINERXCAPABLE:
			String = "determine-rx-capable";
			break;

		case XHDCP1X_STATE_EXCHANGEKSVS:
			String = "exchange-ksvs";
			break;

		case XHDCP1X_STATE_COMPUTATIONS:
			String = "computations";
			break;

		case XHDCP1X_STATE_VALIDATERX:
			String = "validate-rx";
			break;

		case XHDCP1X_STATE_AUTHENTICATED:
			String = "authenticated";
			break;

		case XHDCP1X_STATE_LINKINTEGRITYCHECK:
			String = "link-integrity-check";
			break;

		case XHDCP1X_STATE_TESTFORREPEATER:
			String = "test-for-repeater";
			break;

		case XHDCP1X_STATE_WAITFORREADY:
			String = "wait-for-ready";
			break;

		case XHDCP1X_STATE_READKSVLIST:
			String = "read-ksv-list";
			break;

		case XHDCP1X_STATE_UNAUTHENTICATED:
			String = "unauthenticated";
			break;

		case XHDCP1X_STATE_PHYDOWN:
			String = "physical-layer-down";
			break;

		default:
			String = "unknown?";
			break;
	}

	return (String);
}
/*****************************************************************************/
/**
* This function converts from a state to a display string.
*
* @param	State is the state to convert.
*
* @return	The corresponding display string.
*
* @note		None.
*
******************************************************************************/
This function converts from a state to a display string.
This function converts from a state to a display string .
static const char *XHdcp1x_TxStateToString(XHdcp1x_StateType State)
{
	const char *String = NULL;
	switch (State) {
		case XHDCP1X_STATE_DISABLED:
			String = "disabled";
			break;
		case XHDCP1X_STATE_DETERMINERXCAPABLE:
			String = "determine-rx-capable";
			break;
		case XHDCP1X_STATE_EXCHANGEKSVS:
			String = "exchange-ksvs";
			break;
		case XHDCP1X_STATE_COMPUTATIONS:
			String = "computations";
			break;
		case XHDCP1X_STATE_VALIDATERX:
			String = "validate-rx";
			break;
		case XHDCP1X_STATE_AUTHENTICATED:
			String = "authenticated";
			break;
		case XHDCP1X_STATE_LINKINTEGRITYCHECK:
			String = "link-integrity-check";
			break;
		case XHDCP1X_STATE_TESTFORREPEATER:
			String = "test-for-repeater";
			break;
		case XHDCP1X_STATE_WAITFORREADY:
			String = "wait-for-ready";
			break;
		case XHDCP1X_STATE_READKSVLIST:
			String = "read-ksv-list";
			break;
		case XHDCP1X_STATE_UNAUTHENTICATED:
			String = "unauthenticated";
			break;
		case XHDCP1X_STATE_PHYDOWN:
			String = "physical-layer-down";
			break;
		default:
			String = "unknown?";
			break;
	}
	return (String);
}
static const char * XHdcp1x_TxStateToString ( XHdcp1x_StateType State ) { const char * String = NULL ; switch ( State ) { case XHDCP1X_STATE_DISABLED : String = " " ; break ; case XHDCP1X_STATE_DETERMINERXCAPABLE : String = " " ; break ; case XHDCP1X_STATE_EXCHANGEKSVS : String = " " ; break ; case XHDCP1X_STATE_COMPUTATIONS : String = " " ; break ; case XHDCP1X_STATE_VALIDATERX : String = " " ; break ; case XHDCP1X_STATE_AUTHENTICATED : String = " " ; break ; case XHDCP1X_STATE_LINKINTEGRITYCHECK : String = " " ; break ; case XHDCP1X_STATE_TESTFORREPEATER : String = " " ; break ; case XHDCP1X_STATE_WAITFORREADY : String = " " ; break ; case XHDCP1X_STATE_READKSVLIST : String = " " ; break ; case XHDCP1X_STATE_UNAUTHENTICATED : String = " " ; break ; case XHDCP1X_STATE_PHYDOWN : String = " " ; break ; default : String = " " ; break ; } return ( String ) ; }
This function converts from a state to a display string.
This function converts from a state to a display string .
/* Case-wise process the kind of state called */