![]() |
![]() |
Structure defining the raw MCAN bit rate configuration. More...
#include <CAN.h>
Data Fields | |
uint32_t | nbrp |
uint32_t | ntSeg1 |
uint32_t | ntSeg2 |
uint32_t | nsjw |
const CAN_DataBitRateTimingRaw * | dataTiming |
Structure defining the raw MCAN bit rate configuration.
The length of the bit time is [ntSeg1 + ntSeg2 + 3] tq. Bit Rate = (MCAN system clock / (nbrp + 1)) / (length of bit time)
uint32_t CAN_BitRateTimingRaw::nbrp |
NBRP: Nominal Bit Rate Prescaler value for the MCAN system clock. Interpreted by MCAN as the value is this field + 1. Valid range: 0 to 511.
uint32_t CAN_BitRateTimingRaw::ntSeg1 |
NTSEG1: Nominal time segment 1 + prop segment. Interpreted by MCAN as the value in this field + 1. Valid range: 1 to 255.
uint32_t CAN_BitRateTimingRaw::ntSeg2 |
NTSEG2: Nominal time segment 2. Interpreted by MCAN as the value is this field + 1. Valid range: 1 to 127.
uint32_t CAN_BitRateTimingRaw::nsjw |
NSJW: Nominal Resynchronization Jump Width. Interpreted by MCAN as the value is this field + 1. Valid range: 0 to 127. Typically set equal to tSeg2.
const CAN_DataBitRateTimingRaw* CAN_BitRateTimingRaw::dataTiming |
CAN FD data phase bit rate configuration. May be set to NULL if CAN FD bit rate switching is not enabled.