Class CbusAddress

java.lang.Object
jmri.jmrix.can.cbus.CbusAddress

public class CbusAddress
extends Object
Utilities for handling CBUS addresses.

CBUS frames have a one byte command and length, optionally followed by data bytes. JMRI maps these into address strings.

Forms:

Full hex string preceeded by "X"
Needs to be pairs of digits: 0123, not 123
+/-ddd
ddd is node*100,000 (a.k.a NODEFACTOR) + event
+/-nNNNeEEE
where NNN is a node number and EEE is an event number
If ddd < 65536 then the CBUS address is taken to represent a short event.