XilinxProcessorIPLib/drivers/dp12txss/src/xdptxss_dbg.c
void XDpTxSs_ReportVtcInfo(XDpTxSs *InstancePtr)
{
	XVtc_Timing VideoTiming;
	u32 Index;

	/* Verify argument. */
	Xil_AssertVoid(InstancePtr != NULL);

	for (Index = 0; Index < InstancePtr->UsrOpt.NumOfStreams; Index++) {
		if (InstancePtr->VtcPtr[Index]) {
			XVtc_GetGeneratorTiming(InstancePtr->VtcPtr[Index],
				&VideoTiming);

			xil_printf("VTC%ld timing:\n\r"
				"\tHActiveVideo : %d\n\r"
				"\tHFrontPorch  : %d\n\r"
				"\tHSyncWidth   : %d\n\r"
				"\tHBackPorch   : %d\n\r"
				"\tHSyncPolarity: %d\n\r"
				"\tVActiveVideo : %d\n\r"
				"\tV0FrontPorch : %d\n\r"
				"\tV0SyncWidth  : %d\n\r"
				"\tV0BackPorch  : %d\n\r"
				"\tV1FrontPorch : %d\n\r"
				"\tV1SyncWidth  : %d\n\r"
				"\tV1BackPorch  : %d\n\r"
				"\tVSyncPolarity: %d\n\r"
				"\tInterlaced   : %s\n\n\r\r",Index,
				VideoTiming.HActiveVideo,
				VideoTiming.HFrontPorch,
				VideoTiming.HSyncWidth,
				VideoTiming.HBackPorch,
				VideoTiming.HSyncPolarity,
				VideoTiming.VActiveVideo,
				VideoTiming.V0FrontPorch,
				VideoTiming.V0SyncWidth,
				VideoTiming.V0BackPorch,
				VideoTiming.V1FrontPorch,
				VideoTiming.V1SyncWidth,
				VideoTiming.V1BackPorch,
				VideoTiming.VSyncPolarity,
			VideoTiming.Interlaced ? "Yes" : "No (Progressive)");
		}
	}
	xil_printf("\n\r");
}
/*****************************************************************************/
/**
*
* This function prints the current VTC timing information.
*
* @param	InstancePtr is a pointer to the XDpTxSs core instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function prints the current VTC timing information.
This function prints the current VTC timing information .
void XDpTxSs_ReportVtcInfo(XDpTxSs *InstancePtr)
{
	XVtc_Timing VideoTiming;
	u32 Index;
	Xil_AssertVoid(InstancePtr != NULL);
	for (Index = 0; Index < InstancePtr->UsrOpt.NumOfStreams; Index++) {
		if (InstancePtr->VtcPtr[Index]) {
			XVtc_GetGeneratorTiming(InstancePtr->VtcPtr[Index],
				&VideoTiming);
			xil_printf("VTC%ld timing:\n\r"
				"\tHActiveVideo : %d\n\r"
				"\tHFrontPorch  : %d\n\r"
				"\tHSyncWidth   : %d\n\r"
				"\tHBackPorch   : %d\n\r"
				"\tHSyncPolarity: %d\n\r"
				"\tVActiveVideo : %d\n\r"
				"\tV0FrontPorch : %d\n\r"
				"\tV0SyncWidth  : %d\n\r"
				"\tV0BackPorch  : %d\n\r"
				"\tV1FrontPorch : %d\n\r"
				"\tV1SyncWidth  : %d\n\r"
				"\tV1BackPorch  : %d\n\r"
				"\tVSyncPolarity: %d\n\r"
				"\tInterlaced   : %s\n\n\r\r",Index,
				VideoTiming.HActiveVideo,
				VideoTiming.HFrontPorch,
				VideoTiming.HSyncWidth,
				VideoTiming.HBackPorch,
				VideoTiming.HSyncPolarity,
				VideoTiming.VActiveVideo,
				VideoTiming.V0FrontPorch,
				VideoTiming.V0SyncWidth,
				VideoTiming.V0BackPorch,
				VideoTiming.V1FrontPorch,
				VideoTiming.V1SyncWidth,
				VideoTiming.V1BackPorch,
				VideoTiming.VSyncPolarity,
			VideoTiming.Interlaced ? "Yes" : "No (Progressive)");
		}
	}
	xil_printf("\n\r");
}
void XDpTxSs_ReportVtcInfo ( XDpTxSs * InstancePtr ) { XVtc_Timing VideoTiming ; u32 Index ; Xil_AssertVoid ( InstancePtr != NULL ) ; for ( Index = 0 ; Index < InstancePtr -> UsrOpt . NumOfStreams ; Index ++ ) { if ( InstancePtr -> VtcPtr [ Index ] ) { XVtc_GetGeneratorTiming ( InstancePtr -> VtcPtr [ Index ] , & VideoTiming ) ; xil_printf ( " \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \r " " \t \n \n \r \r " , Index , VideoTiming . HActiveVideo , VideoTiming . HFrontPorch , VideoTiming . HSyncWidth , VideoTiming . HBackPorch , VideoTiming . HSyncPolarity , VideoTiming . VActiveVideo , VideoTiming . V0FrontPorch , VideoTiming . V0SyncWidth , VideoTiming . V0BackPorch , VideoTiming . V1FrontPorch , VideoTiming . V1SyncWidth , VideoTiming . V1BackPorch , VideoTiming . VSyncPolarity , VideoTiming . Interlaced ? " " : " " ) ; } } xil_printf ( " \n \r " ) ; }
This function prints the current VTC timing information.
This function prints the current VTC timing information .
/* Verify argument. */