can: xcan.c File Reference

| can Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions | Variables
xcan.c File Reference

## Functions
int | XCan_Initialize (XCan *InstancePtr, u16 DeviceId)
| This routine initializes a specific XCan instance/driver. More...
int | XCan_VmInitialize (XCan *InstancePtr, u16 DeviceId, UINTPTR VirtAddr)
| This routine initializes of a specific XCan instance/driver. More...
void | XCan_Reset (XCan *InstancePtr)
| This function resets the CAN device. More...
u8 | XCan_GetMode (XCan *InstancePtr)
| This routine returns current operation mode the CAN device is in. More...
void | XCan_EnterMode (XCan *InstancePtr, u8 OperationMode)
| This function allows the CAN device to enter one of the following operation modes: More...
u32 | XCan_GetStatus (XCan *InstancePtr)
| This function returns Status value from Status Register (SR). More...
void | XCan_GetBusErrorCounter (XCan *InstancePtr, u8 *RxErrorCount, u8 *TxErrorCount)
| This function reads Receive and Transmit error counters. More...
u32 | XCan_GetBusErrorStatus (XCan *InstancePtr)
| This function reads Error Status value from Error Status Register (ESR). More...
void | XCan_ClearBusErrorStatus (XCan *InstancePtr, u32 Mask)
| This function clears Error Status bit(s) previously set in Error Status Register (ESR). More...
int | XCan_Send (XCan *InstancePtr, u32 *FramePtr)
| This function sends a CAN Frame. More...
int | XCan_Recv (XCan *InstancePtr, u32 *FramePtr)
| This function receives a CAN Frame. More...
int | XCan_SendHighPriority (XCan *InstancePtr, u32 *FramePtr)
| This routine sends a CAN High Priority frame. More...
void | XCan_AcceptFilterEnable (XCan *InstancePtr, u32 FilterIndexes)
| This routine enables individual acceptance filters. More...
void | XCan_AcceptFilterDisable (XCan *InstancePtr, u32 FilterIndexes)
| This routine disables individual acceptance filters. More...
u32 | XCan_AcceptFilterGetEnabled (XCan *InstancePtr)
| This function returns enabled acceptance filters. More...
int | XCan_AcceptFilterSet (XCan *InstancePtr, u32 FilterIndex, u32 MaskValue, u32 IdValue)
| This function sets values to the Acceptance Filter Mask Register (AFMR) and Acceptance Filter ID Register (AFIR) for the specified Acceptance Filter. More...
void | XCan_AcceptFilterGet (XCan *InstancePtr, u32 FilterIndex, u32 *MaskValue, u32 *IdValue)
| This function reads the values of the Acceptance Filter Mask and ID Register for the specified Acceptance Filter. More...
XCan_Config * | XCan_LookupConfig (u16 DeviceId)
| This function looks for the device configuration based on the unique device ID. More...
XCan_Config * | XCan_GetConfig (unsigned int InstanceIndex)
| This function looks for the device configuration based on the device index. More...

## Variables
XCan_Config | XCan_ConfigTable []
| This table contains configuration information for each CAN device in the system. More...