Ejemplo n.º 1
0
 private void issueClockStart() {
   byte[] cmd = jmri.jmrix.nce.NceBinaryCommand.accStartClock();
   NceMessage cmdNce =
       jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CMD_CLOCK_SET_REPLY_SIZE);
   waiting++;
   waitingForCmdStart = true;
   tc.sendNceMessage(cmdNce, this);
 }
Ejemplo n.º 2
0
 @SuppressWarnings("unused")
 private void issueClock1224(boolean mode) {
   byte[] cmd = jmri.jmrix.nce.NceBinaryCommand.accSetClock1224(mode);
   NceMessage cmdNce =
       jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CMD_CLOCK_SET_REPLY_SIZE);
   waiting++;
   waitingForCmd1224 = true;
   tc.sendNceMessage(cmdNce, this);
 }
Ejemplo n.º 3
0
 private void issueClockRatio(int r) {
   log.debug("sending ratio " + r + " to nce cmd station");
   byte[] cmd = jmri.jmrix.nce.NceBinaryCommand.accSetClockRatio(r);
   NceMessage cmdNce =
       jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CMD_CLOCK_SET_REPLY_SIZE);
   waiting++;
   waitingForCmdRatio = true;
   tc.sendNceMessage(cmdNce, this);
 }
Ejemplo n.º 4
0
 private void issueReadOnlyRequest() {
   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);
     //			log.debug("issueReadOnlyRequest at " + internalClock.getTime());
   }
 }
Ejemplo n.º 5
0
 private void issueClockSetMem(int hh, int mm, int ss) {
   byte[] cmd =
       jmri.jmrix.nce.NceBinaryCommand.accMemoryWriteN(CS_CLOCK_MEM_ADDR + CS_CLOCK_SECONDS, 3);
   cmd[4] = (byte) ss;
   cmd[5] = (byte) mm;
   cmd[6] = (byte) hh;
   NceMessage cmdNce =
       jmri.jmrix.nce.NceMessage.createBinaryMessage(tc, cmd, CMD_MEM_SET_REPLY_SIZE);
   waiting++;
   waitingForCmdTime = true;
   tc.sendNceMessage(cmdNce, this);
 }