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

	XCan_WriteReg(InstancePtr->BaseAddress, XCAN_SRR_OFFSET,
			XCAN_SRR_SRST_MASK);
}
/*****************************************************************************/
/**
*
* This function resets the CAN device. Calling this function resets the device
* immediately, and any pending transmission or reception is terminated at once.
* Both Object Layer and Transfer Layer are reset. This function does not reset
* the Physical Layer. All registers are reset to the default values, and no
* previous status will be restored. TX FIFO, RX FIFO and TX High Priority
* Buffer are also reset.
*
* When a reset is required due to an internal error, the driver notifies the
* upper layer software of this need through the error status code or interrupts
* The upper layer software is responsible for calling this Reset function and
* then re-configuring the device.
*
* The CAN device will be in Configuration Mode immediately after this function
* returns.
*
* @param	InstancePtr is a pointer to the XCan instance to be worked on.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function resets the CAN device. Calling this function resets the device
immediately, and any pending transmission or reception is terminated at once.
Both Object Layer and Transfer Layer are reset. This function does not reset
the Physical Layer. All registers are reset to the default values, and no
previous status will be restored.

When a reset is required due to an internal error, the driver notifies the
upper layer software of this need through the error status code or interrupts
The upper layer software is responsible for calling this Reset function and
then re-configuring the device.

The CAN device will be in Configuration Mode immediately after this function
returns.
This function resets the CAN device . Calling this function resets the device immediately and any pending transmission or reception is terminated at once . Both Object Layer and Transfer Layer are reset . This function does not reset the Physical Layer . All registers are reset to the default values and no previous status will be restored . When a reset is required due to an internal error the driver notifies the upper layer software of this need through the error status code or interrupts The upper layer software is responsible for calling this Reset function and then re - configuring the device . The CAN device will be in Configuration Mode immediately after this function returns .
void XCan_Reset(XCan *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XCan_WriteReg(InstancePtr->BaseAddress, XCAN_SRR_OFFSET,
			XCAN_SRR_SRST_MASK);
}
void XCan_Reset ( XCan * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; XCan_WriteReg ( InstancePtr -> BaseAddress , XCAN_SRR_OFFSET , XCAN_SRR_SRST_MASK ) ; }
This function resets the CAN device.
This function resets the CAN device .