Implements a CAN Alias.
More...
Implements a CAN Alias.
Options:
- -nid The Node ID that the computer will assume in the format of
hh:hh:hh:hh:hh:hh
which is a 48 bit number expressed as 6 pairs of hexadecimal digits separacted by colons (:).
◆ CanAlias()
lcc::CanAlias::CanAlias |
( |
name |
, |
|
|
|
... |
|
) |
| |
Construct a CAN Alias.
- Parameters
-
name | The NodeID |
... | Options
- -nid The Node ID that the computer will assume in the format of
hh:hh:hh:hh:hh:hh which is a 48 bit number expressed as 6 pairs of hexadecimal digits separacted by colons (:).
|
References i.
◆ _peelnid()
lcc::CanAlias::_peelnid |
( |
value |
| ) |
|
Peel the Node ID into bytes and initializing the 48 bit random number seed for alias generation.
◆ getMyAlias()
lcc::CanAlias::getMyAlias |
( |
| ) |
|
Return the current alias value.
- Returns
- The 12 bit node id alias.
◆ getMyNIDList()
lcc::CanAlias::getMyNIDList |
( |
| ) |
|
Return the NID list.
- Returns
- The 6 byte list containing the NID.
◆ getNextAlias()
lcc::CanAlias::getNextAlias |
( |
| ) |
|
◆ validate()
static lcc::CanAlias::validate |
( |
object |
| ) |
|
|
static |
Validate the object as a CanAlias object.
- Parameters
-
◆ lfsr1
Sequence value, upper 24 bits.
◆ lfsr2
Sequence value, lower 24 bits.
◆ myalias
◆ nidlist
The Node ID as a list of 6 bytes.