libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
CAN Acceptance Code Register

CAN Acceptance Code/Mask Register. More...

Collaboration diagram for CAN Acceptance Code Register:

Macros

#define CAN_ACR_DUAL_DB_UPPER   0x000F0000U /* 19:16 */
 
#define CAN_ACR_DUAL_DB_LOWER   0x0000000FU /* 3:0 */
 
#define CAN_ACR_DUAL_ID1   0xFFE00000U /* 31:21 */
 
#define CAN_ACR_DUAL_ID2   0x0000FFE0U /* 15:5 */
 
#define CAN_ACR_DUAL_RTR1   0x00100000U /* 20 */
 
#define CAN_ACR_DUAL_RTR2   0x00000010U /* 4 */
 
#define CAN_ACR_SINGLE_STD_ID   0xFFE00000U /* 31:21 */
 
#define CAN_ACR_SINGLE_STD_RTR   0x00100000U /* 20 */
 
#define CAN_ACR_SINGLE_STD_DB1   0x0000FF00U /* 15:8 */
 
#define CAN_ACR_SINGLE_STD_DB2   0x000000FFU /* 7:0 */
 
#define CAN_ACR_SINGLE_EXT_ID   0xFFFFFFF8U /* 31:3 */
 
#define CAN_ACR_SINGLE_EXT_RTR   0x00000004U /* 2 */
 

Detailed Description

CAN Acceptance Code/Mask Register.

This is used for filtering messages. Mask value of 1 ignores the bit. Mask value of 0 checks the bit.

Macro Definition Documentation

◆ CAN_ACR_DUAL_DB_LOWER

#define CAN_ACR_DUAL_DB_LOWER   0x0000000FU /* 3:0 */

Definition at line 236 of file can.h.

◆ CAN_ACR_DUAL_DB_UPPER

#define CAN_ACR_DUAL_DB_UPPER   0x000F0000U /* 19:16 */

Definition at line 235 of file can.h.

◆ CAN_ACR_DUAL_ID1

#define CAN_ACR_DUAL_ID1   0xFFE00000U /* 31:21 */

Definition at line 237 of file can.h.

◆ CAN_ACR_DUAL_ID2

#define CAN_ACR_DUAL_ID2   0x0000FFE0U /* 15:5 */

Definition at line 238 of file can.h.

◆ CAN_ACR_DUAL_RTR1

#define CAN_ACR_DUAL_RTR1   0x00100000U /* 20 */

Definition at line 239 of file can.h.

◆ CAN_ACR_DUAL_RTR2

#define CAN_ACR_DUAL_RTR2   0x00000010U /* 4 */

Definition at line 240 of file can.h.

◆ CAN_ACR_SINGLE_EXT_ID

#define CAN_ACR_SINGLE_EXT_ID   0xFFFFFFF8U /* 31:3 */

Definition at line 247 of file can.h.

◆ CAN_ACR_SINGLE_EXT_RTR

#define CAN_ACR_SINGLE_EXT_RTR   0x00000004U /* 2 */

Definition at line 248 of file can.h.

◆ CAN_ACR_SINGLE_STD_DB1

#define CAN_ACR_SINGLE_STD_DB1   0x0000FF00U /* 15:8 */

Definition at line 244 of file can.h.

◆ CAN_ACR_SINGLE_STD_DB2

#define CAN_ACR_SINGLE_STD_DB2   0x000000FFU /* 7:0 */

Definition at line 245 of file can.h.

◆ CAN_ACR_SINGLE_STD_ID

#define CAN_ACR_SINGLE_STD_ID   0xFFE00000U /* 31:21 */

Definition at line 242 of file can.h.

◆ CAN_ACR_SINGLE_STD_RTR

#define CAN_ACR_SINGLE_STD_RTR   0x00100000U /* 20 */

Definition at line 243 of file can.h.