BM_BitrateTypeDef
BM_BitrateTypeDef data structure.
Members
Section titled “Members”| Member | Declaration | Description |
|---|---|---|
nbitrate |
uint16_t nbitrate |
Nominal bitrate, note this is the only valid birate for CAN CLASSIC, LIN and eth channels. bitrate is in kbps For CAN/CANFD channels, bps for LIN channels and Mbps for ETH channels. |
dbitrate |
uint16_t dbitrate |
Data bitrate in kbps, default as 500, note this is only valid in CANFD mode. |
nsamplepos |
uint8_t nsamplepos |
Nominal sample position (percentage), 0-100, default as 75 |
dsamplepos |
uint8_t dsamplepos |
Data sample position (percentage), 0-100, default as 75 |
clockfreq |
uint8_t clockfreq |
CAN controller clock in Mhz, default as 0 |
reserved |
uint8_t reserved |
Reserved |
nbtr0 |
uint8_t nbtr0 |
Nominal BTR0 register value, note this value is calculated using clockfreq, which might not be 16MHz |
nbtr1 |
uint8_t nbtr1 |
Nominal BTR1 register value, note this value is calculated using clockfreq, which might not be 16MHz |
dbtr0 |
uint8_t dbtr0 |
Data BTR0 register value, note this value is calculated using clockfreq, which might not be 16MHz |
dbtr1 |
uint8_t dbtr1 |
Data BTR1 register value, note this value is calculated using clockfreq, which might not be 16MHz |
This data-structure reference follows the current BUSMUST BMAPI SDK.