XilinxProcessorIPLib/drivers/v_sdirx/src/xv_sdirx.c
void XV_SdiRx_SetEdhErrCntTrigger(XV_SdiRx *InstancePtr, u32 Enable)
{
	u32 Data;

	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Enable <= XV_SDIRX_EDH_ERRCNT_EN_MASK);

	Data = (Enable & XV_SDIRX_EDH_ERRCNT_EN_MASK);

	XV_SdiRx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDIRX_EDH_ERRCNT_EN_OFFSET), (Data));
}
/*****************************************************************************/
/**
*
* This function sets the type of EDH errors which will trigger the error count.
*
* @param	InstancePtr is a pointer to the XV_SdiRx core instance.
* @param	Enable specifies the type of EDH errors to be allowed to increment
*			the error counter.
*		- Bit 0 = ANC EDH error
*		- Bit 1 = ANC EDA error
*		- Bit 2 = ANC IDH error
*		- Bit 3 = ANC IDA error
*		- Bit 4 = ANC UES error
*		- Bit 5 = FF EDH error
*		- Bit 6 = FF EDA error
*		- Bit 7 = FF IDH error
*		- Bit 8 = FF IDA error
*		- Bit 9 = FF UES error
*		- Bit 10 = AP EDH error
*		- Bit 11 = AP EDA error
*		- Bit 12 = AP IDH error
*		- Bit 13 = AP IDA error
*		- Bit 14 = AP UES error
*		- Bit 15 = EDH packet checksum-error
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets the type of EDH errors which will trigger the error count.
This function sets the type of EDH errors which will trigger the error count .
void XV_SdiRx_SetEdhErrCntTrigger(XV_SdiRx *InstancePtr, u32 Enable)
{
	u32 Data;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Enable <= XV_SDIRX_EDH_ERRCNT_EN_MASK);
	Data = (Enable & XV_SDIRX_EDH_ERRCNT_EN_MASK);
	XV_SdiRx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDIRX_EDH_ERRCNT_EN_OFFSET), (Data));
}
void XV_SdiRx_SetEdhErrCntTrigger ( XV_SdiRx * InstancePtr , u32 Enable ) { u32 Data ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( Enable <= XV_SDIRX_EDH_ERRCNT_EN_MASK ) ; Data = ( Enable & XV_SDIRX_EDH_ERRCNT_EN_MASK ) ; XV_SdiRx_WriteReg ( ( InstancePtr ) -> Config . BaseAddress , ( XV_SDIRX_EDH_ERRCNT_EN_OFFSET ) , ( Data ) ) ; }
This function sets the type of EDH errors which will trigger the error count.
This function sets the type of EDH errors which will trigger the error count .
/* Verify arguments. */