CMSIS-Driver
Version 2.05
Peripheral Interface for Middleware and Application Code
|
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... | |
Set bit timing.
The following codes are used with the function ARM_CAN_SetBitrate.
#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) |