edu.uiuc.cs.seclab.modem.xbee.cmd
Class XBeeDioCmd

java.lang.Object
  extended by edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
      extended by edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
          extended by edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
              extended by edu.uiuc.cs.seclab.modem.xbee.XBeeByteParamCmd
                  extended by edu.uiuc.cs.seclab.modem.xbee.cmd.XBeeDioCmd
All Implemented Interfaces:
XBeeEnumParamCmd, java.lang.Cloneable

public class XBeeDioCmd
extends XBeeByteParamCmd
implements XBeeEnumParamCmd

ATDIOn - Configure digital IO port


Nested Class Summary
static class XBeeDioCmd.PortConf
           
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
XBeeNumParamCmd.Representation
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
XBeeAtCmd.Mode
 
Field Summary
protected  XBeeDioCmd.PortConf conf
           
protected  byte port
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
HEX_CHARS_PER_BYTE, PT_RADIX
 
Constructor Summary
XBeeDioCmd()
           
 
Method Summary
 java.lang.String getAtCmd()
          Get the two-character AT code associated with this command.
 int getMaxVal()
          Return the maximum value supported by parameter
 int getMinVal()
          Return the minimum value supported by parameter
protected  byte getSetterVal()
           
 java.lang.String getShortDesc()
          Return a short (one-line) description for command suitable for display in parameter table.
 java.util.List<java.lang.Enum> listEnumVals()
          List all available enumeration values
 void localSetVal(byte b)
           
 void setPort(byte port_)
           
 void setPortConf(XBeeDioCmd.PortConf conf_)
           
 void setVal(java.lang.Enum val)
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeByteParamCmd
getApiParamLength, getRawSetterParams, localSetVal, marshalApiSetterParams, marshalPtSetterParams, unmarshalApiGetterParams, unmarshalPtGetterParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
getDefVal, getRepresentation, marshalApiSetterParams, setVal
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
clone, convertApiResponse, getApiParams, isReadOnly, parmEq, unmarshalRespParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
getPktImpl, processResp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected XBeeDioCmd.PortConf conf

port

protected byte port
Constructor Detail

XBeeDioCmd

public XBeeDioCmd()
Method Detail

getAtCmd

public java.lang.String getAtCmd()
Description copied from class: XBeeAtCmd
Get the two-character AT code associated with this command.

Specified by:
getAtCmd in class XBeeAtCmd

getMaxVal

public int getMaxVal()
Description copied from class: XBeeNumParamCmd
Return the maximum value supported by parameter

Overrides:
getMaxVal in class XBeeByteParamCmd

getMinVal

public int getMinVal()
Description copied from class: XBeeNumParamCmd
Return the minimum value supported by parameter

Overrides:
getMinVal in class XBeeByteParamCmd

getSetterVal

protected byte getSetterVal()
Specified by:
getSetterVal in class XBeeByteParamCmd

getShortDesc

public java.lang.String getShortDesc()
Description copied from class: XBeeAtCmd
Return a short (one-line) description for command suitable for display in parameter table.

Specified by:
getShortDesc in class XBeeAtCmd

listEnumVals

public java.util.List<java.lang.Enum> listEnumVals()
Description copied from interface: XBeeEnumParamCmd
List all available enumeration values

Specified by:
listEnumVals in interface XBeeEnumParamCmd

localSetVal

public void localSetVal(byte b)
                 throws ModemException
Specified by:
localSetVal in class XBeeByteParamCmd
Throws:
ModemException

setPort

public void setPort(byte port_)

setPortConf

public void setPortConf(XBeeDioCmd.PortConf conf_)

setVal

public void setVal(java.lang.Enum val)
            throws ModemException
Specified by:
setVal in interface XBeeEnumParamCmd
Throws:
ModemException