use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class ClockMonPanel method issueReadAllRequest.
private void issueReadAllRequest() {
if (!waitingForCmdRead) {
byte[] cmd = jmri.jmrix.nce.NceBinaryCommand.accMemoryRead(CS_CLOCK_MEM_ADDR);
NceMessage cmdNce = jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CS_CLOCK_MEM_SIZE);
waiting++;
waitingForCmdRead = true;
tc.sendNceMessage(cmdNce, this);
}
updateTimeFromRead = true;
updateRatioFromRead = true;
updateFormatFromRead = true;
updateStatusFromRead = true;
}
use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class ClockMonPanel method issueClockStop.
private void issueClockStop() {
byte[] cmd = jmri.jmrix.nce.NceBinaryCommand.accStopClock();
NceMessage cmdNce = jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CMD_CLOCK_SET_REPLY_SIZE);
waiting++;
waitingForCmdStop = true;
tc.sendNceMessage(cmdNce, this);
}
use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class NceConsistBackup method getNceConsist.
// Read 16 bytes of NCE CS memory
private void getNceConsist(int cN) {
NceMessage m = readConsistMemory(cN);
tc.sendNceMessage(m, this);
// wait for read to complete
readWait();
}
use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class NceShowCabPanel method readAiuData.
// USB Read AIU
private void readAiuData(int cabId) {
// Expect 2 byte response
replyLen = NceMessage.REPLY_2;
waiting++;
byte[] bl = NceBinaryCommand.accAiu2Read(cabId);
NceMessage m = NceMessage.createBinaryMessage(tc, bl, replyLen);
tc.sendNceMessage(m, this);
}
use of jmri.jmrix.nce.NceMessage in project JMRI by JMRI.
the class NcePacketGenPanelTest method testPacketNull.
public void testPacketNull() {
NcePacketGenPanel t = new NcePacketGenPanel();
NceMessage m = t.createPacket("");
Assert.assertEquals("null pointer", null, m);
}
Aggregations