1 package org.lsst.ccs.command.demo;
2
3 import org.lsst.ccs.command.annotations.Command;
4 import org.lsst.ccs.command.annotations.Argument;
5
6
7
8
9
10
11 public class RCMReg {
12
13 @Command(description = "Connect to an RCM")
14 public void connect(
15 @Argument(name = "id", description = "The id of the RCM") int id) {
16 }
17
18 @Command(description = "Show the current connection parameters")
19 public void show() {
20 }
21
22 @Command(description = "Read and display registers from the RCM")
23 public void read(
24 @Argument(name = "address", description = "Read and display registers from the RCM") int address,
25 @Argument(name = "count", description = "The number of registers to read (default 1)", defaultValue = "1") int count) {
26 }
27
28
29 @Command(description = "Write to registers on the RCM")
30 private void write(
31 @Argument(name = "address", description = "The address of the first register to write") int address,
32 @Argument(name = "value", description = "The value(s) to write") int[] value) {
33 }
34 }