Package jmri.jmrix.can.cbus.node
Class CbusNodeConstants
java.lang.Object
jmri.jmrix.can.cbus.node.CbusNodeConstants
Static Methods relating to nodes ( modules ).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intNode Parameters Para 0 Number of parameters Para 1 The manufacturer ID Para 2 Minor code version as an alphabetic character (ASCII) Para 3 Manufacturer module identifier as a HEX numeric Para 4 Number of supported events as a HEX numeric Para 5 Number of Event Variables per event as a HEX numeric Para 6 Number of supported Node Variables as a HEX numeric Para 7 Major version Para 8 Node flags Para 9 Processor type Para 10 Bus type Para 11 load address, 4 bytes Para 15 CPU manufacturer's id as read from the chip config space, 4 bytes Para 19 CPU manufacturer code Para 20 Beta revision (numeric), or 0 if release Para 21 - 24 Zero filled spare Not readable by index: Para 25 - 26 Number of paranmeters can be read as parameter 0 Para 27 - 30 Name string base address Para 31 - 32 Checksum.static final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringgetBusType(int type) Return a string representation of a decoded Bus Typestatic StringgetManu(int man) Return a string representation of a decoded Module Manufacturerstatic StringgetModuleSupportLink(int man, int type) Return a string representation of Module Support Linkstatic StringgetModuleType(int man, int type) Return a string representation of a decoded Module Name for manufacturer MERG.static StringgetModuleTypeExtra(int man, int type) Return a string representation of extra module infostatic StringgetReservedModule(int modnum) Return a string representation of a reserved node numberstatic CbusNodeConstants.BackupTypelookupByName(String name) static voidSet traits for a node where there is a minor deviance to MERG CBUS protocol or provide extra info. which is missing for a known module firmware.
-
Field Details
-
NUM_PARAM_IDX
Node Parameters Para 0 Number of parameters Para 1 The manufacturer ID Para 2 Minor code version as an alphabetic character (ASCII) Para 3 Manufacturer module identifier as a HEX numeric Para 4 Number of supported events as a HEX numeric Para 5 Number of Event Variables per event as a HEX numeric Para 6 Number of supported Node Variables as a HEX numeric Para 7 Major version Para 8 Node flags Para 9 Processor type Para 10 Bus type Para 11 load address, 4 bytes Para 15 CPU manufacturer's id as read from the chip config space, 4 bytes Para 19 CPU manufacturer code Para 20 Beta revision (numeric), or 0 if release Para 21 - 24 Zero filled spare Not readable by index: Para 25 - 26 Number of paranmeters can be read as parameter 0 Para 27 - 30 Name string base address Para 31 - 32 Checksum. Para 1 - 32 must sum to zero- See Also:
-
MANU_ID_IDX
- See Also:
-
MINOR_VER_IDX
- See Also:
-
MODULE_ID_IDX
- See Also:
-
NUM_EV_IDX
- See Also:
-
EV_PER_EN_IDX
- See Also:
-
NUM_NV_IDX
- See Also:
-
MAJOR_VER_IDX
- See Also:
-
FLAGS_IDX
- See Also:
-
PROC_TYPE_IDX
- See Also:
-
BUS_TYPE_IDX
- See Also:
-
LOAD_ADDR_IDX
- See Also:
-
CPU_ID_IDX
- See Also:
-
CPU_CODE_IDX
- See Also:
-
BETA_REV_IDX
- See Also:
-
SPARE_IDX
- See Also:
-
PARAM_COUNT_IDX
- See Also:
-
NAME_STRING_BASE_IDX
- See Also:
-
PARAM_CHECK_IDX
- See Also:
-
-
Constructor Details
-
CbusNodeConstants
public CbusNodeConstants()
-
-
Method Details
-
setTraits
Set traits for a node where there is a minor deviance to MERG CBUS protocol or provide extra info. which is missing for a known module firmware.- Parameters:
node- The CbusNode object we are setting the traits for
-
getManu
Return a string representation of a decoded Module Manufacturer- Parameters:
man- manufacturer int- Returns:
- decoded CBUS message
-
getBusType
Return a string representation of a decoded Bus Type- Parameters:
type- Bus type- Returns:
- decoded CBUS message
-
getModuleType
Return a string representation of a decoded Module Name for manufacturer MERG.- Parameters:
man- int manufacturertype- module type int- Returns:
- decoded String module type name else empty string
-
getModuleTypeExtra
Return a string representation of extra module info- Parameters:
man- int manufacturer codetype- int module type- Returns:
- string value of extra module info
-
getModuleSupportLink
Return a string representation of Module Support Link- Parameters:
man- int manufacturer IDtype- int module type ID- Returns:
- string module support link, else empty string
-
getReservedModule
Return a string representation of a reserved node number- Parameters:
modnum- node number- Returns:
- reserved node number reason
-
displayPhrase
-
lookupByName
-