RTEMS 6.1-rc5
|
CAN routines shared between OCCAN, GRCAN and GRCANFD controllers. More...
Files | |
file | canbtrs.h |
Common CAN baud-rate routines for OCCAN/GRCAN/GRCANFD controllers. | |
file | grcan.h |
Driver API for the GRLIB GRCAN and GRCANFD controllers. | |
file | occan.h |
Driver API for GRLIB wrapper to OpenCores CAN. | |
file | canbtrs.c |
Common CAN baud-rate routines for OCCAN/GRCAN/GRCANFD controllers. | |
Data Structures | |
struct | grlib_canbtrs_ranges |
struct | grlib_canbtrs_timing |
struct | grcan_regs |
struct | grcan_stats |
struct | grcan_timing |
struct | grcanfd_timing |
struct | grcan_selection |
struct | grcan_filter |
struct | CANMsg |
struct | CANFDMsg |
Functions | |
int | grlib_canbtrs_calc_timing (unsigned int baud, unsigned int core_hz, unsigned int sampl_pt, struct grlib_canbtrs_ranges *br, struct grlib_canbtrs_timing *timing) |
int | grcan_dev_count (void) |
void * | grcan_open (int dev_no) |
void * | grcan_open_by_name (char *name, int *dev_no) |
int | grcan_close (void *d) |
int | grcan_canfd_capable (void *d) |
int | grcan_read (void *d, CANMsg *msg, size_t count) |
int | grcanfd_read (void *d, CANFDMsg *msg, size_t count) |
int | grcan_write (void *d, CANMsg *msg, size_t count) |
int | grcanfd_write (void *d, CANFDMsg *msg, size_t ucount) |
int | grcan_get_state (void *d) |
int | grcan_start (void *d) |
int | grcan_stop (void *d) |
int | grcan_flush (void *d) |
int | grcan_set_silent (void *d, int silent) |
int | grcan_set_abort (void *d, int abort) |
int | grcan_set_selection (void *d, const struct grcan_selection *selection) |
int | grcan_set_speed (void *d, unsigned int hz) |
int | grcan_set_btrs (void *d, const struct grcan_timing *timing) |
int | grcanfd_set_speed (void *d, unsigned int nomhz, unsigned int fdhz) |
int | grcanfd_set_btrs (void *d, const struct grcanfd_timing *nominal, const struct grcanfd_timing *fd) |
int | grcan_set_rxblock (void *d, int block) |
int | grcan_set_txblock (void *d, int block) |
int | grcan_set_txcomplete (void *d, int complete) |
int | grcan_set_rxcomplete (void *d, int complete) |
int | grcan_get_stats (void *d, struct grcan_stats *stats) |
int | grcan_clr_stats (void *d) |
int | grcan_set_afilter (void *d, const struct grcan_filter *filter) |
int | grcan_set_sfilter (void *d, const struct grcan_filter *filter) |
int | grcan_get_status (void *d, unsigned int *status) |
void | grcan_register_drv (void) |
CAN routines shared between OCCAN, GRCAN and GRCANFD controllers.
Macros used for grcan controller.