Package jmri.jmrix.powerline.cp290
Class Constants
java.lang.Object
jmri.jmrix.powerline.cp290.Constants
Constants and functions specific to the CP290 interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcommandToText(int cmd, int level) Translate Function to Text.static StringdeviceToText(int hByte, int lByte) Translate Device Bits to Textstatic StringhouseCodeToText(int hC) Translate House Code to textstatic StringstatusToText(int s) Translate status to textstatic StringFormat a message nicely
-
Field Details
-
CMD_ON
- See Also:
-
CMD_OFF
- See Also:
-
CMD_DIM_R
- See Also:
-
CMD_DIM_S
- See Also:
-
-
Method Details
-
commandToText
Translate Function to Text.- Parameters:
cmd- command valuelevel- dim value- Returns:
- formatted command as text
-
houseCodeToText
Translate House Code to text- Parameters:
hC- housecode value- Returns:
- housecode as text
-
deviceToText
Translate Device Bits to Text- Parameters:
hByte- high bytelByte- low byte- Returns:
- text version of bytes
-
statusToText
Translate status to text- Parameters:
s- status value- Returns:
- status value as text
-
toMonitorString
Format a message nicely- Parameters:
m- message- Returns:
- message contents as text
-