CANopen Slave Documentation
Version 6.16.04
Loading...
Searching...
No Matches
Mask values for CAN messages

Macros

#define CP_MASK_STD_FRAME   ((uint32_t) 0x000007FF)
 
#define CP_MASK_EXT_FRAME   ((uint32_t) 0x1FFFFFFF)
 
#define CP_MASK_MSG_FORMAT   ((uint8_t) 0x03)
 

Detailed Description

The following definitions are used in combination with the structure CpCanMsg_s.

Macro Definition Documentation

◆ CP_MASK_EXT_FRAME

#define CP_MASK_EXT_FRAME   ((uint32_t) 0x1FFFFFFF)

Mask for extended frame (29 bits), used in combination with the CpCanMsg_s::ulIdentifier.

◆ CP_MASK_MSG_FORMAT

#define CP_MASK_MSG_FORMAT   ((uint8_t) 0x03)

Mask for message format, used in combination with ubMsgCtrl field of the CpCanMsg_ts structure (CpCanMsg_s::ubMsgCtrl). This mask covers CP_MSG_FORMAT_CBFF, CP_MSG_FORMAT_CEFF, CP_MSG_FORMAT_FBFF and CP_MSG_FORMAT_FEFF control flags.

◆ CP_MASK_STD_FRAME

#define CP_MASK_STD_FRAME   ((uint32_t) 0x000007FF)

Mask for standard frame (11 bits), used in combination with the CpCanMsg_s::ulIdentifier.