NetBurner 3.5.6
PDF Version |
MCAN configuration structure. More...
#include <mcan.h>
Public Member Functions | |
void | set_config_defaults () |
Initializes an MCAN configuration structure to defaults. | |
Public Attributes | |
bool | run_in_standby |
uint8_t | watchdog_configuration |
bool | transmit_pause |
bool | edge_filtering |
bool | protocol_exception_handling |
bool | automatic_retransmission |
bool | clock_stop_request |
bool | clock_stop_acknowledge |
uint8_t | timestamp_prescaler |
uint16_t | timeout_period |
enum mcan_timeout_mode | timeout_mode |
bool | timeout_enable |
bool | tdc_enable |
uint8_t | delay_compensation_offset |
uint8_t | delay_compensation_filter_window_length |
enum mcan_nonmatching_frames_action | nonmatching_frames_action_standard |
enum mcan_nonmatching_frames_action | nonmatching_frames_action_extended |
bool | remote_frames_standard_reject |
bool | remote_frames_extended_reject |
uint32_t | extended_id_mask |
bool | rx_fifo_0_overwrite |
uint8_t | rx_fifo_0_watermark |
bool | rx_fifo_1_overwrite |
uint8_t | rx_fifo_1_watermark |
bool | tx_queue_mode |
uint8_t | tx_event_fifo_watermark |
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.
|
inline |
Initializes an MCAN configuration structure to defaults.
Initializes a given MCAN configuration struct to a set of known default values. This function should be called on any new instance of the configuration struct before being modified by the user application.
The default configuration is as follows:
bool mcanMODM7AE70::mcan_config::automatic_retransmission |
Automatic Retransmission.
bool mcanMODM7AE70::mcan_config::clock_stop_acknowledge |
Clock Stop Acknowledge.
bool mcanMODM7AE70::mcan_config::clock_stop_request |
Clock Stop Request.
uint8_t mcanMODM7AE70::mcan_config::delay_compensation_filter_window_length |
Transmitter Delay Compensation Filter Window Length : 0x0-0x7F
uint8_t mcanMODM7AE70::mcan_config::delay_compensation_offset |
Transmitter Delay Compensation Offset : 0x0-0x7F
bool mcanMODM7AE70::mcan_config::edge_filtering |
Edge Filtering during Bus Integration.
uint32_t mcanMODM7AE70::mcan_config::extended_id_mask |
Extended ID Mask: 0x0-0x1FFFFFFF.
enum mcan_nonmatching_frames_action mcanMODM7AE70::mcan_config::nonmatching_frames_action_extended |
Nonmatching frames action for extended frames.
enum mcan_nonmatching_frames_action mcanMODM7AE70::mcan_config::nonmatching_frames_action_standard |
Nonmatching frames action for standard frames.
bool mcanMODM7AE70::mcan_config::protocol_exception_handling |
Protocol Exception Handling.
bool mcanMODM7AE70::mcan_config::remote_frames_extended_reject |
Reject Remote Extended Frames.
bool mcanMODM7AE70::mcan_config::remote_frames_standard_reject |
Reject Remote Standard Frames.
bool mcanMODM7AE70::mcan_config::run_in_standby |
MCAN run in standby control.
bool mcanMODM7AE70::mcan_config::rx_fifo_0_overwrite |
Rx FIFO 0 Operation Mode.
uint8_t mcanMODM7AE70::mcan_config::rx_fifo_0_watermark |
Rx FIFO 0 Watermark: 1-64, other value disable it.
bool mcanMODM7AE70::mcan_config::rx_fifo_1_overwrite |
Rx FIFO 1 Operation Mode.
uint8_t mcanMODM7AE70::mcan_config::rx_fifo_1_watermark |
Rx FIFO 1 Watermark: 1-64, other value disable it.
bool mcanMODM7AE70::mcan_config::tdc_enable |
Transceiver Delay Compensation enable.
bool mcanMODM7AE70::mcan_config::timeout_enable |
Timeout enable.
enum mcan_timeout_mode mcanMODM7AE70::mcan_config::timeout_mode |
Timeout Mode.
uint16_t mcanMODM7AE70::mcan_config::timeout_period |
Timeout Period.
uint8_t mcanMODM7AE70::mcan_config::timestamp_prescaler |
Timestamp Counter Prescaler: 0x0-0xF
bool mcanMODM7AE70::mcan_config::transmit_pause |
Transmit Pause.
uint8_t mcanMODM7AE70::mcan_config::tx_event_fifo_watermark |
Tx Event FIFO Watermark: 1-32, other value disable it.
bool mcanMODM7AE70::mcan_config::tx_queue_mode |
Tx FIFO/Queue Mode, 0 for FIFO and 1 for Queue.
uint8_t mcanMODM7AE70::mcan_config::watchdog_configuration |
Start value of the Message RAM Watchdog Counter