XilinxProcessorIPLib/drivers/can/src/xcan.c
u32 XCan_GetBusErrorStatus(XCan *InstancePtr)
{
	u32 Result;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	Result = XCan_ReadReg(InstancePtr->BaseAddress, XCAN_ESR_OFFSET);

	return Result;
}
/*****************************************************************************/
/**
*
* This function reads Error Status value from Error Status Register (ESR). Use
* the XCAN_ESR_* constants defined in xcan_l.h to interpret the returned value.
*
*
* @param	InstancePtr is a pointer to the XCan instance to be worked on.
*
* @return	The 32-bit value read from Error Status Register.
*
* @note		None.
*
******************************************************************************/
This function reads Error Status value from Error Status Register (ESR). Use
the XCAN_ESR_* constants defined in xcan_l.h to interpret the returned value.
This function reads Error Status value from Error Status Register ( ESR ) . Use the XCAN_ESR_ * constants defined in xcan_l . h to interpret the returned value .
u32 XCan_GetBusErrorStatus(XCan *InstancePtr)
{
	u32 Result;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Result = XCan_ReadReg(InstancePtr->BaseAddress, XCAN_ESR_OFFSET);
	return Result;
}
u32 XCan_GetBusErrorStatus ( XCan * InstancePtr ) { u32 Result ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Result = XCan_ReadReg ( InstancePtr -> BaseAddress , XCAN_ESR_OFFSET ) ; return Result ; }
This function reads Error Status value from Error Status Register (ESR).
This function reads Error Status value from Error Status Register ( ESR ) .