XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
void XHdcp22Tx_Info(XHdcp22_Tx *InstancePtr)
{
	xil_printf("Status : ");
	if (XHdcp22Tx_IsEnabled(InstancePtr)) {
		switch (InstancePtr->Info.AuthenticationStatus) {
			case XHDCP22_TX_INCOMPATIBLE_RX :
			xil_printf("RX is incompatible.\r\n");
			break;

			case XHDCP22_TX_AUTHENTICATION_BUSY :
			xil_printf("Busy Authentication.\r\n");
			break;

			case XHDCP22_TX_REAUTHENTICATE_REQUESTED :
			xil_printf("Re-authentication Requested.\r\n");
			break;

			case XHDCP22_TX_UNAUTHENTICATED :
			xil_printf("Not Authenticated.\r\n");
			break;

			case XHDCP22_TX_AUTHENTICATED :
			xil_printf("Authenticated.\r\n");
			break;

			case XHDCP22_TX_DEVICE_IS_REVOKED :
			xil_printf("Device Revoked.\r\n");
			break;

			case XHDCP22_TX_NO_SRM_LOADED :
			xil_printf("No SRM Loaded.\r\n");
			break;

			default :
			xil_printf("Unknown state.\r\n");
			break;
		}
	} else {
		xil_printf("Core is disabled.\r\n");
	}

	xil_printf("Encryption : ");
	if (XHdcp22Tx_IsEncryptionEnabled(InstancePtr)) {
		xil_printf("Enabled.\r\n");
	} else {
		xil_printf("Disabled.\r\n");
	}

	xil_printf("Repeater: ");
	if (XHdcp22Tx_IsRepeater(InstancePtr)) {
		if (InstancePtr->Topology.MaxDevsExceeded)
			xil_printf("MaxDevsExceeded, ");
		if (InstancePtr->Topology.MaxCascadeExceeded)
			xil_printf("MaxCascadeExceeded, ");
		if (InstancePtr->Topology.Hdcp2LegacyDeviceDownstream)
			xil_printf("Hdcp2LegacyDeviceDownstream, ");
		if (InstancePtr->Topology.Hdcp1DeviceDownstream)
			xil_printf("Hdcp1DeviceDownstream, ");
		xil_printf("Depth=%d, ", InstancePtr->Topology.Depth);
		xil_printf("DeviceCnt=%d, ", InstancePtr->Topology.DeviceCnt);
		xil_printf("StreamType=%d\r\n", InstancePtr->Info.ContentStreamType);
	} else {
		xil_printf("Disabled.\r\n");
	}

	xil_printf("Auth Requests: %d\r\n", InstancePtr->Info.AuthRequestCnt);
	xil_printf("Reauth Requests: %d\r\n", InstancePtr->Info.ReauthRequestCnt);
	xil_printf("Polling Interval: %d ms\r\n", InstancePtr->Info.PollingValue);
}
/*****************************************************************************/
/**
*
* This function prints the state machine information.
*
* @param  InstancePtr is a pointer to the HDCP22 TX core instance.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function prints the state machine information.
This function prints the state machine information .
void XHdcp22Tx_Info(XHdcp22_Tx *InstancePtr)
{
	xil_printf("Status : ");
	if (XHdcp22Tx_IsEnabled(InstancePtr)) {
		switch (InstancePtr->Info.AuthenticationStatus) {
			case XHDCP22_TX_INCOMPATIBLE_RX :
			xil_printf("RX is incompatible.\r\n");
			break;
			case XHDCP22_TX_AUTHENTICATION_BUSY :
			xil_printf("Busy Authentication.\r\n");
			break;
			case XHDCP22_TX_REAUTHENTICATE_REQUESTED :
			xil_printf("Re-authentication Requested.\r\n");
			break;
			case XHDCP22_TX_UNAUTHENTICATED :
			xil_printf("Not Authenticated.\r\n");
			break;
			case XHDCP22_TX_AUTHENTICATED :
			xil_printf("Authenticated.\r\n");
			break;
			case XHDCP22_TX_DEVICE_IS_REVOKED :
			xil_printf("Device Revoked.\r\n");
			break;
			case XHDCP22_TX_NO_SRM_LOADED :
			xil_printf("No SRM Loaded.\r\n");
			break;
			default :
			xil_printf("Unknown state.\r\n");
			break;
		}
	} else {
		xil_printf("Core is disabled.\r\n");
	}
	xil_printf("Encryption : ");
	if (XHdcp22Tx_IsEncryptionEnabled(InstancePtr)) {
		xil_printf("Enabled.\r\n");
	} else {
		xil_printf("Disabled.\r\n");
	}
	xil_printf("Repeater: ");
	if (XHdcp22Tx_IsRepeater(InstancePtr)) {
		if (InstancePtr->Topology.MaxDevsExceeded)
			xil_printf("MaxDevsExceeded, ");
		if (InstancePtr->Topology.MaxCascadeExceeded)
			xil_printf("MaxCascadeExceeded, ");
		if (InstancePtr->Topology.Hdcp2LegacyDeviceDownstream)
			xil_printf("Hdcp2LegacyDeviceDownstream, ");
		if (InstancePtr->Topology.Hdcp1DeviceDownstream)
			xil_printf("Hdcp1DeviceDownstream, ");
		xil_printf("Depth=%d, ", InstancePtr->Topology.Depth);
		xil_printf("DeviceCnt=%d, ", InstancePtr->Topology.DeviceCnt);
		xil_printf("StreamType=%d\r\n", InstancePtr->Info.ContentStreamType);
	} else {
		xil_printf("Disabled.\r\n");
	}
	xil_printf("Auth Requests: %d\r\n", InstancePtr->Info.AuthRequestCnt);
	xil_printf("Reauth Requests: %d\r\n", InstancePtr->Info.ReauthRequestCnt);
	xil_printf("Polling Interval: %d ms\r\n", InstancePtr->Info.PollingValue);
}
void XHdcp22Tx_Info ( XHdcp22_Tx * InstancePtr ) { xil_printf ( " " ) ; if ( XHdcp22Tx_IsEnabled ( InstancePtr ) ) { switch ( InstancePtr -> Info . AuthenticationStatus ) { case XHDCP22_TX_INCOMPATIBLE_RX : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_AUTHENTICATION_BUSY : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_REAUTHENTICATE_REQUESTED : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_UNAUTHENTICATED : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_AUTHENTICATED : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_DEVICE_IS_REVOKED : xil_printf ( " \r \n " ) ; break ; case XHDCP22_TX_NO_SRM_LOADED : xil_printf ( " \r \n " ) ; break ; default : xil_printf ( " \r \n " ) ; break ; } } else { xil_printf ( " \r \n " ) ; } xil_printf ( " " ) ; if ( XHdcp22Tx_IsEncryptionEnabled ( InstancePtr ) ) { xil_printf ( " \r \n " ) ; } else { xil_printf ( " \r \n " ) ; } xil_printf ( " " ) ; if ( XHdcp22Tx_IsRepeater ( InstancePtr ) ) { if ( InstancePtr -> Topology . MaxDevsExceeded ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . MaxCascadeExceeded ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . Hdcp2LegacyDeviceDownstream ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . Hdcp1DeviceDownstream ) xil_printf ( " " ) ; xil_printf ( " " , InstancePtr -> Topology . Depth ) ; xil_printf ( " " , InstancePtr -> Topology . DeviceCnt ) ; xil_printf ( " \r \n " , InstancePtr -> Info . ContentStreamType ) ; } else { xil_printf ( " \r \n " ) ; } xil_printf ( " \r \n " , InstancePtr -> Info . AuthRequestCnt ) ; xil_printf ( " \r \n " , InstancePtr -> Info . ReauthRequestCnt ) ; xil_printf ( " \r \n " , InstancePtr -> Info . PollingValue ) ; }
This function prints the state machine information.
This function prints the state machine information .