SAM Control Area Network Driver Configuration Header.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | CONF_MCAN0_RX_BUFFER_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN0_RX_EXTENDED_ID_FILTER_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN0_RX_FIFO_0_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN0_RX_FIFO_1_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN0_RX_STANDARD_ID_FILTER_NUM 32 |
Range: 1..128. More... | |
#define | CONF_MCAN0_TX_BUFFER_NUM 4 |
Range: 1..16. More... | |
#define | CONF_MCAN0_TX_EVENT_FIFO 8 |
Range: 1..32. More... | |
#define | CONF_MCAN0_TX_FIFO_QUEUE_NUM 4 |
Range: 1..16. More... | |
#define | CONF_MCAN1_RX_BUFFER_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN1_RX_EXTENDED_ID_FILTER_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN1_RX_FIFO_0_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN1_RX_FIFO_1_NUM 16 |
Range: 1..64. More... | |
#define | CONF_MCAN1_RX_STANDARD_ID_FILTER_NUM 32 |
Range: 1..128. More... | |
#define | CONF_MCAN1_TX_BUFFER_NUM 4 |
Range: 1..16. More... | |
#define | CONF_MCAN1_TX_EVENT_FIFO 8 |
Range: 1..32. More... | |
#define | CONF_MCAN1_TX_FIFO_QUEUE_NUM 4 |
Range: 1..16. More... | |
#define | CONF_MCAN_ELEMENT_DATA_SIZE 8 |
The value should be 8/12/16/20/24/32/48/64. More... | |
#define | CONF_MCAN_FBTP_FBRP_VALUE 5 |
Data bit Baud Rate Prescaler. More... | |
#define | CONF_MCAN_FBTP_FSJW_VALUE 3 |
Data bit (Re)Synchronization Jump Width. More... | |
#define | CONF_MCAN_FBTP_FTSEG1_VALUE 10 |
Data bit Time segment before sample point. More... | |
#define | CONF_MCAN_FBTP_FTSEG2_VALUE 3 |
Data bit Time segment after sample point. More... | |
#define | CONF_MCAN_NBTP_NBRP_VALUE 2 |
The setting of the nominal bit rate is based on the PCK5 which is 30M which you can change in the conf_clock.h. More... | |
#define | CONF_MCAN_NBTP_NSJW_VALUE 3 |
Nominal bit (Re)Synchronization Jump Width. More... | |
#define | CONF_MCAN_NBTP_NTSEG1_VALUE 10 |
Nominal bit Time segment before sample point. More... | |
#define | CONF_MCAN_NBTP_NTSEG2_VALUE 7 |
Nominal bit Time segment after sample point. More... | |
#define CONF_MCAN0_RX_BUFFER_NUM 16 |
Range: 1..64.
Referenced by MCAN1_INT0_Handler().
#define CONF_MCAN0_RX_EXTENDED_ID_FILTER_NUM 16 |
Range: 1..64.
#define CONF_MCAN0_RX_FIFO_0_NUM 16 |
Range: 1..64.
Referenced by MCAN1_INT0_Handler().
#define CONF_MCAN0_RX_FIFO_1_NUM 16 |
Range: 1..64.
Referenced by MCAN1_INT0_Handler().
#define CONF_MCAN0_RX_STANDARD_ID_FILTER_NUM 32 |
Range: 1..128.
#define CONF_MCAN0_TX_BUFFER_NUM 4 |
Range: 1..16.
Referenced by _mcan_message_memory_init().
#define CONF_MCAN0_TX_EVENT_FIFO 8 |
Range: 1..32.
#define CONF_MCAN0_TX_FIFO_QUEUE_NUM 4 |
Range: 1..16.
#define CONF_MCAN1_RX_BUFFER_NUM 16 |
Range: 1..64.
#define CONF_MCAN1_RX_EXTENDED_ID_FILTER_NUM 16 |
Range: 1..64.
#define CONF_MCAN1_RX_FIFO_0_NUM 16 |
Range: 1..64.
#define CONF_MCAN1_RX_FIFO_1_NUM 16 |
Range: 1..64.
#define CONF_MCAN1_RX_STANDARD_ID_FILTER_NUM 32 |
Range: 1..128.
#define CONF_MCAN1_TX_BUFFER_NUM 4 |
Range: 1..16.
Referenced by _mcan_message_memory_init().
#define CONF_MCAN1_TX_EVENT_FIFO 8 |
Range: 1..32.
#define CONF_MCAN1_TX_FIFO_QUEUE_NUM 4 |
Range: 1..16.
#define CONF_MCAN_ELEMENT_DATA_SIZE 8 |
The value should be 8/12/16/20/24/32/48/64.
Referenced by _mcan_message_memory_init(), configure_mcan(), main(), and mcan_set_tx_buffer_element().
#define CONF_MCAN_FBTP_FBRP_VALUE 5 |
Data bit Baud Rate Prescaler.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_FBTP_FSJW_VALUE 3 |
Data bit (Re)Synchronization Jump Width.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_FBTP_FTSEG1_VALUE 10 |
Data bit Time segment before sample point.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_FBTP_FTSEG2_VALUE 3 |
Data bit Time segment after sample point.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_NBTP_NBRP_VALUE 2 |
The setting of the nominal bit rate is based on the PCK5 which is 30M which you can change in the conf_clock.h.
Below is the default configuration. The time quanta is 30MHz / (2+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
Referenced by _mcan_set_configuration().
#define CONF_MCAN_NBTP_NSJW_VALUE 3 |
Nominal bit (Re)Synchronization Jump Width.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_NBTP_NTSEG1_VALUE 10 |
Nominal bit Time segment before sample point.
Referenced by _mcan_set_configuration().
#define CONF_MCAN_NBTP_NTSEG2_VALUE 7 |
Nominal bit Time segment after sample point.
Referenced by _mcan_set_configuration().