com.sentilla.platform.tmote
Class CC2420Radio

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.platform.tmote.Protocol
          extended by com.sentilla.platform.tmote.CC2420Radio
All Implemented Interfaces:
Driver

public class CC2420Radio
extends Protocol

Provides a protocol wrapper to the radio interface. Used to send and receive from the radio firmware. Provides the necessary metadata to set radio parameters.

See Also:
Protocol, Dispatcher

Nested Class Summary
static class CC2420Radio.Receiver
          Provides receiver class for the CC2420 radio.
static class CC2420Radio.Sender
          Provides sender class for the CC2420 radio.
 
Field Summary
static int MTU
           
static int PORT
           
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
CC2420Radio()
           
 
Method Summary
 boolean doesInstanceMatch(Object obj)
          Do not use.
 String getDriverName(int n)
          Returns the strings "cc2420", "local", "radio", and "serial".
 CC2420Radio.Receiver newReceiver()
          Returns a new receiver for the CC2420 radio.
 CC2420Radio.Sender newSender()
          Returns a new sender for the CC2420 radio.
 void stackReceive(Receiver rcvr)
          Do not use.
 void stackSend(Sender ds)
          Sends a message with the CC2420 radio firmware.
 
Methods inherited from class com.sentilla.system.DriverAdapter
getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTU

public static final int MTU
See Also:
Constant Field Values

PORT

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

CC2420Radio

public CC2420Radio()
Method Detail

stackReceive

public void stackReceive(Receiver rcvr)
Do not use. This method is required by Protocol, but should never be called.

Specified by:
stackReceive in class Protocol
Parameters:
rcvr - Receiver object containing received object
See Also:
Protocol

stackSend

public void stackSend(Sender ds)
Sends a message with the CC2420 radio firmware. Called by the Dispatcher and should never be called by any outside application.

Specified by:
stackSend in class Protocol
Parameters:
ds - sender object containing the data to be sent
See Also:
Protocol, CC2420Radio.Sender, Dispatcher

newSender

public CC2420Radio.Sender newSender()
Returns a new sender for the CC2420 radio.

Specified by:
newSender in class Protocol
Returns:
new CC2420Radio.Sender object
See Also:
CC2420Radio.Sender, Dispatcher

newReceiver

public CC2420Radio.Receiver newReceiver()
Returns a new receiver for the CC2420 radio.

Specified by:
newReceiver in class Protocol
Returns:
new CC2420Radio.Receiver object
See Also:
Receiver, Dispatcher

doesInstanceMatch

public boolean doesInstanceMatch(Object obj)
Do not use. Required by Protocol and included for compatability. Always returns false.

Specified by:
doesInstanceMatch in class Protocol
Parameters:
obj - Object to match
Returns:
true if this receiver is receiving for the same class as obj.
See Also:
Protocol

getDriverName

public String getDriverName(int n)
Returns the strings "cc2420", "local", "radio", and "serial".

Specified by:
getDriverName in interface Driver
Specified by:
getDriverName in class DriverAdapter
Parameters:
n - index of string to get
Returns:
the string "cc2420"
See Also:
Protocol, Driver, Drivers


Copyright © 2007 Sentilla Corporation. All Rights Reserved.