XilinxProcessorIPLib/drivers/dp14txss/examples/src/tx_only/xvidframe_crc.c
void XVidFrameCrc_Report(void)
 {
	xil_printf("------------\r\n");
	xil_printf("Video Frame CRC\n\r");
	xil_printf("------------\r\n\r\n");
	xil_printf("CRC PPC     =  %d\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_CONFIG)
		   & VIDEO_FRAME_CRC_PXLMODE_MASK);
	xil_printf("CRC - R/Cr   =  0x%x\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_VALUE_G_R)
		   & VIDEO_FRAME_CRC_R_Y_COMP_MASK);
	xil_printf("CRC - G/Y  =  0x%x\r\n",
		   (XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					 VIDEO_FRAME_CRC_VALUE_G_R)
		    & VIDEO_FRAME_CRC_G_CR_COMP_MASK) >>
		   VIDEO_FRAME_CRC_G_CR_COMP_SHIFT);
	xil_printf("CRC - B/Cb  =  0x%x\r\n\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_VALUE_B)
		   & VIDEO_FRAME_CRC_B_CB_COMP_MASK);
 }
/*****************************************************************************/
/**
*
* This function reports CRC values of Video components
*
* @param	None.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function reports CRC values of Video components
This function reports CRC values of Video components
void XVidFrameCrc_Report(void)
 {
	xil_printf("------------\r\n");
	xil_printf("Video Frame CRC\n\r");
	xil_printf("------------\r\n\r\n");
	xil_printf("CRC PPC     =  %d\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_CONFIG)
		   & VIDEO_FRAME_CRC_PXLMODE_MASK);
	xil_printf("CRC - R/Cr   =  0x%x\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_VALUE_G_R)
		   & VIDEO_FRAME_CRC_R_Y_COMP_MASK);
	xil_printf("CRC - G/Y  =  0x%x\r\n",
		   (XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					 VIDEO_FRAME_CRC_VALUE_G_R)
		    & VIDEO_FRAME_CRC_G_CR_COMP_MASK) >>
		   VIDEO_FRAME_CRC_G_CR_COMP_SHIFT);
	xil_printf("CRC - B/Cb  =  0x%x\r\n\r\n",
		   XVidFrameCrc_ReadReg(XPAR_VIDEO_FRAME_CRC_BASEADDR,
					VIDEO_FRAME_CRC_VALUE_B)
		   & VIDEO_FRAME_CRC_B_CB_COMP_MASK);
 }
void XVidFrameCrc_Report ( void ) { xil_printf ( " \r \n " ) ; xil_printf ( " \n \r " ) ; xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " , XVidFrameCrc_ReadReg ( XPAR_VIDEO_FRAME_CRC_BASEADDR , VIDEO_FRAME_CRC_CONFIG ) & VIDEO_FRAME_CRC_PXLMODE_MASK ) ; xil_printf ( " \r \n " , XVidFrameCrc_ReadReg ( XPAR_VIDEO_FRAME_CRC_BASEADDR , VIDEO_FRAME_CRC_VALUE_G_R ) & VIDEO_FRAME_CRC_R_Y_COMP_MASK ) ; xil_printf ( " \r \n " , ( XVidFrameCrc_ReadReg ( XPAR_VIDEO_FRAME_CRC_BASEADDR , VIDEO_FRAME_CRC_VALUE_G_R ) & VIDEO_FRAME_CRC_G_CR_COMP_MASK ) >> VIDEO_FRAME_CRC_G_CR_COMP_SHIFT ) ; xil_printf ( " \r \n \r \n " , XVidFrameCrc_ReadReg ( XPAR_VIDEO_FRAME_CRC_BASEADDR , VIDEO_FRAME_CRC_VALUE_B ) & VIDEO_FRAME_CRC_B_CB_COMP_MASK ) ; }
This function reports CRC values of Video components
This function reports CRC values of Video components