MASKS (GVL)

Following bit masks have to be used to interpret the structure members of MESSAGE.

Attributes:

qualified_only

InOut:

Scope

Name

Type

Initial

Comment

Constant

gcdwCOBIDMask

DWORD

16#1FFFFFFF

Bit Mask for calculating the CANID.

Example: dwCOBID := pMsg^.cobId AND MASKS.gcdwCOBIDMask

gcdwTXMask

DWORD

16#80000000

Bit Mask for calculating the Tx bit.

Example: xTxMsg := (pMsg^.cobId AND MASKS.gcdwTXMask) > 0

gcdwRTRMask

DWORD

16#40000000

Bit Mask for calculating the RTR bit.

Example: xRTRMsg := (pMsg^.cobId AND MASKS.gcdwRTRMask) > 0

gcdwEIDMask

DWORD

16#20000000

Bit Mask for calculating the EID (= Extended Identifer; 29 bit) bit.

Example: xEIDMsg := (pMsg^.cobId AND MASKS.gcdwEIDMask) > 0

gcbyDLCMask

BYTE

16#F

Bit Mask for calculating the message length.

Example: dwLength := pMsg^.byLen AND MASKS.gcbyDLCMask

gcbyPrioMask

BYTE

16#70

Bit Mask for calculating the message priority.

Example: dwPrio := pMsg^.byLen AND MASKS.gcbyPrioMask

gcbySyncMask

BYTE

16#80

Bit Mask for calculating the Sync bit.

Example: xSync := (pMsg^.byLen AND MASKS.gcbySyncMask) > 0