• Home • Files • Structures         • Download

Mask values for CAN messages


Defines

#define CP_MASK_STD_FRAME   0x000007FF
#define CP_MASK_EXT_FRAME   0x1FFFFFFF
#define CP_MASK_EXT_BIT   0x01
#define CP_MASK_RTR_BIT   0x02
#define CP_MASK_OVR_BIT   0x04

Detailed Description

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

Define Documentation

#define CP_MASK_EXT_BIT   0x01

Set the EXT bit (extended frame) in the ubMsgCtrl field of the _TsCpCanMsg structure (CpCanMsg_s::ubMsgCtrl).

#define CP_MASK_EXT_FRAME   0x1FFFFFFF

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

#define CP_MASK_OVR_BIT   0x04

Set the OVR bit (overrun) in the ubMsgCtrl field of the _TsCpCanMsg structure (CpCanMsg_s::ubMsgCtrl).

#define CP_MASK_RTR_BIT   0x02

Set the RTR bit (remote frame) in the ubMsgCtrl field of the _TsCpCanMsg structure (CpCanMsg_s::ubMsgCtrl).

#define CP_MASK_STD_FRAME   0x000007FF

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


 

© MicroControl GmbH & Co. KG

CANpie - V2.00