canps: xcanps.c File Reference

| canps Xilinx SDK Drivers API Documentation

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

Functions
xcanps.c File Reference

## Functions
void | XCanPs_Reset (XCanPs *InstancePtr)
| This function resets the CAN device. More...
u8 | XCanPs_GetMode (XCanPs *InstancePtr)
| This routine returns the current operation mode of the CAN device. More...
void | XCanPs_EnterMode (XCanPs *InstancePtr, u8 OperationMode)
| This function allows the CAN device to enter one of the following operation modes: More...
u32 | XCanPs_GetStatus (XCanPs *InstancePtr)
| This function returns Status value from Status Register (SR). More...
void | XCanPs_GetBusErrorCounter (XCanPs *InstancePtr, u8 *RxErrorCount, u8 *TxErrorCount)
| This function reads Receive and Transmit error counters. More...
u32 | XCanPs_GetBusErrorStatus (XCanPs *InstancePtr)
| This function reads Error Status value from Error Status Register (ESR). More...
void | XCanPs_ClearBusErrorStatus (XCanPs *InstancePtr, u32 Mask)
| This function clears Error Status bit(s) previously set in Error Status Register (ESR). More...
s32 | XCanPs_Send (XCanPs *InstancePtr, u32 *FramePtr)
| This function sends a CAN Frame. More...
s32 | XCanPs_Recv (XCanPs *InstancePtr, u32 *FramePtr)
| This function receives a CAN Frame. More...
s32 | XCanPs_SendHighPriority (XCanPs *InstancePtr, u32 *FramePtr)
| This routine sends a CAN High Priority frame. More...
void | XCanPs_AcceptFilterEnable (XCanPs *InstancePtr, u32 FilterIndexes)
| This routine enables individual acceptance filters. More...
void | XCanPs_AcceptFilterDisable (XCanPs *InstancePtr, u32 FilterIndexes)
| This routine disables individual acceptance filters. More...
u32 | XCanPs_AcceptFilterGetEnabled (XCanPs *InstancePtr)
| This function returns enabled acceptance filters. More...
s32 | XCanPs_AcceptFilterSet (XCanPs *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 | XCanPs_AcceptFilterGet (XCanPs *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...
s32 | XCanPs_SetBaudRatePrescaler (XCanPs *InstancePtr, u8 Prescaler)
| This routine sets Baud Rate Prescaler value. More...
u8 | XCanPs_GetBaudRatePrescaler (XCanPs *InstancePtr)
| This routine gets Baud Rate Prescaler value. More...
s32 | XCanPs_SetBitTiming (XCanPs *InstancePtr, u8 SyncJumpWidth, u8 TimeSegment2, u8 TimeSegment1)
| This routine sets Bit time. More...
void | XCanPs_GetBitTiming (XCanPs *InstancePtr, u8 *SyncJumpWidth, u8 *TimeSegment2, u8 *TimeSegment1)
| This routine gets Bit time. More...
s32 | XCanPs_SetRxIntrWatermark (XCanPs *InstancePtr, u8 Threshold)
| This routine sets the Rx Full threshold in the Watermark Interrupt Register. More...
u8 | XCanPs_GetRxIntrWatermark (XCanPs *InstancePtr)
| This routine gets the Rx Full threshold from the Watermark Interrupt Register. More...
s32 | XCanPs_SetTxIntrWatermark (XCanPs *InstancePtr, u8 Threshold)
| This routine sets the Tx Empty Threshold in the Watermark Interrupt Register. More...
u8 | XCanPs_GetTxIntrWatermark (XCanPs *InstancePtr)
| This routine gets the Tx Empty threshold from Watermark Interrupt Register. More...