XilinxProcessorIPLib/drivers/v_sdirx/src/xv_sdirx.c
u32 XV_SdiRx_ReportDetectedError(XV_SdiRx *InstancePtr)
{
	u32 RegValue;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	RegValue = XV_SdiRx_GetSdiMode(InstancePtr);

	if (RegValue == XSDIVID_MODE_SD) {
		RegValue = XV_SdiRx_ReadReg(InstancePtr->Config.BaseAddress,
						(XV_SDIRX_RX_EDH_ERRCNT_OFFSET));
		RegValue &= XV_SDIRX_RX_EDH_ERRCNT_EDH_ERRCNT_MASK;
		xil_printf("\tEDH: %d\r\n", RegValue);
	} else {
		RegValue = XV_SdiRx_ReadReg(InstancePtr->Config.BaseAddress,
						(XV_SDIRX_RX_ERR_OFFSET));
		RegValue &= XV_SDIRX_RX_ERR_MASK;
		xil_printf("\tCRC: %d\r\n", RegValue);
	}

	return RegValue;
}
/*****************************************************************************/
/**
*
* This function reports detected CRC or EDH errors count.
*
* @param	InstancePtr is a pointer to the XV_SdiRx core instance.
*
* @return	CRC/EDH Error count
*
* @note		None.
*
******************************************************************************/
This function reports detected CRC or EDH errors count.
This function reports detected CRC or EDH errors count .
u32 XV_SdiRx_ReportDetectedError(XV_SdiRx *InstancePtr)
{
	u32 RegValue;
	Xil_AssertNonvoid(InstancePtr != NULL);
	RegValue = XV_SdiRx_GetSdiMode(InstancePtr);
	if (RegValue == XSDIVID_MODE_SD) {
		RegValue = XV_SdiRx_ReadReg(InstancePtr->Config.BaseAddress,
						(XV_SDIRX_RX_EDH_ERRCNT_OFFSET));
		RegValue &= XV_SDIRX_RX_EDH_ERRCNT_EDH_ERRCNT_MASK;
		xil_printf("\tEDH: %d\r\n", RegValue);
	} else {
		RegValue = XV_SdiRx_ReadReg(InstancePtr->Config.BaseAddress,
						(XV_SDIRX_RX_ERR_OFFSET));
		RegValue &= XV_SDIRX_RX_ERR_MASK;
		xil_printf("\tCRC: %d\r\n", RegValue);
	}
	return RegValue;
}
u32 XV_SdiRx_ReportDetectedError ( XV_SdiRx * InstancePtr ) { u32 RegValue ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; RegValue = XV_SdiRx_GetSdiMode ( InstancePtr ) ; if ( RegValue == XSDIVID_MODE_SD ) { RegValue = XV_SdiRx_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_SDIRX_RX_EDH_ERRCNT_OFFSET ) ) ; RegValue &= XV_SDIRX_RX_EDH_ERRCNT_EDH_ERRCNT_MASK ; xil_printf ( " \t \r \n " , RegValue ) ; } else { RegValue = XV_SdiRx_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_SDIRX_RX_ERR_OFFSET ) ) ; RegValue &= XV_SDIRX_RX_ERR_MASK ; xil_printf ( " \t \r \n " , RegValue ) ; } return RegValue ; }
This function reports detected CRC or EDH errors count.
This function reports detected CRC or EDH errors count .
/* Verify arguments. */