SunSPOT API V3.0


com.sun.spot.peripheral.basestation
Interface ICommand

All Known Implementing Classes:
GetChannelAccessFailureCommand, GetNoAckCommand, GetNullPacketAfterAckWaitCommand, GetPLMETransmitCommand, GetWrongAckCommand, MACCommand, MCPSDataIndicationCommand, MCPSDataRequestCommand, MLMEGetCommand, MLMEResetCommand, MLMERxEnableCommand, MLMESetCommand, MLMEStartCommand, NoArgIntParameterCommand, ResetProxyCommand, SetPLMETransmitPowerCommand

public interface ICommand


Method Summary
 long getTimeout()
           
 int getUID()
           
 void populateFrom(byte[] inputBuffer, int startingOffset)
           
 Object resultFrom(DataInputStream dataInputStream, ICreateExceptions exceptionCreator)
           
 void setUID(int uid)
           
 void writeOnto(DataOutputStream dataOutputStream)
           
 int writeResultOnto(byte[] outputBuffer, int startingOffset, I802_15_4_MAC mac)
          Write the result onto the outputBuffer byte array, starting at startingOffset.
 

Method Detail

writeOnto

void writeOnto(DataOutputStream dataOutputStream)
               throws IOException
Throws:
IOException

populateFrom

void populateFrom(byte[] inputBuffer,
                  int startingOffset)
                  throws IOException
Throws:
IOException

writeResultOnto

int writeResultOnto(byte[] outputBuffer,
                    int startingOffset,
                    I802_15_4_MAC mac)
                    throws IOException
Write the result onto the outputBuffer byte array, starting at startingOffset. Answer the number of bytes that you actually wrote.

Throws:
IOException

resultFrom

Object resultFrom(DataInputStream dataInputStream,
                  ICreateExceptions exceptionCreator)
                  throws Throwable
Throws:
Throwable

setUID

void setUID(int uid)

getUID

int getUID()

getTimeout

long getTimeout()

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.