XilinxProcessorIPLib/drivers/dp14txss/examples/xdptxss_debug_example.c
void DpTxSs_EdidColorChar(u8 *EdidRaw)
{
	xil_printf("Color characteristics:\n\r");
	xil_printf("Red_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcRedX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcRedX(EdidRaw), 1000000000));
	xil_printf("Red_y:%ld.%09lu+- 0.0005\n\r",
		(u32)XVidC_EdidGetCcRedY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcRedY(EdidRaw), 1000000000));
	xil_printf("Green_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcGreenX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcGreenX(EdidRaw), 1000000000));
	xil_printf("Green_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcGreenY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcGreenY(EdidRaw), 1000000000));
	xil_printf("Blue_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcBlueX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcBlueX(EdidRaw), 1000000000));
	xil_printf("Blue_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcBlueY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcBlueY(EdidRaw), 1000000000));
	xil_printf("White_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcWhiteX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcWhiteX(EdidRaw), 1000000000));
	xil_printf("White_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcWhiteY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcWhiteY(EdidRaw), 1000000000));

	xil_printf("\n\r");
}
/*****************************************************************************/
/**
*
* This function prints color characteristics of RX device.
*
* @param	EdidRaw is a pointer to u8 variable that will be used for
*		parsing EDID blocks.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function prints color characteristics of RX device.
This function prints color characteristics of RX device .
void DpTxSs_EdidColorChar(u8 *EdidRaw)
{
	xil_printf("Color characteristics:\n\r");
	xil_printf("Red_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcRedX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcRedX(EdidRaw), 1000000000));
	xil_printf("Red_y:%ld.%09lu+- 0.0005\n\r",
		(u32)XVidC_EdidGetCcRedY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcRedY(EdidRaw), 1000000000));
	xil_printf("Green_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcGreenX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcGreenX(EdidRaw), 1000000000));
	xil_printf("Green_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcGreenY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcGreenY(EdidRaw), 1000000000));
	xil_printf("Blue_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcBlueX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcBlueX(EdidRaw), 1000000000));
	xil_printf("Blue_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcBlueY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcBlueY(EdidRaw), 1000000000));
	xil_printf("White_x:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcWhiteX(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcWhiteX(EdidRaw), 1000000000));
	xil_printf("White_y:%ld.%09lu +- 0.0005\n\r",
		(u32)XVidC_EdidGetCcWhiteY(EdidRaw),
		FLOAT_FRAC_TO_U32(XVidC_EdidGetCcWhiteY(EdidRaw), 1000000000));
	xil_printf("\n\r");
}
void DpTxSs_EdidColorChar ( u8 * EdidRaw ) { xil_printf ( " \n \r " ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcRedX ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcRedX ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcRedY ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcRedY ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcGreenX ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcGreenX ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcGreenY ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcGreenY ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcBlueX ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcBlueX ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcBlueY ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcBlueY ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcWhiteX ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcWhiteX ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " , ( u32 ) XVidC_EdidGetCcWhiteY ( EdidRaw ) , FLOAT_FRAC_TO_U32 ( XVidC_EdidGetCcWhiteY ( EdidRaw ) , 1000000000 ) ) ; xil_printf ( " \n \r " ) ; }
This function prints color characteristics of RX device.
This function prints color characteristics of RX device .