com.rapplogic.xbee.api.wpan
Class RxResponseIoSample

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.wpan.RxBaseResponse
          extended by com.rapplogic.xbee.api.wpan.RxResponseIoSample
All Implemented Interfaces:
NoRequestResponse, java.io.Serializable

public class RxResponseIoSample
extends RxBaseResponse
implements NoRequestResponse

Series 1 XBee. Represents an I/O sample

See http://code.google.com/p/xbee-api/wiki/XBeePins for information on configuring the XBee for digital/analog inputs.

API ID: 64-bit 0x82, 16-bit: 0x83

Author:
andrew
See Also:
Serialized Form

Field Summary
static int ADC_CHANNEL1
           
static int DIO_CHANNEL1
           
 
Constructor Summary
RxResponseIoSample()
           
 
Method Summary
 boolean containsAnalog()
          Return true if this packet contains at least one analog sample
 boolean containsDigital()
          Returns true if this packet contains at least one digital sample
 int getChannelIndicator1()
           
 int getChannelIndicator2()
           
 IoSample[] getSamples()
           
 boolean isA0Enabled()
           
 boolean isA1Enabled()
           
 boolean isA2Enabled()
           
 boolean isA3Enabled()
           
 boolean isA4Enabled()
           
 boolean isA5Enabled()
           
 boolean isAnalogEnabled(int pin)
           
 boolean isD0Enabled()
           
 boolean isD1Enabled()
           
 boolean isD2Enabled()
           
 boolean isD3Enabled()
           
 boolean isD4Enabled()
           
 boolean isD5Enabled()
           
 boolean isD6Enabled()
           
 boolean isD7Enabled()
           
 boolean isD8Enabled()
           
 boolean isDigitalEnabled(int pin)
           
 void parse(IIntArrayInputStream ps)
           
 void setChannelIndicator1(int channelIndicator1)
           
 void setChannelIndicator2(int channelIndicator2)
           
 void setSamples(IoSample[] samples)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.wpan.RxBaseResponse
getOptions, getRssi, getSourceAddress, isAddressBroadcast, isPanBroadcast, setOptions, setRssi, setSourceAddress
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADC_CHANNEL1

public static final int ADC_CHANNEL1
See Also:
Constant Field Values

DIO_CHANNEL1

public static final int DIO_CHANNEL1
See Also:
Constant Field Values
Constructor Detail

RxResponseIoSample

public RxResponseIoSample()
Method Detail

parse

public void parse(IIntArrayInputStream ps)
           throws java.io.IOException
Throws:
java.io.IOException

getSamples

public IoSample[] getSamples()

setSamples

public void setSamples(IoSample[] samples)

isDigitalEnabled

public boolean isDigitalEnabled(int pin)

isD0Enabled

public boolean isD0Enabled()

isD1Enabled

public boolean isD1Enabled()

isD2Enabled

public boolean isD2Enabled()

isD3Enabled

public boolean isD3Enabled()

isD4Enabled

public boolean isD4Enabled()

isD5Enabled

public boolean isD5Enabled()

isD6Enabled

public boolean isD6Enabled()

isD7Enabled

public boolean isD7Enabled()

isD8Enabled

public boolean isD8Enabled()

isAnalogEnabled

public boolean isAnalogEnabled(int pin)

isA0Enabled

public boolean isA0Enabled()

isA1Enabled

public boolean isA1Enabled()

isA2Enabled

public boolean isA2Enabled()

isA3Enabled

public boolean isA3Enabled()

isA4Enabled

public boolean isA4Enabled()

isA5Enabled

public boolean isA5Enabled()

getChannelIndicator1

public int getChannelIndicator1()

setChannelIndicator1

public void setChannelIndicator1(int channelIndicator1)

getChannelIndicator2

public int getChannelIndicator2()

setChannelIndicator2

public void setChannelIndicator2(int channelIndicator2)

containsAnalog

public boolean containsAnalog()
Return true if this packet contains at least one analog sample


containsDigital

public boolean containsDigital()
Returns true if this packet contains at least one digital sample

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class RxBaseResponse