|
| static void | mcan_set_can_nominal_bit_timing (MCAN_Type *ptr, const mcan_bit_timing_param_t *bit_timing) |
| | Set Nominal Bit timing. More...
|
| |
| static void | mcan_set_can_data_bit_timing (MCAN_Type *ptr, const mcan_bit_timing_param_t *bit_timing) |
| | Set CANFD Data Bit timing. More...
|
| |
| static uint32_t | mcan_find_optimal_prescaler (uint32_t num_tq_mul_prescaler, uint32_t start_prescaler, uint32_t max_tq, uint32_t min_tq) |
| | Calculate the closest prescaler. More...
|
| |
| static hpm_stat_t | mcan_calc_bit_timing_from_baudrate (uint32_t src_clk_freq, mcan_bit_timing_option_t option, uint32_t baudrate, uint16_t samplepoint_min, uint16_t samplepoint_max, mcan_bit_timing_param_t *timing_param) |
| | Calculate Bit timing from baudrate. More...
|
| |
| static hpm_stat_t | mcan_set_bit_timing_from_baudrate (MCAN_Type *ptr, mcan_bit_timing_option_t option, uint32_t src_clk_freq, uint32_t baudrate, uint16_t samplepoint_min, uint16_t samplepoint_max) |
| | Set MCAN bit timing from Baudrate. More...
|
| |
| static hpm_stat_t | mcan_set_tsu (MCAN_Type *ptr, mcan_tsu_config_t *config) |
| | Configure MCAN TSU. More...
|
| |
| static hpm_stat_t | mcan_set_internal_timestamp (MCAN_Type *ptr, mcan_internal_timestamp_config_t *config) |
| | Configure MCAN internal timestamp. More...
|
| |
| static bool | is_mcan_bit_timing_param_valid (mcan_bit_timing_option_t option, const mcan_bit_timing_param_t *param) |
| | Check whether the MCAN bit timing parameter is valid. More...
|
| |
| void | mcan_get_default_ram_config (MCAN_Type *ptr, mcan_ram_config_t *simple_config, bool enable_canfd) |
| | Get Default MCAN RAM configuration If the device is configured as classic CAN node, the default CAN RAM settings are as below: More...
|
| |
| void | mcan_get_default_ram_flexible_config (MCAN_Type *ptr, mcan_ram_flexible_config_t *ram_config, bool enable_canfd) |
| | Get Default Full MCAN RAM configuration If the device is configured as classic CAN node, the default CAN RAM settings are as below: More...
|
| |
| void | mcan_get_default_config (MCAN_Type *ptr, mcan_config_t *config) |
| | Get Default CAN configuration. More...
|
| |
| static void | mcan_config_rxfifo (MCAN_Type *ptr, uint32_t index, uint32_t reg_val) |
| |
| hpm_stat_t | mcan_config_ram (MCAN_Type *ptr, mcan_ram_config_t *config) |
| | Configure MCAN RAM will Simplified RAM configuration. More...
|
| |
| hpm_stat_t | mcan_config_ram_with_flexible_config (MCAN_Type *ptr, mcan_ram_flexible_config_t *config) |
| | Configure MCAN RAM will Full RAM configuration. More...
|
| |
| hpm_stat_t | mcan_config_all_filters (MCAN_Type *ptr, mcan_all_filters_config_t *config) |
| | Configure All CAN filters. More...
|
| |
| hpm_stat_t | mcan_init (MCAN_Type *ptr, mcan_config_t *config, uint32_t src_clk_freq) |
| | Initialize CAN controller. More...
|
| |
| void | mcan_deinit (MCAN_Type *ptr) |
| | De-Initialize CAN controller. More...
|
| |
| hpm_stat_t | mcan_set_filter_element (MCAN_Type *ptr, const mcan_filter_elem_t *filter_elem, uint32_t index) |
| | Set CAN filter element. More...
|
| |
| static uint32_t | mcan_get_rxfifo0_base (MCAN_Type *ptr) |
| |
| static uint32_t | mcan_get_rxfifo1_base (MCAN_Type *ptr) |
| |
| static uint32_t | mcan_get_rxbuf_elem_addr (MCAN_Type *ptr, uint32_t index) |
| |
| static uint32_t | mcan_get_txbuf_elem_addr (MCAN_Type *ptr, uint32_t index) |
| |
| uint8_t | mcan_get_message_size_from_dlc (uint8_t dlc) |
| | Get message Size from Data Length Code. More...
|
| |
| uint8_t | mcan_get_data_field_size (uint8_t data_field_size_option) |
| | Get the Data field size from data field size option. More...
|
| |
| hpm_stat_t | mcan_write_txbuf (MCAN_Type *ptr, uint32_t index, mcan_tx_frame_t *tx_frame) |
| | Write Frame to CAN TX Buffer. More...
|
| |
| hpm_stat_t | mcan_write_txfifo (MCAN_Type *ptr, mcan_tx_frame_t *tx_frame) |
| | Write Frame CAN to TXFIFO. More...
|
| |
| hpm_stat_t | mcan_read_rxbuf (MCAN_Type *ptr, uint32_t index, mcan_rx_message_t *rx_frame) |
| | Read message from CAN RXBUF. More...
|
| |
| hpm_stat_t | mcan_read_rxfifo (MCAN_Type *ptr, uint32_t fifo_index, mcan_rx_message_t *rx_frame) |
| | Read message from CAN RXBUF. More...
|
| |
| hpm_stat_t | mcan_read_tx_evt_fifo (MCAN_Type *ptr, mcan_tx_event_fifo_elem_t *tx_evt) |
| | Read TX Event from CAN TX EVENT FIFO. More...
|
| |
| hpm_stat_t | mcan_transmit_via_txbuf_nonblocking (MCAN_Type *ptr, uint32_t index, mcan_tx_frame_t *tx_frame) |
| | Transmit CAN message via TX in non-blocking way. More...
|
| |
| hpm_stat_t | mcan_transmit_blocking (MCAN_Type *ptr, mcan_tx_frame_t *tx_frame) |
| | Transmit CAN message in blocking way. More...
|
| |
| hpm_stat_t | mcan_request_and_fill_txfifo (MCAN_Type *ptr, mcan_tx_frame_t *tx_frame, uint32_t *fifo_index) |
| | Request TXFIFO and fill data into TXFIFO. More...
|
| |
| hpm_stat_t | mcan_transmit_via_txfifo_nonblocking (MCAN_Type *ptr, mcan_tx_frame_t *tx_frame, uint32_t *fifo_index) |
| | Transmit CAN message via TX FIFO in non-blocking way. More...
|
| |
| hpm_stat_t | mcan_receive_from_buf_blocking (MCAN_Type *ptr, uint32_t index, mcan_rx_message_t *rx_frame) |
| | Receive CAN Frame from RXBUF in blocking way. More...
|
| |
| hpm_stat_t | mcan_receive_from_fifo_blocking (MCAN_Type *ptr, uint32_t fifo_index, mcan_rx_message_t *rx_frame) |
| | Receive CAN Frame from RXFIFO in blocking way. More...
|
| |
| void | mcan_get_high_priority_message_status (MCAN_Type *ptr, mcan_high_priority_message_status_t *status) |
| | Get High Priority Message Status. More...
|
| |
| hpm_stat_t | mcan_set_global_filter_config (MCAN_Type *ptr, mcan_global_filter_config_t *filter_config) |
| | Configure Global Filter. More...
|
| |
| hpm_stat_t | mcan_config_transmitter_delay_compensation (MCAN_Type *ptr, mcan_tdc_config_t *config) |
| | Configure Transmitter Delay Compensation. More...
|
| |
| uint32_t | mcan_read_32bit_tsu_timestamp (MCAN_Type *ptr, uint32_t index) |
| | Read 32bit Timestamp value from TSU. More...
|
| |
| uint64_t | mcan_read_64bit_tsu_timestamp (MCAN_Type *ptr, uint32_t index) |
| | Read 64bit Timestamp value from TSU. More...
|
| |
| hpm_stat_t | mcan_get_timestamp_from_tx_event (MCAN_Type *ptr, const mcan_tx_event_fifo_elem_t *tx_evt, mcan_timestamp_value_t *timestamp) |
| | Get Timestamp from MCAN TX Event. More...
|
| |
| hpm_stat_t | mcan_get_timestamp_from_received_message (MCAN_Type *ptr, const mcan_rx_message_t *rx_msg, mcan_timestamp_value_t *timestamp) |
| | Get Timestamp from MCAN RX frame. More...
|
| |
| hpm_stat_t | mcan_parse_protocol_status (uint32_t psr, mcan_protocol_status_t *protocol_status) |
| | Parse the Protocol Status register value. More...
|
| |
| hpm_stat_t | mcan_get_protocol_status (MCAN_Type *ptr, mcan_protocol_status_t *protocol_status) |
| | Get MCAN Protocol Status. More...
|
| |