|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.nce.NceBinaryCommand
public class NceBinaryCommand
NCE Binary Commands Also see NceMessage.java for additional commands
| Constructor Summary | |
|---|---|
NceBinaryCommand()
|
|
| Method Summary | |
|---|---|
static byte[] |
accDecoder(int number,
boolean closed)
|
static byte[] |
accMemoryRead(int address)
|
static byte[] |
accMemoryRead1(int address)
Read one byte from NCE command station memory |
static byte[] |
accMemoryWrite1(int address)
|
static byte[] |
accMemoryWrite2(int address)
|
static byte[] |
accMemoryWrite4(int address)
|
static byte[] |
accMemoryWrite8(int address)
|
static byte[] |
accMemoryWriteN(int address,
int num)
|
static byte[] |
accSetClock(int hours,
int minutes)
|
static byte[] |
accSetClock1224(boolean flag)
|
static byte[] |
accSetClockRatio(int ratio)
|
static byte[] |
accStartClock()
|
static byte[] |
accStopClock()
|
static byte[] |
getNceEpromRev()
create NCE EPROM revision message, Reply Format: VV.MM.mm |
static byte[] |
nceLocoCmd(int locoAddr,
byte locoSubCmd,
byte locoData)
|
static byte[] |
usbOpsModeAccy(int accyAddr,
int cvAddr,
int cvData)
create an NCE USB compatible ops mode accy message |
static byte[] |
usbOpsModeLoco(NceTrafficController tc,
int locoAddr,
int cvAddr,
int cvData)
create an NCE USB compatible ops mode loco message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int READ_CLOCK_CMD
public static final int STOP_CLOCK_CMD
public static final int START_CLOCK_CMD
public static final int SET_CLOCK_CMD
public static final int CLOCK_1224_CMD
public static final int CLOCK_RATIO_CMD
public static final int READ_AUI4_CMD
public static final int DUMMY_CMD
public static final int WRITEn_CMD
public static final int READ16_CMD
public static final int WRITE1_CMD
public static final int WRITE2_CMD
public static final int WRITE4_CMD
public static final int WRITE8_CMD
public static final int READ1_CMD
public static final int ACC_CMD
public static final int LOCO_CMD
public static final int SW_REV_CMD
public static final int OPS_PROG_LOCO_CMD
public static final int OPS_PROG_ACCY_CMD
public static final byte LOCO_CMD_REV_28SPEED
public static final byte LOCO_CMD_FWD_28SPEED
public static final byte LOCO_CMD_REV_128SPEED
public static final byte LOCO_CMD_FWD_128SPEED
public static final byte LOCO_CMD_REV_ESTOP
public static final byte LOCO_CMD_FWD_ESTOP
public static final byte LOCO_CMD_FG1
public static final byte LOCO_CMD_FG2
public static final byte LOCO_CMD_FG3
public static final byte LOCO_CMD_FG4
public static final byte LOCO_CMD_FG5
public static final byte LOCO_CMD_REV_CONSIST_LEAD
public static final byte LOCO_CMD_FWD_CONSIST_LEAD
public static final byte LOCO_CMD_REV_CONSIST_REAR
public static final byte LOCO_CMD_FWD_CONSIST_REAR
public static final byte LOCO_CMD_REV_CONSIST_MID
public static final byte LOCO_CMD_FWD_CONSIST_MID
public static final byte LOCO_CMD_DELETE_LOCO_CONSIST
public static final byte LOCO_CMD_KILL_CONSIST
| Constructor Detail |
|---|
public NceBinaryCommand()
| Method Detail |
|---|
public static byte[] accDecoder(int number,
boolean closed)
public static byte[] accMemoryRead(int address)
public static byte[] accMemoryRead1(int address)
address -
public static byte[] accMemoryWriteN(int address,
int num)
public static byte[] accMemoryWrite8(int address)
public static byte[] accMemoryWrite4(int address)
public static byte[] accMemoryWrite2(int address)
public static byte[] accMemoryWrite1(int address)
public static byte[] accStopClock()
public static byte[] accStartClock()
public static byte[] accSetClock(int hours,
int minutes)
public static byte[] accSetClock1224(boolean flag)
public static byte[] accSetClockRatio(int ratio)
public static byte[] nceLocoCmd(int locoAddr,
byte locoSubCmd,
byte locoData)
public static byte[] getNceEpromRev()
public static byte[] usbOpsModeLoco(NceTrafficController tc,
int locoAddr,
int cvAddr,
int cvData)
locoAddr - cvAddr - cvData -
public static byte[] usbOpsModeAccy(int accyAddr,
int cvAddr,
int cvData)
accyAddr - cvAddr - cvData -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||