pt.citar.diablu.nxt.protocol
Class NXTResponseLSRead

java.lang.Object
  extended by pt.citar.diablu.nxt.protocol.NXTResponse
      extended by pt.citar.diablu.nxt.protocol.NXTResponseLSRead

public class NXTResponseLSRead
extends NXTResponse

Encapsulates the response to the GETINPUTVALUES command to the NXTBrick.

Author:
Jorge Cardoso

Field Summary
 
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
 
Constructor Summary
NXTResponseLSRead()
           
 
Method Summary
 int getBytesRead()
          Returns the number of bytes read.
 byte[] getData()
          Returns the Rx data.
 
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTResponse
getStatus, getStatusDescription, receiveResponse, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NXTResponseLSRead

public NXTResponseLSRead()
Method Detail

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