XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
static const char *XHdcp1x_TxEventToString(XHdcp1x_EventType Event)
{
	const char *String = NULL;

	/* Case-wise process the kind of event called */
	switch (Event) {
		case 	XHDCP1X_EVENT_NULL:
			String = "null";
			break;

		case 	XHDCP1X_EVENT_AUTHENTICATE:
			String = "authenticate";
			break;

		case	XHDCP1X_EVENT_CHECK:
			String = "check";
			break;

		case	XHDCP1X_EVENT_DISABLE:
			String = "disable";
			break;

		case	XHDCP1X_EVENT_ENABLE:
			String = "enable";
			break;

		case	XHDCP1X_EVENT_LINKDOWN:
			String = "link-down";
			break;

		case	XHDCP1X_EVENT_PHYDOWN:
			String = "phy-down";
			break;

		case	XHDCP1X_EVENT_PHYUP:
			String = "phy-up";
			break;

		case	XHDCP1X_EVENT_POLL:
			String = "poll";
			break;

		case	XHDCP1X_EVENT_TIMEOUT:
			String = "timeout";
			break;

		case	XHDCP1X_EVENT_READDOWNSTREAM:
			String = "read-downstream";
			break;

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

	return (String);
}
/*****************************************************************************/
/**
* This function converts from a state to a display string.
*
* @param	Event is the event 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_TxEventToString(XHdcp1x_EventType Event)
{
	const char *String = NULL;
	switch (Event) {
		case 	XHDCP1X_EVENT_NULL:
			String = "null";
			break;
		case 	XHDCP1X_EVENT_AUTHENTICATE:
			String = "authenticate";
			break;
		case	XHDCP1X_EVENT_CHECK:
			String = "check";
			break;
		case	XHDCP1X_EVENT_DISABLE:
			String = "disable";
			break;
		case	XHDCP1X_EVENT_ENABLE:
			String = "enable";
			break;
		case	XHDCP1X_EVENT_LINKDOWN:
			String = "link-down";
			break;
		case	XHDCP1X_EVENT_PHYDOWN:
			String = "phy-down";
			break;
		case	XHDCP1X_EVENT_PHYUP:
			String = "phy-up";
			break;
		case	XHDCP1X_EVENT_POLL:
			String = "poll";
			break;
		case	XHDCP1X_EVENT_TIMEOUT:
			String = "timeout";
			break;
		case	XHDCP1X_EVENT_READDOWNSTREAM:
			String = "read-downstream";
			break;
		default:
			String = "unknown?";
			break;
	}
	return (String);
}
static const char * XHdcp1x_TxEventToString ( XHdcp1x_EventType Event ) { const char * String = NULL ; switch ( Event ) { case XHDCP1X_EVENT_NULL : String = " " ; break ; case XHDCP1X_EVENT_AUTHENTICATE : String = " " ; break ; case XHDCP1X_EVENT_CHECK : String = " " ; break ; case XHDCP1X_EVENT_DISABLE : String = " " ; break ; case XHDCP1X_EVENT_ENABLE : String = " " ; break ; case XHDCP1X_EVENT_LINKDOWN : String = " " ; break ; case XHDCP1X_EVENT_PHYDOWN : String = " " ; break ; case XHDCP1X_EVENT_PHYUP : String = " " ; break ; case XHDCP1X_EVENT_POLL : String = " " ; break ; case XHDCP1X_EVENT_TIMEOUT : String = " " ; break ; case XHDCP1X_EVENT_READDOWNSTREAM : 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 event called */