OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
Loading...
Searching...
No Matches
CAN Identifier Field Masks

Extract fields from the CAN 29-bit extended identifier. More...

Macros

#define MASK_CAN_STREAM_OR_DATAGRAM   0x01000000
 Stream or datagram indicator in CAN identifier.
 
#define MASK_CAN_PRIORITY   0x00C00000
 Priority field in CAN identifier.
 
#define MASK_CAN_SIMPLE_PROTOCOL   0x00010000
 Simple protocol indicator in CAN identifier.
 
#define MASK_CAN_DEST_ADDRESS_PRESENT   0x00008000
 Destination address present indicator in CAN identifier.
 
#define MASK_CAN_EVENT_PRESENT   0x00004000
 Event ID present indicator in CAN identifier.
 
#define MASK_CAN_PRIORITY_MODIFIER   0x00003000
 Priority modifier field in CAN identifier.
 
#define MASK_CAN_SOURCE_ALIAS   0x00000FFF
 Source alias field (12 bits) in CAN identifier.
 

Detailed Description

Extract fields from the CAN 29-bit extended identifier.

Macro Definition Documentation

◆ MASK_CAN_STREAM_OR_DATAGRAM

#define MASK_CAN_STREAM_OR_DATAGRAM   0x01000000

Stream or datagram indicator in CAN identifier.

◆ MASK_CAN_PRIORITY

#define MASK_CAN_PRIORITY   0x00C00000

Priority field in CAN identifier.

◆ MASK_CAN_SIMPLE_PROTOCOL

#define MASK_CAN_SIMPLE_PROTOCOL   0x00010000

Simple protocol indicator in CAN identifier.

◆ MASK_CAN_DEST_ADDRESS_PRESENT

#define MASK_CAN_DEST_ADDRESS_PRESENT   0x00008000

Destination address present indicator in CAN identifier.

◆ MASK_CAN_EVENT_PRESENT

#define MASK_CAN_EVENT_PRESENT   0x00004000

Event ID present indicator in CAN identifier.

◆ MASK_CAN_PRIORITY_MODIFIER

#define MASK_CAN_PRIORITY_MODIFIER   0x00003000

Priority modifier field in CAN identifier.

◆ MASK_CAN_SOURCE_ALIAS

#define MASK_CAN_SOURCE_ALIAS   0x00000FFF

Source alias field (12 bits) in CAN identifier.


Copyright (c) 2026 Jim Kueneman all rights reserved. See the License