|
unsigned | fdcan_get_fifo_element_size (uint32_t canport, unsigned fifo_id) |
| Returns actual size of FIFO entry in FIFO for given CAN port and FIFO. More...
|
|
unsigned | fdcan_get_txbuf_element_size (uint32_t canport) |
| Returns actual size of transmit entry in transmit queue/FIFO for given CAN port. More...
|
|
void | fdcan_init_filter (uint32_t canport, uint8_t std_filt, uint8_t ext_filt) |
| Configure amount of filters and initialize filtering block. More...
|
|
int | fdcan_start (uint32_t canport, uint32_t timeout) |
| Enable FDCAN operation after FDCAN block has been set up. More...
|
|
void | fdcan_set_fifo_locked_mode (uint32_t canport, bool locked) |
| Configure FDCAN FIFO lock mode. More...
|
|
int | fdcan_init (uint32_t canport, uint32_t timeout) |
| Put FDCAN block into INIT mode for setup. More...
|
|
void | fdcan_set_can (uint32_t canport, bool auto_retry_disable, bool rx_fifo_locked, bool tx_queue_mode, bool silent, uint32_t n_sjw, uint32_t n_ts1, uint32_t n_ts2, uint32_t n_br_presc) |
| Set essential FDCAN block parameters for plain CAN operation. More...
|
|
void | fdcan_set_fdcan (uint32_t canport, bool brs_enable, bool fd_op_enable, uint32_t f_sjw, uint32_t f_ts1, uint32_t f_ts2, uint32_t f_br_presc) |
| Set FDCAN block parameters for FDCAN transmission. More...
|
|
void | fdcan_set_test (uint32_t canport, bool testing, bool loopback) |
| Set FDCAN block testing features. More...
|
|
int | fdcan_get_init_state (uint32_t canport) |
| Return current FDCAN block operation state. More...
|
|
void | fdcan_set_std_filter (uint32_t canport, uint32_t nr, uint8_t id_list_mode, uint32_t id1, uint32_t id2, uint8_t action) |
| Configure filter rule for standard ID frames. More...
|
|
void | fdcan_set_ext_filter (uint32_t canport, uint32_t nr, uint8_t id_list_mode, uint32_t id1, uint32_t id2, uint8_t action) |
| Configure filter rule for extended ID frames. More...
|
|
int | fdcan_transmit (uint32_t canport, uint32_t id, bool ext, bool rtr, bool fdcan_fmt, bool btr_switch, uint8_t length, const uint8_t *data) |
| Transmit Message using FDCAN. More...
|
|
int | fdcan_receive (uint32_t canport, uint8_t fifo_id, bool release, uint32_t *id, bool *ext, bool *rtr, uint8_t *fmi, uint8_t *length, uint8_t *data, uint16_t *timestamp) |
| Receive Message from FDCAN FIFO. More...
|
|
void | fdcan_release_fifo (uint32_t canport, uint8_t fifo_id) |
| Release receive oldest FIFO entry. More...
|
|
void | fdcan_enable_irq (uint32_t canport, uint32_t irq) |
| Enable IRQ from FDCAN block. More...
|
|
void | fdcan_disable_irq (uint32_t canport, uint32_t irq) |
| Disable IRQ from FDCAN block. More...
|
|
bool | fdcan_available_tx (uint32_t canport) |
| Check if there is free transmit buffer. More...
|
|
bool | fdcan_available_rx (uint32_t canport, uint8_t fifo) |
| Tell if there is message waiting in receive FIFO. More...
|
|