Class Constants

java.lang.Object
jmri.jmrix.powerline.cp290.Constants

public class Constants extends Object
Constants and functions specific to the CP290 interface
  • Field Details

  • Method Details

    • commandToText

      public static String commandToText(int cmd, int level)
      Translate Function to Text.
      Parameters:
      cmd - command value
      level - dim value
      Returns:
      formatted command as text
    • houseCodeToText

      public static String houseCodeToText(int hC)
      Translate House Code to text
      Parameters:
      hC - housecode value
      Returns:
      housecode as text
    • deviceToText

      public static String deviceToText(int hByte, int lByte)
      Translate Device Bits to Text
      Parameters:
      hByte - high byte
      lByte - low byte
      Returns:
      text version of bytes
    • statusToText

      public static String statusToText(int s)
      Translate status to text
      Parameters:
      s - status value
      Returns:
      status value as text
    • toMonitorString

      public static String toMonitorString(Message m)
      Format a message nicely
      Parameters:
      m - message
      Returns:
      message contents as text