CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches
CAN Bit Timing Codes

Set bit timing. More...

Macros

#define ARM_CAN_BIT_PROP_SEG(x)   (((x) << ARM_CAN_BIT_PROP_SEG_Pos) & ARM_CAN_BIT_PROP_SEG_Msk)
 
#define ARM_CAN_BIT_PHASE_SEG1(x)   (((x) << ARM_CAN_BIT_PHASE_SEG1_Pos) & ARM_CAN_BIT_PHASE_SEG1_Msk)
 
#define ARM_CAN_BIT_PHASE_SEG2(x)   (((x) << ARM_CAN_BIT_PHASE_SEG2_Pos) & ARM_CAN_BIT_PHASE_SEG2_Msk)
 
#define ARM_CAN_BIT_SJW(x)   (((x) << ARM_CAN_BIT_SJW_Pos) & ARM_CAN_BIT_SJW_Msk)
 

Enumerations

enum  ARM_CAN_BITRATE_SELECT {
  ARM_CAN_BITRATE_NOMINAL ,
  ARM_CAN_BITRATE_FD_DATA
}
 Set the bit rate. More...
 

Description

Set bit timing.

The following codes are used with the function ARM_CAN_SetBitrate.

Macro Definition Documentation

◆ ARM_CAN_BIT_PROP_SEG

#define ARM_CAN_BIT_PROP_SEG (   x)    (((x) << ARM_CAN_BIT_PROP_SEG_Pos) & ARM_CAN_BIT_PROP_SEG_Msk)

◆ ARM_CAN_BIT_PHASE_SEG1

#define ARM_CAN_BIT_PHASE_SEG1 (   x)    (((x) << ARM_CAN_BIT_PHASE_SEG1_Pos) & ARM_CAN_BIT_PHASE_SEG1_Msk)

◆ ARM_CAN_BIT_PHASE_SEG2

#define ARM_CAN_BIT_PHASE_SEG2 (   x)    (((x) << ARM_CAN_BIT_PHASE_SEG2_Pos) & ARM_CAN_BIT_PHASE_SEG2_Msk)

◆ ARM_CAN_BIT_SJW

#define ARM_CAN_BIT_SJW (   x)    (((x) << ARM_CAN_BIT_SJW_Pos) & ARM_CAN_BIT_SJW_Msk)

Enumeration Type Documentation

◆ ARM_CAN_BITRATE_SELECT

Set the bit rate.

Provides the typedef for setting the bit rate.

Parameter for:

Enumerator
ARM_CAN_BITRATE_NOMINAL 

Select nominal (flexible data-rate arbitration) bitrate.

ARM_CAN_BITRATE_FD_DATA 

Select flexible data-rate data bitrate.