XilinxProcessorIPLib/drivers/dp14txss/examples/xdptxss_debug_example.c
u32 DpTxSs_EdidDecodeBase(u8 *EdidRaw)
{
	/* Check valid header. */
	if (XVidC_EdidIsHeaderValid(EdidRaw)) {
		xil_printf("\n\rEDID header is: 00 FF FF FF FF FF FF 00\n\r");
	}
	else {
		xil_printf("\n\rNot an EDID base block...\n\r");
		return XST_FAILURE;
	}

	/* Obtain vendor and product identification information. */
	DpTxSs_EdidBaseVPId(EdidRaw);
	DpTxSs_EdidBaseVerRev(EdidRaw);
	DpTxSs_EdidBaseBasicDisp(EdidRaw);
	DpTxSs_EdidColorChar(EdidRaw);
	DpTxSs_EdidEstTimings(EdidRaw);
	DpTxSs_EdidStdTimings(EdidRaw);

	xil_printf("Descriptors:\n\r");
	xil_printf("First tag: 0x%02x 0x%02x\n\r", EdidRaw[0x36],
						EdidRaw[0x38]);
	xil_printf("Second tag: 0x%02x 0x%02x\n\r", EdidRaw[0x48],
						EdidRaw[0x4A]);
	xil_printf("Third tag: 0x%02x 0x%02x\n\r", EdidRaw[0x5A],
						EdidRaw[0x5C]);
	xil_printf("Fourth tag: 0x%02x 0x%02x\n\r", EdidRaw[0x6C],
						EdidRaw[0x6E]);

	DpTxSs_EdidPtm(EdidRaw);

	xil_printf("Number of extensions:%d\n\r",
			XVidC_EdidGetExtBlkCount(EdidRaw));
	xil_printf("Checksum:0x%02x -> Calculated sum = 0x%02x\n\r",
			XVidC_EdidGetChecksum(EdidRaw),
			DpTxSs_EdidCalculateChecksum(EdidRaw, 128));

	xil_printf("\n\r");

	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
*
* This function decodes and prints EDID header and tag information.
*
* @param	EdidRaw is a pointer to u8 variable that will be used for
*		parsing EDID blocks.
*
* @return
*		- XST_SUCCESS, if EDID blocks parsed successfully.
*
* @note		None.
*
******************************************************************************/
This function decodes and prints EDID header and tag information.
This function decodes and prints EDID header and tag information .
u32 DpTxSs_EdidDecodeBase(u8 *EdidRaw)
{
	if (XVidC_EdidIsHeaderValid(EdidRaw)) {
		xil_printf("\n\rEDID header is: 00 FF FF FF FF FF FF 00\n\r");
	}
	else {
		xil_printf("\n\rNot an EDID base block...\n\r");
		return XST_FAILURE;
	}
	DpTxSs_EdidBaseVPId(EdidRaw);
	DpTxSs_EdidBaseVerRev(EdidRaw);
	DpTxSs_EdidBaseBasicDisp(EdidRaw);
	DpTxSs_EdidColorChar(EdidRaw);
	DpTxSs_EdidEstTimings(EdidRaw);
	DpTxSs_EdidStdTimings(EdidRaw);
	xil_printf("Descriptors:\n\r");
	xil_printf("First tag: 0x%02x 0x%02x\n\r", EdidRaw[0x36],
						EdidRaw[0x38]);
	xil_printf("Second tag: 0x%02x 0x%02x\n\r", EdidRaw[0x48],
						EdidRaw[0x4A]);
	xil_printf("Third tag: 0x%02x 0x%02x\n\r", EdidRaw[0x5A],
						EdidRaw[0x5C]);
	xil_printf("Fourth tag: 0x%02x 0x%02x\n\r", EdidRaw[0x6C],
						EdidRaw[0x6E]);
	DpTxSs_EdidPtm(EdidRaw);
	xil_printf("Number of extensions:%d\n\r",
			XVidC_EdidGetExtBlkCount(EdidRaw));
	xil_printf("Checksum:0x%02x -> Calculated sum = 0x%02x\n\r",
			XVidC_EdidGetChecksum(EdidRaw),
			DpTxSs_EdidCalculateChecksum(EdidRaw, 128));
	xil_printf("\n\r");
	return (XST_SUCCESS);
}
u32 DpTxSs_EdidDecodeBase ( u8 * EdidRaw ) { if ( XVidC_EdidIsHeaderValid ( EdidRaw ) ) { xil_printf ( " \n \r \n \r " ) ; } else { xil_printf ( " \n \r \n \r " ) ; return XST_FAILURE ; } DpTxSs_EdidBaseVPId ( EdidRaw ) ; DpTxSs_EdidBaseVerRev ( EdidRaw ) ; DpTxSs_EdidBaseBasicDisp ( EdidRaw ) ; DpTxSs_EdidColorChar ( EdidRaw ) ; DpTxSs_EdidEstTimings ( EdidRaw ) ; DpTxSs_EdidStdTimings ( EdidRaw ) ; xil_printf ( " \n \r " ) ; xil_printf ( " \n \r " , EdidRaw [ 0x36 ] , EdidRaw [ 0x38 ] ) ; xil_printf ( " \n \r " , EdidRaw [ 0x48 ] , EdidRaw [ 0x4A ] ) ; xil_printf ( " \n \r " , EdidRaw [ 0x5A ] , EdidRaw [ 0x5C ] ) ; xil_printf ( " \n \r " , EdidRaw [ 0x6C ] , EdidRaw [ 0x6E ] ) ; DpTxSs_EdidPtm ( EdidRaw ) ; xil_printf ( " \n \r " , XVidC_EdidGetExtBlkCount ( EdidRaw ) ) ; xil_printf ( " \n \r " , XVidC_EdidGetChecksum ( EdidRaw ) , DpTxSs_EdidCalculateChecksum ( EdidRaw , 128 ) ) ; xil_printf ( " \n \r " ) ; return ( XST_SUCCESS ) ; }
This function decodes and prints EDID header and tag information.
This function decodes and prints EDID header and tag information .
/* Check valid header. */ /* Obtain vendor and product identification information. */