Microchip® Advanced Software Framework

CAN configuration structure.

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

#include <can.h>

Data Fields

bool automatic_retransmission
 Automatic Retransmission. More...
 
enum gclk_generator clock_source
 GCLK generator used to clock the peripheral. More...
 
bool clock_stop_acknowledge
 Clock Stop Acknowledge. More...
 
bool clock_stop_request
 Clock Stop Request. More...
 
uint8_t delay_compensation_filter_window_length
 Transmitter Delay Compensation Filter Window Length : 0x0-0x7F. 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 can_nonmatching_frames_action nonmatching_frames_action_extended
 Nonmatching frames action for extended frames. More...
 
enum can_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
 CAN 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 can_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 can_config::automatic_retransmission

Automatic Retransmission.

Referenced by _can_set_configuration(), and can_get_config_defaults().

enum gclk_generator can_config::clock_source

GCLK generator used to clock the peripheral.

Referenced by can_get_config_defaults(), and can_init().

bool can_config::clock_stop_acknowledge

Clock Stop Acknowledge.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::clock_stop_request

Clock Stop Request.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::delay_compensation_filter_window_length

Transmitter Delay Compensation Filter Window Length : 0x0-0x7F.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::delay_compensation_offset

Transmitter Delay Compensation Offset : 0x0-0x7F.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::edge_filtering

Edge Filtering during Bus Integration.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint32_t can_config::extended_id_mask

Extended ID Mask: 0x0-0x1FFFFFFF.

Referenced by _can_set_configuration(), and can_get_config_defaults().

enum can_nonmatching_frames_action can_config::nonmatching_frames_action_extended

Nonmatching frames action for extended frames.

Referenced by _can_set_configuration(), and can_get_config_defaults().

enum can_nonmatching_frames_action can_config::nonmatching_frames_action_standard

Nonmatching frames action for standard frames.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::protocol_exception_handling

Protocol Exception Handling.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::remote_frames_extended_reject

Reject Remote Extended Frames.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::remote_frames_standard_reject

Reject Remote Standard Frames.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::run_in_standby

CAN run in standby control.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::rx_fifo_0_overwrite

Rx FIFO 0 Operation Mode.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::rx_fifo_0_watermark

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

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::rx_fifo_1_overwrite

Rx FIFO 1 Operation Mode.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::rx_fifo_1_watermark

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

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::tdc_enable

Transceiver Delay Compensation enable.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::timeout_enable

Timeout enable.

Referenced by _can_set_configuration(), and can_get_config_defaults().

enum can_timeout_mode can_config::timeout_mode

Timeout Mode.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint16_t can_config::timeout_period

Timeout Period.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::timestamp_prescaler

Timestamp Counter Prescaler: 0x0-0xF.

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::transmit_pause

Transmit Pause.

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::tx_event_fifo_watermark

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

Referenced by _can_set_configuration(), and can_get_config_defaults().

bool can_config::tx_queue_mode

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

Referenced by _can_set_configuration(), and can_get_config_defaults().

uint8_t can_config::watchdog_configuration

Start value of the Message RAM Watchdog Counter.

Referenced by _can_set_configuration(), and can_get_config_defaults().