Model Railroad System
2.2.1
|
MTI Header type, detailed version. More...
Public Member Functions | |
MTIDetail (name,...) | |
Constructor: create a MTIDetail object. More... | |
getHeader (CANp=1) | |
Get the 29-bit CAN header or 16-bit MTI. More... | |
setHeader (header) | |
Decode the 29-bit header. More... | |
Private Attributes | |
mtiheader | |
the MTIHeader component. More... | |
Static Private Attributes | |
static | SPECIAL_MASK |
The Special bit is bit 13. More... | |
static | STREAMDG_MASK |
The Stream or Datagram bit is bit 12. More... | |
static | PRIORITY_SHIFT |
The priority is bits 10-11 of the MTI_CAN. More... | |
static | PRIORITY_MASK |
The priority is bits 10-11 of the MTI_CAN. More... | |
static | TYPEWITHIN_SHIFT |
The type within priority field is bits 5-9 of the MTI_CAN. More... | |
static | TYPEWITHIN_MASK |
The type within priority field is bits 5-9 of the MTI_CAN. More... | |
static | SIMPLE_SHIFT |
The simple bit is bit 4 of the MTI_CAN. More... | |
static | SIMPLE_MASK |
The simple bit is bit 4 of the MTI_CAN. More... | |
static | ADDRESSP_SHIFT |
The address present bit is bit 3 of the MTI_CAN. More... | |
static | ADDRESSP_MASK |
The address present bit is bit 3 of the MTI_CAN. More... | |
static | EVENTP_SHIFT |
The event present bit is bit 2 of the MTI_CAN. More... | |
static | EVENTP_MASK |
The event present bit is bit 2 of the MTI_CAN. More... | |
static | MODIFIER_SHIFT |
The modifier is bits 0-1 of the MTI_CAN. More... | |
static | MODIFIER_MASK |
The modifier is bits 0-1 of the MTI_CAN. More... | |
static | DESTID_SHIFT |
The destid is bits 0-11 of the MTI_CAN. More... | |
static | DESTID_MASK |
The destid is bits 0-11 of the MTI_CAN. More... | |
MTI Header type, detailed version.
Creates a 29-bit CAN header, specific to OpenLCB. The header is generated and decoded `‘on the fly’' from/to the supplied options:
lcc::MTIDetail::MTIDetail | ( | name | , |
... | |||
) |
Constructor: create a MTIDetail object.
A 29-bit CAN Header specific to the OpenLCB is created, using details for a MTI frame.
name | The name of the instance. |
... | Options:
|
lcc::MTIDetail::getHeader | ( | CANp | = 1 | ) |
Get the 29-bit CAN header or 16-bit MTI.
Most of the heavy lifting is handled in the mtiheader component.
CANp | Specify whether we want a 29-bit CAN header or a 16-bit MTI. |
lcc::MTIDetail::setHeader | ( | header | ) |
Decode the 29-bit header.
Most of the heavy lifting is handled in the mtiheader component.
header | The 29-bit header. |
|
staticprivate |
The address present bit is bit 3 of the MTI_CAN.
|
staticprivate |
The address present bit is bit 3 of the MTI_CAN.
|
staticprivate |
The destid is bits 0-11 of the MTI_CAN.
|
staticprivate |
The destid is bits 0-11 of the MTI_CAN.
|
staticprivate |
The event present bit is bit 2 of the MTI_CAN.
|
staticprivate |
The event present bit is bit 2 of the MTI_CAN.
|
staticprivate |
The modifier is bits 0-1 of the MTI_CAN.
|
staticprivate |
The modifier is bits 0-1 of the MTI_CAN.
|
private |
|
staticprivate |
The priority is bits 10-11 of the MTI_CAN.
|
staticprivate |
The priority is bits 10-11 of the MTI_CAN.
|
staticprivate |
The simple bit is bit 4 of the MTI_CAN.
|
staticprivate |
The simple bit is bit 4 of the MTI_CAN.
|
staticprivate |
The Special bit is bit 13.
|
staticprivate |
The Stream or Datagram bit is bit 12.
|
staticprivate |
The type within priority field is bits 5-9 of the MTI_CAN.
|
staticprivate |
The type within priority field is bits 5-9 of the MTI_CAN.