Macros
conf_mcan.h File Reference

SAM Control Area Network Driver Configuration Header. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONF_MCAN0_RX_BUFFER_NUM   16
 
#define CONF_MCAN0_RX_EXTENDED_ID_FILTER_NUM   16
 
#define CONF_MCAN0_RX_FIFO_0_NUM   16
 
#define CONF_MCAN0_RX_FIFO_1_NUM   16
 
#define CONF_MCAN0_RX_STANDARD_ID_FILTER_NUM   32
 
#define CONF_MCAN0_TX_BUFFER_NUM   4
 
#define CONF_MCAN0_TX_EVENT_FIFO   8
 
#define CONF_MCAN0_TX_FIFO_QUEUE_NUM   4
 
#define CONF_MCAN1_RX_BUFFER_NUM   0
 
#define CONF_MCAN1_RX_EXTENDED_ID_FILTER_NUM   16
 
#define CONF_MCAN1_RX_FIFO_0_NUM   16
 
#define CONF_MCAN1_RX_FIFO_1_NUM   16
 
#define CONF_MCAN1_RX_STANDARD_ID_FILTER_NUM   32
 
#define CONF_MCAN1_TX_BUFFER_NUM   0
 
#define CONF_MCAN1_TX_EVENT_FIFO   8
 
#define CONF_MCAN1_TX_FIFO_QUEUE_NUM   8
 
#define CONF_MCAN_ELEMENT_DATA_SIZE   8
 
#define CONF_MCAN_FBTP_FBRP_VALUE   5
 
#define CONF_MCAN_FBTP_FSJW_VALUE   3
 
#define CONF_MCAN_FBTP_FTSEG1_VALUE   10
 
#define CONF_MCAN_FBTP_FTSEG2_VALUE   3
 
#define CONF_MCAN_NBTP_NBRP_VALUE   1
 
#define CONF_MCAN_NBTP_NSJW_VALUE   3
 
#define CONF_MCAN_NBTP_NTSEG1_VALUE   10
 
#define CONF_MCAN_NBTP_NTSEG2_VALUE   7
 

Detailed Description

SAM Control Area Network Driver Configuration Header.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

Definition in file conf_mcan.h.

Macro Definition Documentation

◆ CONF_MCAN0_RX_BUFFER_NUM

#define CONF_MCAN0_RX_BUFFER_NUM   16

Range: 1..64

Definition at line 48 of file conf_mcan.h.

◆ CONF_MCAN0_RX_EXTENDED_ID_FILTER_NUM

#define CONF_MCAN0_RX_EXTENDED_ID_FILTER_NUM   16

Range: 1..64

Definition at line 58 of file conf_mcan.h.

◆ CONF_MCAN0_RX_FIFO_0_NUM

#define CONF_MCAN0_RX_FIFO_0_NUM   16

Range: 1..64

Definition at line 44 of file conf_mcan.h.

◆ CONF_MCAN0_RX_FIFO_1_NUM

#define CONF_MCAN0_RX_FIFO_1_NUM   16

Range: 1..64

Definition at line 46 of file conf_mcan.h.

◆ CONF_MCAN0_RX_STANDARD_ID_FILTER_NUM

#define CONF_MCAN0_RX_STANDARD_ID_FILTER_NUM   32

Range: 1..128

Definition at line 56 of file conf_mcan.h.

◆ CONF_MCAN0_TX_BUFFER_NUM

#define CONF_MCAN0_TX_BUFFER_NUM   4

Range: 1..16

Definition at line 50 of file conf_mcan.h.

◆ CONF_MCAN0_TX_EVENT_FIFO

#define CONF_MCAN0_TX_EVENT_FIFO   8

Range: 1..32

Definition at line 54 of file conf_mcan.h.

◆ CONF_MCAN0_TX_FIFO_QUEUE_NUM

#define CONF_MCAN0_TX_FIFO_QUEUE_NUM   4

Range: 1..16

Definition at line 52 of file conf_mcan.h.

◆ CONF_MCAN1_RX_BUFFER_NUM

#define CONF_MCAN1_RX_BUFFER_NUM   0

Range: 1..64

Definition at line 64 of file conf_mcan.h.

◆ CONF_MCAN1_RX_EXTENDED_ID_FILTER_NUM

#define CONF_MCAN1_RX_EXTENDED_ID_FILTER_NUM   16

Range: 1..64

Definition at line 74 of file conf_mcan.h.

◆ CONF_MCAN1_RX_FIFO_0_NUM

#define CONF_MCAN1_RX_FIFO_0_NUM   16

Range: 1..64

Definition at line 60 of file conf_mcan.h.

◆ CONF_MCAN1_RX_FIFO_1_NUM

#define CONF_MCAN1_RX_FIFO_1_NUM   16

Range: 1..64

Definition at line 62 of file conf_mcan.h.

◆ CONF_MCAN1_RX_STANDARD_ID_FILTER_NUM

#define CONF_MCAN1_RX_STANDARD_ID_FILTER_NUM   32

Range: 1..128

Definition at line 72 of file conf_mcan.h.

◆ CONF_MCAN1_TX_BUFFER_NUM

#define CONF_MCAN1_TX_BUFFER_NUM   0

Range: 1..16

Definition at line 66 of file conf_mcan.h.

◆ CONF_MCAN1_TX_EVENT_FIFO

#define CONF_MCAN1_TX_EVENT_FIFO   8

Range: 1..32

Definition at line 70 of file conf_mcan.h.

◆ CONF_MCAN1_TX_FIFO_QUEUE_NUM

#define CONF_MCAN1_TX_FIFO_QUEUE_NUM   8

Range: 1..16

Definition at line 68 of file conf_mcan.h.

◆ CONF_MCAN_ELEMENT_DATA_SIZE

#define CONF_MCAN_ELEMENT_DATA_SIZE   8

The value should be 8/12/16/20/24/32/48/64.

Definition at line 77 of file conf_mcan.h.

◆ CONF_MCAN_FBTP_FBRP_VALUE

#define CONF_MCAN_FBTP_FBRP_VALUE   5

Data bit Baud Rate Prescaler

Definition at line 101 of file conf_mcan.h.

◆ CONF_MCAN_FBTP_FSJW_VALUE

#define CONF_MCAN_FBTP_FSJW_VALUE   3

Data bit (Re)Synchronization Jump Width

Definition at line 103 of file conf_mcan.h.

◆ CONF_MCAN_FBTP_FTSEG1_VALUE

#define CONF_MCAN_FBTP_FTSEG1_VALUE   10

Data bit Time segment before sample point

Definition at line 105 of file conf_mcan.h.

◆ CONF_MCAN_FBTP_FTSEG2_VALUE

#define CONF_MCAN_FBTP_FTSEG2_VALUE   3

Data bit Time segment after sample point

Definition at line 107 of file conf_mcan.h.

◆ CONF_MCAN_NBTP_NBRP_VALUE

#define CONF_MCAN_NBTP_NBRP_VALUE   1

The setting of the nominal bit rate is based on the PCK5 which is 480M which you can change in the conf_clock.h. Below is the default configuration. The time quanta is 20MHz / (1+1) = 10MHz. And each bit is (1 + NTSEG1 + 1 + NTSEG2 + 1) = 20 time quanta which means the bit rate is 10MHz/20=500KHz.Nominal bit Baud Rate Prescaler

Definition at line 86 of file conf_mcan.h.

◆ CONF_MCAN_NBTP_NSJW_VALUE

#define CONF_MCAN_NBTP_NSJW_VALUE   3

Nominal bit (Re)Synchronization Jump Width

Definition at line 88 of file conf_mcan.h.

◆ CONF_MCAN_NBTP_NTSEG1_VALUE

#define CONF_MCAN_NBTP_NTSEG1_VALUE   10

Nominal bit Time segment before sample point

Definition at line 90 of file conf_mcan.h.

◆ CONF_MCAN_NBTP_NTSEG2_VALUE

#define CONF_MCAN_NBTP_NTSEG2_VALUE   7

Nominal bit Time segment after sample point

Definition at line 92 of file conf_mcan.h.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58