Package jmri.jmrix.nce
Class NceBinaryCommand
java.lang.Object
jmri.jmrix.nce.NceBinaryCommand
NCE Binary Commands
Also see NceMessage.java for additional commands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]accAiu2Read(int cabId) static byte[]accDecoder(int number, boolean closed) static byte[]accMemoryRead(int address) static byte[]accMemoryRead1(int address) Read one byte from NCE command station memorystatic byte[]accMemoryWrite1(int address, byte data) static byte[]accMemoryWrite2(int address, byte[] data) static byte[]accMemoryWrite4(int address, byte[] data) static byte[]accMemoryWrite8(int address, byte[] data) static byte[]accMemoryWriteN(int address, byte[] data) static byte[]accSetClock(int hours, int minutes) static byte[]accSetClock1224(boolean flag) static byte[]accSetClockRatio(int ratio) static byte[]static byte[]static byte[]Create NCE EPROM revision message.static byte[]nceLocoCmd(int locoAddr, byte locoSubCmd, byte locoData) static byte[]usbMemoryPointer(int cab, int loc) static byte[]usbMemoryRead(int num) static byte[]usbMemoryWrite1(byte data) static byte[]usbOpsModeAccy(int accyAddr, int cvAddr, int cvData) Create a NCE USB compatible ops mode accessory message.static byte[]usbOpsModeLoco(NceTrafficController tc, int locoAddr, int cvAddr, int cvData) Create a NCE USB compatible ops mode loco message.static byte[]usbSetCabId(int cab)
-
Constructor Details
-
NceBinaryCommand
public NceBinaryCommand()
-
-
Method Details
-
accDecoder
-
accMemoryRead
-
accMemoryRead1
Read one byte from NCE command station memory- Parameters:
address- address to read from- Returns:
- binary command to read one byte
-
accMemoryWriteN
-
accMemoryWrite8
-
accMemoryWrite4
-
accMemoryWrite2
-
accMemoryWrite1
-
accAiu2Read
-
usbSetCabId
-
usbMemoryWrite1
-
usbMemoryRead
-
usbMemoryPointer
-
accStopClock
-
accStartClock
-
accSetClock
-
accSetClock1224
-
accSetClockRatio
-
nceLocoCmd
-
getNceEpromRev
Create NCE EPROM revision message. The reply format is: VV.MM.mm- Returns:
- the revision message
-
usbOpsModeLoco
Create a NCE USB compatible ops mode loco message.- Parameters:
tc- traffic controller; ignoredlocoAddr- locomotive addresscvAddr- CV to setcvData- value to set CV to- Returns:
- ops mode message
-
usbOpsModeAccy
Create a NCE USB compatible ops mode accessory message.- Parameters:
accyAddr- locomotive addresscvAddr- CV to setcvData- value to set CV to- Returns:
- ops mode message
-