| CMSIS-Driver Peripheral Interface for Middleware and Application Code |

Loading...
Searching...
No Matches
Macros | Enumerations
CAN Bit Timing Codes
CAN Interface » CAN Control 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)

See also
  ARM_CAN_SetBitrate

## ◆ 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)

See also
  ARM_CAN_SetBitrate

## ◆ 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)

See also
  ARM_CAN_SetBitrate

## ◆ ARM_CAN_BIT_SJW

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

See also
  ARM_CAN_SetBitrate

## Enumeration Type Documentation

## ◆ ARM_CAN_BITRATE_SELECT

enum ARM_CAN_BITRATE_SELECT

Set the bit rate.

Provides the typedef for setting the bit rate.

Parameter for:

- ARM_CAN_SetBitrate

Enumerator
ARM_CAN_BITRATE_NOMINAL | Select nominal (flexible data-rate arbitration) bitrate.
ARM_CAN_BITRATE_FD_DATA | Select flexible data-rate data bitrate.