uint16_t NodeAlias
Alias to a 48-bit NMRAnet Node ID type.
static CanFrameType get_can_frame_type(uint32_t can_id)
Get the CAN frame type field value of the CAN ID.
static uint32_t can_identifier(Defs::MTI mti, NodeAlias src)
Get the CAN identifier from an NMRAnet mti and source alias.
static CanMTI get_mti(uint32_t can_id)
Get the MTI field value of the CAN ID.
@ DATAGRAM_MIDDLE_FRAME
middle frame of multi-frame datagram
@ DATAGRAM_FINAL_FRAME
last frame of multi-frame datagram
@ DATAGRAM_FIRST_FRAME
first frame of multi-frame datagram
@ GLOBAL_ADDRESSED
most CAN frame types fall in this category
@ STREAM_DATA
stream data frame
@ DATAGRAM_ONE_FRAME
a single frame datagram
static Defs::MTI nmranet_mti(uint32_t can_id)
Get the NMRAnet MTI from a can identifier.
@ SRC_MASK
mask for source field of CAN ID
@ FRAME_TYPE_SHIFT
shift for frame type field of CAN ID
@ MTI_MASK
mask for MTI field of CAN ID
@ CAN_FRAME_TYPE_SHIFT
shift for can frame type field of CAN ID
@ PRIORITY_SHIFT
shift for priority field of CAN ID
@ MTI_SHIFT
shift for MTI field of CAN ID
@ SRC_SHIFT
shift for source field of CAN ID
MTI
Known Message type indicators.
@ MTI_STREAM_DATA
stream data