|
int | fdcan_cccr_init_cfg (uint32_t canport, bool set, uint32_t timeout) |
| Routine implementing FDCAN_CCCR's INIT bit manipulation. More...
|
|
static int | fdcan_get_free_txbuf (uint32_t canport) |
| Return ID of next free Tx buffer. More...
|
|
static void | fdcan_get_fill_rxfifo (uint32_t canport, uint8_t fifo_id, unsigned *get_index, unsigned *pending_frames) |
| Returns fill state and next available get index from receive FIFO. More...
|
|
struct fdcan_standard_filter * | fdcan_get_flssa_addr (uint32_t canport) |
| Returns standard filter start address in message RAM. More...
|
|
struct fdcan_extended_filter * | fdcan_get_flesa_addr (uint32_t canport) |
| Returns extended filter start address in message RAM. More...
|
|
struct fdcan_rx_fifo_element * | fdcan_get_rxfifo_addr (uint32_t canport, unsigned fifo_id, unsigned element_id) |
| Returns a pointer to an RX FIFO element in message RAM. More...
|
|
struct fdcan_tx_event_element * | fdcan_get_txevt_addr (uint32_t canport) |
| Returns transmit event start address in message RAM. More...
|
|
struct fdcan_tx_buffer_element * | fdcan_get_txbuf_addr (uint32_t canport, unsigned element_id) |
| Returns a pointer to an TX FIFO element in message RAM. More...
|
|
uint32_t | fdcan_length_to_dlc (uint8_t length) |
| Converts frame length to DLC value. More...
|
|
uint8_t | fdcan_dlc_to_length (uint32_t dlc) |
| Converts DLC value into frame payload length. 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...
|
|