pt.citar.diablu.nxt.protocol
Class NXTResponseLSRead
java.lang.Object
pt.citar.diablu.nxt.protocol.NXTResponse
pt.citar.diablu.nxt.protocol.NXTResponseLSRead
public class NXTResponseLSRead
- extends NXTResponse
Encapsulates the response to the GETINPUTVALUES command to the NXTBrick.
- Author:
- Jorge Cardoso
Fields inherited from class pt.citar.diablu.nxt.protocol.NXTResponse |
ATTEMPTED_TO_ACCESS_INVALID_FIELD_OF_A_STRUCTURE, BAD_ARGUMENTS, BAD_INPUT_OR_OUTPUT_SPECIFIED, COMMUNICATION_BUS_ERROR, DATA_CONTAINS_OUT_OF_RANGE_VALUES, ILLEGAL_MAILBOX_QUEUE_ID_SPECIFIED, ILLEGAL_SIZE_SPECIFIED, INSANE_PACKET, INSUFFICIENT_MEMORY_AVAILABLE, NO_ACTIVE_PROGRAM, NO_FREE_MEMORY_IN_COMMUNICATION_BUFFER, PENDING_COMMUNICATION_TRANSACTION_IN_PROGRESS, REQUEST_FAILED, SPECIFIED_CHANNEL_CONNECTION_IS_NOT_VALID, SPECIFIED_CHANNEL_CONNECTION_NOT_CONFIGURED_OR_BUSY, SPECIFIED_MAILBOX_QUEUE_IS_EMPTY, SUCCESS, UNKNOWN_COMMAND_OPCODE |
Method Summary |
int |
getBytesRead()
Returns the number of bytes read. |
byte[] |
getData()
Returns the Rx data. |
NXTResponseLSRead
public NXTResponseLSRead()
getBytesRead
public int getBytesRead()
- Returns the number of bytes read.
- Returns:
- The number of bytes read.
getData
public byte[] getData()
- Returns the Rx data.
- Returns:
- The Rx data. Allways a 16 byte array.
Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014