XilinxProcessorIPLib/drivers/can/src/xcan.c
void XCan_ClearBusErrorStatus(XCan *InstancePtr, u32 Mask)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	XCan_WriteReg(InstancePtr->BaseAddress, XCAN_ESR_OFFSET, Mask);
}
/*****************************************************************************/
/**
*
* This function clears Error Status bit(s) previously set in Error
* Status Register (ESR). Use the XCAN_ESR_* constants defined in xcan_l.h to
* create the value to pass in. If a bit was cleared in Error Status Register
* before this function is called, it will not be touched.
*
*
* @param	InstancePtr is a pointer to the XCan instance to be worked on.
*
* @param	Mask is he 32-bit mask used to clear bits in Error Status
*		Register. Multiple XCAN_ESR_* values could be 'OR'ed to clear
*		multiple bits
*
* @note		None.
*
******************************************************************************/
This function clears Error Status bit(s) previously set in Error
Status Register (ESR). Use the XCAN_ESR_* constants defined in xcan_l.h to
create the value to pass in. If a bit was cleared in Error Status Register
before this function is called, it will not be touched.
This function clears Error Status bit ( s ) previously set in Error Status Register ( ESR ) . Use the XCAN_ESR_ * constants defined in xcan_l . h to create the value to pass in . If a bit was cleared in Error Status Register before this function is called it will not be touched .
void XCan_ClearBusErrorStatus(XCan *InstancePtr, u32 Mask)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XCan_WriteReg(InstancePtr->BaseAddress, XCAN_ESR_OFFSET, Mask);
}
void XCan_ClearBusErrorStatus ( XCan * InstancePtr , u32 Mask ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; XCan_WriteReg ( InstancePtr -> BaseAddress , XCAN_ESR_OFFSET , Mask ) ; }
This function clears Error Status bit(s) previously set in Error
Status Register (ESR).
This function clears Error Status bit ( s ) previously set in Error Status Register ( ESR ) .