Model Railroad System
2.2.2
|
MTI Header type. More...
Public Member Functions | |
MTIHeader (name,...) | |
Constructor: create a MTIHeader A 29-bit CAN Header specific to the OpenLCB is created. More... | |
getHeader () | |
Get the 29-bit header. More... | |
setHeader (header) | |
Decode the 29-bit header. More... | |
Private Attributes | |
canheader | |
The CANHeader component. More... | |
Static Private Attributes | |
static | MTI_CAN_SHIFT |
Bits 0-11 of the variable field are the MTI_CAN field. More... | |
static | MTI_CAN_MASK |
Bits 0-11 of the variable field are the MTI_CAN field. More... | |
static | FRAMETYPE_SHIFT |
Bits 12-14 of the variable field are the frame type field. More... | |
static | FRAMETYPE_MASK |
Bits 12-14 of the variable field are the frame type field. More... | |
MTI Header type.
Creates a 29-bit CAN header, specific to OpenLCB. The header is generated and decoded `‘on the fly’' from/to the supplied options:
lcc::MTIHeader::MTIHeader | ( | name | , |
... | |||
) |
Constructor: create a MTIHeader A 29-bit CAN Header specific to the OpenLCB is created.
name | The name of the instance. |
... | Options:
|
lcc::MTIHeader::getHeader | ( | ) |
Get the 29-bit header.
Most of the heavy lifting is handled in the canheader component.
lcc::MTIHeader::setHeader | ( | header | ) |
Decode the 29-bit header.
Most of the heavy lifting is handled in the canheader component.
header | The 29-bit header. |
|
private |
The CANHeader component.
Handles the header at the CAN level.
|
staticprivate |
Bits 12-14 of the variable field are the frame type field.
|
staticprivate |
Bits 12-14 of the variable field are the frame type field.
|
staticprivate |
Bits 0-11 of the variable field are the MTI_CAN field.
|
staticprivate |
Bits 0-11 of the variable field are the MTI_CAN field.