canfd
Vitis Drivers API Documentation
xcanfd_selftest.c File Reference

Macros

#define XCANFD_MAX_FRAME_SIZE_IN_BYTES   72
 Maximum Frame size. More...
 
#define TEST_MESSAGE_ID   1024
 Message id. More...
 
#define TEST_CANFD_DLC   8
 DLC Value. More...
 
#define TEST_MAIL_BOX_MASK   0xFFFFFFFFU
 Mailbox Fileter Index Value. More...
 
#define TEST_BRPR_BAUD_PRESCALAR   29
 Baud Rate Prescalar. More...
 
#define TEST_BTR_SYNCJUMPWIDTH   3
 Synchronization Jump Width. More...
 
#define TEST_BTR_SECOND_TIMESEGMENT   2
 Time Segment 2. More...
 
#define TEST_BTR_FIRST_TIMESEGMENT   15
 Time Segment 1. More...
 
#define TEST_FBRPR_BAUD_PRESCALAR   29
 Baud Rate Prescalar for canfd. More...
 
#define TEST_FBTR_SYNCJUMPWIDTH   3
 Synchronization Jump Width for Canfd. More...
 
#define TEST_FBTR_SECOND_TIMESEGMENT   2
 Time Segment 2 for Canfd. More...
 
#define TEST_FBTR_FIRST_TIMESEGMENT   15
 Time Segment 1 for Canfd. More...
 

Functions

int XCanFd_SelfTest (XCanFd *InstancePtr)
 This function runs a self-test on the CAN driver/device. More...