/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/UniversalReadParamSetResponseFrame.java |
---|
File deleted |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/UniversalWriteParamSetResponseFrame.java |
---|
File deleted |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/UniversalReadParamSetRequestFrame.java |
---|
File deleted |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/UniversalWriteParamSetRequestFrame.java |
---|
File deleted |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/ReadIMUConfigurationRequestFrame.java |
---|
0,0 → 1,18 |
package dongfang.mkt.frames; |
import java.io.IOException; |
import dongfang.mkt.RequestFrameVisitor; |
public class ReadIMUConfigurationRequestFrame extends RequestFrame { |
public ReadIMUConfigurationRequestFrame() { |
super(FC_ADDRESS); |
} |
@Override |
public void accept(RequestFrameVisitor o) throws IOException { |
o.visit(this); |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/ReadIMUConfigurationResponseFrame.java |
---|
0,0 → 1,40 |
package dongfang.mkt.frames; |
public class ReadIMUConfigurationResponseFrame extends ResponseFrame { |
private int configurationVersion; |
private int length; |
private int[] data; |
public ReadIMUConfigurationResponseFrame(int address) { |
super(address); |
} |
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof ReadIMUConfigurationRequestFrame; |
} |
public int getConfigurationVersion() { |
return configurationVersion; |
} |
public void setConfigurationVersion(int configurationVersion) { |
this.configurationVersion = configurationVersion; |
} |
public int getConfigurationSetLength() { |
return length; |
} |
public void setConfigurationSetLength(int configurationSetLength) { |
this.length = configurationSetLength; |
} |
public int[] getData() { |
return data; |
} |
public void setData(int[] data) { |
this.data = data; |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/ReadParamSetRequestFrame.java |
---|
6,11 → 6,22 |
public class ReadParamSetRequestFrame extends RequestFrame { |
ReadParamSetRequestFrame(int address) { |
super(address); |
private int configurationSetNumber; |
public ReadParamSetRequestFrame() { |
super(FC_ADDRESS); |
} |
@Override |
public void accept(RequestFrameVisitor o) throws IOException { |
o.visit(this); |
} |
public int getConfigurationSetNumber() { |
return configurationSetNumber; |
} |
public void setConfigurationSetNumber(int number) { |
this.configurationSetNumber = number; |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/ReadParamSetResponseFrame.java |
---|
0,0 → 1,49 |
package dongfang.mkt.frames; |
public class ReadParamSetResponseFrame extends ResponseFrame { |
private int configurationSetNumber; |
private int configurationVersion; |
private int length; |
private int[] data; |
public ReadParamSetResponseFrame(int address) { |
super(address); |
} |
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof ReadParamSetRequestFrame; |
} |
public int getConfigurationSetNumber() { |
return configurationSetNumber; |
} |
public void setConfigurationSetNumber(int configurationSetNumber) { |
this.configurationSetNumber = configurationSetNumber; |
} |
public int getConfigurationVersion() { |
return configurationVersion; |
} |
public void setConfigurationVersion(int configurationVersion) { |
this.configurationVersion = configurationVersion; |
} |
public int getConfigurationSetLength() { |
return length; |
} |
public void setConfigurationSetLength(int configurationSetLength) { |
this.length = configurationSetLength; |
} |
public int[] getData() { |
return data; |
} |
public void setData(int[] data) { |
this.data = data; |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/RequestFrameVisitor.java |
---|
17,8 → 17,8 |
void visit(ExternalControlRequestFrame f) throws IOException; |
void visit(ResetRequestFrame f) throws IOException; |
void visit(ChangeParameterSetRequestFrame f) throws IOException; |
void visit(UniversalReadParamSetRequestFrame f) throws IOException; |
void visit(UniversalWriteParamSetRequestFrame f) throws IOException; |
void visit(ReadParamSetRequestFrame f) throws IOException; |
void visit(WriteParamSetRequestFrame f) throws IOException; |
void visit(SetCompassHeadingRequestFrame f) throws IOException; |
void visit(ReadExternalControlRequestFrame f) throws IOException; |
void visit(OSDDataRequestFrame f) throws IOException; |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/WriteIMUConfigurationResponseFrame.java |
---|
0,0 → 1,23 |
package dongfang.mkt.frames; |
public class WriteIMUConfigurationResponseFrame extends ResponseFrame { |
private int parameterSetNumber; |
private boolean wasAccepted; |
public WriteIMUConfigurationResponseFrame(int address) { |
super(address); |
} |
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof WriteIMUConfigurationRequestFrame; |
} |
public boolean wasAccepted() { |
return wasAccepted; |
} |
public void setWasAccepted(boolean wasAccepted) { |
this.wasAccepted = wasAccepted; |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/WriteParamSetRequestFrame.java |
---|
6,11 → 6,44 |
public class WriteParamSetRequestFrame extends RequestFrame { |
WriteParamSetRequestFrame(int address) { |
super(address); |
private char[] name; |
private int[] data; |
private int configurationSetNumber; |
private int configurationVersionNumber; |
public WriteParamSetRequestFrame(int configurationVersionNumber, char[] name, int[] data) { |
super(FC_ADDRESS); |
this.configurationVersionNumber = configurationVersionNumber; |
this.name = name; |
this.data = data; |
} |
@Override |
public void accept(RequestFrameVisitor o) throws IOException { |
o.visit(this); |
} |
public int getConfigurationSetNumber() { |
return configurationSetNumber; |
} |
public void setConfigurationSetNumber(int n) { |
this.configurationSetNumber = n ; |
} |
public int getConfigurationVersionNumber() { |
return configurationVersionNumber; |
} |
public int getDataLength() { |
return data.length; |
} |
public int[] getData() { |
return data; |
} |
public char[] getName() { |
return name; |
} |
} |
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/WriteParamSetResponseFrame.java |
---|
0,0 → 1,26 |
package dongfang.mkt.frames; |
public class WriteParamSetResponseFrame extends ResponseFrame { |
private int parameterSetNumber; |
public WriteParamSetResponseFrame(int address) { |
super(address); |
} |
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof WriteParamSetRequestFrame; |
} |
public void setParameterSetNumber(int parameterSetNumber) { |
this.parameterSetNumber = parameterSetNumber; |
} |
public int getParameterSetNumber() { |
return this.parameterSetNumber; |
} |
public boolean wasAccepted() { |
return parameterSetNumber != 0; |
} |
} |