public class CmdBase extends Control.CommandGroup
Modifier and Type | Class and Description |
---|---|
static class |
CmdBase.BpsReply
Reply object returned by BPS.
|
ctl, msg
Modifier and Type | Method and Description |
---|---|
Response<java.lang.Void> |
configure()
Configures the base.
|
Response<CmdBase.BpsReply> |
dbgBpsCmdReply(int cmd,
byte[] data,
int expReply,
int expReplyLen)
Sends an BPS command, and returns a BPS reply (if successful).
|
Response<java.lang.String> |
dbgEdfaCmd(java.lang.String cmd)
Send an EDFA command, but w/o a reply.
|
Response<java.lang.String> |
dbgEdfaCmdReply(java.lang.String cmd)
Send an EDFA command, returning an reply.
|
Response<java.lang.Void> |
reset()
Resets the base module.
|
public Response<java.lang.Void> configure()
public Response<java.lang.Void> reset()
public Response<java.lang.String> dbgEdfaCmd(java.lang.String cmd)
public Response<java.lang.String> dbgEdfaCmdReply(java.lang.String cmd)
public Response<CmdBase.BpsReply> dbgBpsCmdReply(int cmd, byte[] data, int expReply, int expReplyLen)
data[3] = (byte) 0xA2; // write unsigned byte (as asigned)
int code = 0xFF & data[2]; // read signed byte, convert to unsigned.
cmd
- The command code.data
- The data attached to the command, or null if there is no data.expReply
- The expected reply code.