libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
CAN Bus Timing 0 Register.

CAN Bus Timing 0 Register bit definitions. More...

Collaboration diagram for CAN Bus Timing 0 Register.:

Macros

#define CAN_BTR0_BRP_MASK   (0x3F)
 
#define CAN_BTR0_BRP_SHIFT   16
 
#define CAN_BTR0_BRP(val)   (((val) & CAN_BTR0_BRP_MASK) << CAN_BTR0_BRP_SHIFT)
 
#define CAN_BTR0_SJW_MASK   (0x03)
 
#define CAN_BTR0_SJW_SHIFT   22
 
#define CAN_BTR0_SJW(val)   (((val) & CAN_BTR0_SJW_MASK) << CAN_BTR0_SJW_SHIFT)
 

Detailed Description

CAN Bus Timing 0 Register bit definitions.

Macro Definition Documentation

◆ CAN_BTR0_BRP

#define CAN_BTR0_BRP (   val)    (((val) & CAN_BTR0_BRP_MASK) << CAN_BTR0_BRP_SHIFT)

Definition at line 191 of file can.h.

◆ CAN_BTR0_BRP_MASK

#define CAN_BTR0_BRP_MASK   (0x3F)

Definition at line 189 of file can.h.

◆ CAN_BTR0_BRP_SHIFT

#define CAN_BTR0_BRP_SHIFT   16

Definition at line 190 of file can.h.

◆ CAN_BTR0_SJW

#define CAN_BTR0_SJW (   val)    (((val) & CAN_BTR0_SJW_MASK) << CAN_BTR0_SJW_SHIFT)

Definition at line 194 of file can.h.

◆ CAN_BTR0_SJW_MASK

#define CAN_BTR0_SJW_MASK   (0x03)

Definition at line 192 of file can.h.

◆ CAN_BTR0_SJW_SHIFT

#define CAN_BTR0_SJW_SHIFT   22

Definition at line 193 of file can.h.