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

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

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

	return Result;
}
/*****************************************************************************/
/**
*
* This function returns enabled acceptance filters. Use XCAN_AFR_UAF*_MASK
* defined in xcan_l.h to interpret the returned value. If no acceptance filters
* are enabled then all received frames are stored in the RX FIFO.
*
* @param	InstancePtr is a pointer to the XCan instance to be worked on.
*
* @return	The value stored in Acceptance Filter Register.
*
* @note
*
* Acceptance Filter Register is an optional register in Xilinx CAN device.
* If it is NOT existing in the device, this function should NOT be used.
* Calling this function in this case will cause an assertion failure.
*
******************************************************************************/
This function returns enabled acceptance filters. Use XCAN_AFR_UAF*_MASK
defined in xcan_l.h to interpret the returned value. If no acceptance filters
are enabled then all received frames are stored in the RX FIFO.
This function returns enabled acceptance filters . Use XCAN_AFR_UAF * _MASK defined in xcan_l . h to interpret the returned value . If no acceptance filters are enabled then all received frames are stored in the RX FIFO .
u32 XCan_AcceptFilterGetEnabled(XCan *InstancePtr)
{
	u32 Result;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(InstancePtr->NumOfAcceptFilters > 0);
	Result = XCan_ReadReg(InstancePtr->BaseAddress, XCAN_AFR_OFFSET);
	return Result;
}
u32 XCan_AcceptFilterGetEnabled ( XCan * InstancePtr ) { u32 Result ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( InstancePtr -> NumOfAcceptFilters > 0 ) ; Result = XCan_ReadReg ( InstancePtr -> BaseAddress , XCAN_AFR_OFFSET ) ; return Result ; }
This function returns enabled acceptance filters.
This function returns enabled acceptance filters .