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.
- Author:
- Bob Jacobsen Copyright (C) 2007, 2008
|
Method Summary |
QsiMessage |
frame()
|
static QsiMessage |
getClearStatus()
|
static QsiMessage |
getEnableMain()
|
static QsiMessage |
getEraseFlash(int addr,
int rows)
|
static QsiMessage |
getExitProgMode()
|
static QsiMessage |
getKillMain()
|
int |
getOpCode()
|
String |
getOpCodeHex()
|
static QsiMessage |
getProgMode()
|
static QsiMessage |
getReadBootVersion()
|
static QsiMessage |
getReadCV(int cv,
int mode)
|
static QsiMessage |
getReadRegister(int reg)
|
static QsiMessage |
getReset()
|
static QsiMessage |
getV4EndOfFile()
|
static QsiMessage |
getv4ExtAddr()
|
static QsiMessage |
getV4WriteFlash(int addr,
int[] data,
int type)
|
static QsiMessage |
getWriteCV(int cv,
int val,
int mode)
|
static QsiMessage |
getWriteEE(int addr,
int[] data)
|
static QsiMessage |
getWriteFlash(int addr,
int[] data)
|
static QsiMessage |
getWriteRegister(int reg,
int val)
|
boolean |
isEnableMain()
|
boolean |
isKillMain()
|
void |
setAddress(int i)
|
void |
setChecksum()
|
void |
setData(int[] d)
|
void |
setLength(int i)
|
void |
setOpCode(int i)
|
void |
setV4Address(int i)
|
void |
setV4Checksum(int length,
int addr,
int type,
int[] data)
|
void |
setV4Data(int[] d)
|
void |
setV4Length(int i)
|
void |
setV4RecType(int i)
|
String |
toString()
|
QsiMessage |
v4frame()
|
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
QsiMessage
public QsiMessage(int i)
QsiMessage
public QsiMessage(String s)
QsiMessage
public QsiMessage(QsiMessage m)
setOpCode
public void setOpCode(int i)
getOpCode
public int getOpCode()
getOpCodeHex
public 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 String toString()
- Specified by:
toString in interface Message- Overrides:
toString in class Object
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,
int mode)
getWriteCV
public static QsiMessage getWriteCV(int cv,
int val,
int 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()
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: