Package jmri.jmrix.qsi
Class QsiMessage
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.qsi.QsiMessage
-
- All Implemented Interfaces:
Message
public class QsiMessage extends AbstractMessage
Encodes a message to an QSI command station.The
QsiReply
class handles the response from the command station.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CR
static int
DLE
static int
ER_FLASH
static int
ETX
static int
LF
(package private) static int
MAXSIZE
static int
RD_VER
static int
STX
static int
WT_EEDATA
static int
WT_FLASH
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description QsiMessage(int i)
QsiMessage(java.lang.String s)
QsiMessage(QsiMessage m)
-
Method Summary
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode, setElement
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.Message
toMonitorString
-
-
-
-
Field Detail
-
STX
public static final int STX
- See Also:
- Constant Field Values
-
DLE
public static final int DLE
- See Also:
- Constant Field Values
-
ETX
public static final int ETX
- See Also:
- Constant Field Values
-
CR
public static final int CR
- See Also:
- Constant Field Values
-
LF
public static final int LF
- See Also:
- Constant Field Values
-
RD_VER
public static final int RD_VER
- See Also:
- Constant Field Values
-
WT_FLASH
public static final int WT_FLASH
- See Also:
- Constant Field Values
-
ER_FLASH
public static final int ER_FLASH
- See Also:
- Constant Field Values
-
WT_EEDATA
public static final int WT_EEDATA
- See Also:
- Constant Field Values
-
MAXSIZE
static final int MAXSIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QsiMessage
public QsiMessage(int i)
-
QsiMessage
public QsiMessage(java.lang.String s)
-
QsiMessage
public QsiMessage(QsiMessage m)
-
-
Method Detail
-
setOpCode
public void setOpCode(int i)
-
getOpCode
public int getOpCode()
-
getOpCodeHex
public java.lang.String getOpCodeHex()
-
setLength
public void setLength(int i)
-
setV4Length
public void setV4Length(int i)
-
setAddress
public void setAddress(int i)
-
setV4Address
public void setV4Address(int i)
-
setV4RecType
public void setV4RecType(int i)
-
setData
public void setData(int[] d)
-
setV4Data
public void setV4Data(int[] d)
-
setChecksum
public void setChecksum()
-
setV4Checksum
public void setV4Checksum(int length, int addr, int type, int[] data)
-
frame
public QsiMessage frame()
-
v4frame
public QsiMessage v4frame()
-
toString
public java.lang.String toString(QsiTrafficController controller)
-
isKillMain
public boolean isKillMain()
-
isEnableMain
public boolean isEnableMain()
-
getEnableMain
public static QsiMessage getEnableMain()
-
getKillMain
public static QsiMessage getKillMain()
-
getProgMode
public static QsiMessage getProgMode()
-
getExitProgMode
public static QsiMessage getExitProgMode()
-
getClearStatus
public static QsiMessage getClearStatus()
-
getReadCV
public static QsiMessage getReadCV(int cv, ProgrammingMode mode)
-
getWriteCV
public static QsiMessage getWriteCV(int cv, int val, ProgrammingMode mode)
-
getReadRegister
public static QsiMessage getReadRegister(int reg)
-
getWriteRegister
public static QsiMessage getWriteRegister(int reg, int val)
-
getReadBootVersion
public static QsiMessage getReadBootVersion()
-
getWriteFlash
public static QsiMessage getWriteFlash(int addr, int[] data)
-
getV4WriteFlash
public static QsiMessage getV4WriteFlash(int addr, int[] data, int type)
-
getV4EndOfFile
public static QsiMessage getV4EndOfFile()
-
getv4ExtAddr
public static QsiMessage getv4ExtAddr()
-
getEraseFlash
public static QsiMessage getEraseFlash(int addr, int rows)
-
getWriteEE
public static QsiMessage getWriteEE(int addr, int[] data)
-
getReset
public static QsiMessage getReset()
-
-