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

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

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

	return Result;
}
/*****************************************************************************/
/**
*
* This function returns Status value from Status Register (SR). Use the
* XCAN_SR_* 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 Status Register.
*
* @note		None.
*
******************************************************************************/
This function returns Status value from Status Register (SR). Use the
XCAN_SR_* constants defined in xcan_l.h to interpret the returned value.
This function returns Status value from Status Register ( SR ) . Use the XCAN_SR_ * constants defined in xcan_l . h to interpret the returned value .
u32 XCan_GetStatus(XCan *InstancePtr)
{
	u32 Result;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Result = XCan_ReadReg(InstancePtr->BaseAddress, XCAN_SR_OFFSET);
	return Result;
}
u32 XCan_GetStatus ( XCan * InstancePtr ) { u32 Result ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Result = XCan_ReadReg ( InstancePtr -> BaseAddress , XCAN_SR_OFFSET ) ; return Result ; }
This function returns Status value from Status Register (SR).
This function returns Status value from Status Register ( SR ) .