|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.citar.diablu.nxt.protocol.NXTCommand pt.citar.diablu.nxt.protocol.NXTCommandLSWrite
public class NXTCommandLSWrite
Represents the LS Write Command.
The response to this command (if required) is a NXTResponseStatus
.
NXTResponseStatus
Constructor Summary | |
---|---|
NXTCommandLSWrite()
|
|
NXTCommandLSWrite(byte inputPort,
byte txLength,
byte rxLength,
byte[] data,
boolean responseRequired)
Constructs a new NXTCommandLSWrite object with a given port, TX data length, RX data
length, data and resqponse requirement. |
Method Summary | |
---|---|
void |
setData(byte[] data)
Sets the data. |
void |
setRXLength(byte rxLength)
Sets the RX Data Length. |
void |
setTXLength(byte txLength)
Sets the TX Data Length. |
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTCommand |
---|
getPacketLength, isResponseRequired, sendCommand, setResponseRequired, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NXTCommandLSWrite()
public NXTCommandLSWrite(byte inputPort, byte txLength, byte rxLength, byte[] data, boolean responseRequired)
NXTCommandLSWrite
object with a given port, TX data length, RX data
length, data and resqponse requirement.
For LS communication on the NXT, data lengths are limited to 16 bytes
per command. Rx Data Length MUST be specified in the write command since reading from the device is
done on a master-slave basis.
inputPort
- The input port to send the command to.txLength
- Tx Data Length.rxLength
- Rx Data Length.data
- The data to send.responseRequired
- Indicates if a response to this command is required.Method Detail |
---|
public void setTXLength(byte txLength)
txLength
- The Tx data length.public void setRXLength(byte rxLength)
rxLength
- The Rx data length.public void setData(byte[] data)
data
- The data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |