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
DWORD16#1FFFFFFF
Bit Mask for calculating the CANID.Example:dwCOBID := pMsg^.cobId AND MASKS.gcdwCOBIDMaskgcdwTXMask
DWORD16#80000000
Bit Mask for calculating the Tx bit.Example:xTxMsg := (pMsg^.cobId AND MASKS.gcdwTXMask) > 0gcdwRTRMask
DWORD16#40000000
Bit Mask for calculating the RTR bit.Example:xRTRMsg := (pMsg^.cobId AND MASKS.gcdwRTRMask) > 0gcdwEIDMask
DWORD16#20000000
Bit Mask for calculating the EID (= Extended Identifer; 29 bit) bit.Example:xEIDMsg := (pMsg^.cobId AND MASKS.gcdwEIDMask) > 0gcbyDLCMask
BYTE16#F
Bit Mask for calculating the message length.Example:dwLength := pMsg^.byLen AND MASKS.gcbyDLCMaskgcbyPrioMask
BYTE16#70
Bit Mask for calculating the message priority.Example:dwPrio := pMsg^.byLen AND MASKS.gcbyPrioMaskgcbySyncMask
BYTE16#80
Bit Mask for calculating the Sync bit.Example:xSync := (pMsg^.byLen AND MASKS.gcbySyncMask) > 0