Microchip® Advanced Software Framework

MCAN configuration structure.

Configuration structure for an MCAN instance. This structure should be initialized by the mcan_get_config_defaults() function before being modified by the user application.

#include <mcan.h>

Data Fields

bool automatic_retransmission
 Automatic Retransmission. More...
 
bool clock_stop_acknowledge
 Clock Stop Acknowledge. More...
 
bool clock_stop_request
 Clock Stop Request. More...
 
uint8_t delay_compensation_offset
 Transmitter Delay Compensation Offset : 0x0-0x7F. More...
 
bool edge_filtering
 Edge Filtering during Bus Integration. More...
 
uint32_t extended_id_mask
 Extended ID Mask: 0x0-0x1FFFFFFF. More...
 
enum mcan_nonmatching_frames_action nonmatching_frames_action_extended
 Nonmatching frames action for extended frames. More...
 
enum mcan_nonmatching_frames_action nonmatching_frames_action_standard
 Nonmatching frames action for standard frames. More...
 
bool protocol_exception_handling
 Protocol Exception Handling. More...
 
bool remote_frames_extended_reject
 Reject Remote Extended Frames. More...
 
bool remote_frames_standard_reject
 Reject Remote Standard Frames. More...
 
bool run_in_standby
 MCAN run in standby control. More...
 
bool rx_fifo_0_overwrite
 Rx FIFO 0 Operation Mode. More...
 
uint8_t rx_fifo_0_watermark
 Rx FIFO 0 Watermark: 1-64, other value disable it. More...
 
bool rx_fifo_1_overwrite
 Rx FIFO 1 Operation Mode. More...
 
uint8_t rx_fifo_1_watermark
 Rx FIFO 1 Watermark: 1-64, other value disable it. More...
 
bool tdc_enable
 Transceiver Delay Compensation enable. More...
 
bool timeout_enable
 Timeout enable. More...
 
enum mcan_timeout_mode timeout_mode
 Timeout Mode. More...
 
uint16_t timeout_period
 Timeout Period. More...
 
uint8_t timestamp_prescaler
 Timestamp Counter Prescaler: 0x0-0xF. More...
 
bool transmit_pause
 Transmit Pause. More...
 
uint8_t tx_event_fifo_watermark
 Tx Event FIFO Watermark: 1-32, other value disable it. More...
 
bool tx_queue_mode
 Tx FIFO/Queue Mode, 0 for FIFO and 1 for Queue. More...
 
uint8_t watchdog_configuration
 Start value of the Message RAM Watchdog Counter. More...
 

bool mcan_config::automatic_retransmission

Automatic Retransmission.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::clock_stop_acknowledge

Clock Stop Acknowledge.

Referenced by mcan_get_config_defaults().

bool mcan_config::clock_stop_request

Clock Stop Request.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::delay_compensation_offset

Transmitter Delay Compensation Offset : 0x0-0x7F.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::edge_filtering

Edge Filtering during Bus Integration.

Referenced by mcan_get_config_defaults().

uint32_t mcan_config::extended_id_mask

Extended ID Mask: 0x0-0x1FFFFFFF.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

enum mcan_nonmatching_frames_action mcan_config::nonmatching_frames_action_extended

Nonmatching frames action for extended frames.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

enum mcan_nonmatching_frames_action mcan_config::nonmatching_frames_action_standard

Nonmatching frames action for standard frames.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::protocol_exception_handling

Protocol Exception Handling.

Referenced by mcan_get_config_defaults().

bool mcan_config::remote_frames_extended_reject

Reject Remote Extended Frames.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::remote_frames_standard_reject

Reject Remote Standard Frames.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::run_in_standby

MCAN run in standby control.

Referenced by mcan_get_config_defaults().

bool mcan_config::rx_fifo_0_overwrite

Rx FIFO 0 Operation Mode.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::rx_fifo_0_watermark

Rx FIFO 0 Watermark: 1-64, other value disable it.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::rx_fifo_1_overwrite

Rx FIFO 1 Operation Mode.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::rx_fifo_1_watermark

Rx FIFO 1 Watermark: 1-64, other value disable it.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::tdc_enable

Transceiver Delay Compensation enable.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::timeout_enable

Timeout enable.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

enum mcan_timeout_mode mcan_config::timeout_mode

Timeout Mode.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint16_t mcan_config::timeout_period

Timeout Period.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::timestamp_prescaler

Timestamp Counter Prescaler: 0x0-0xF.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::transmit_pause

Transmit Pause.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::tx_event_fifo_watermark

Tx Event FIFO Watermark: 1-32, other value disable it.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

bool mcan_config::tx_queue_mode

Tx FIFO/Queue Mode, 0 for FIFO and 1 for Queue.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().

uint8_t mcan_config::watchdog_configuration

Start value of the Message RAM Watchdog Counter.

Referenced by _mcan_set_configuration(), and mcan_get_config_defaults().