|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
com.sentilla.platform.tmote.Protocol
com.sentilla.platform.tmote.CC2420Radio
public class CC2420Radio
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.
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 |
---|
public static final int MTU
public static final int PORT
Constructor Detail |
---|
public CC2420Radio()
Method Detail |
---|
public void stackReceive(Receiver rcvr)
stackReceive
in class Protocol
rcvr
- Receiver object containing received objectProtocol
public void stackSend(Sender ds)
stackSend
in class Protocol
ds
- sender object containing the data to be sentProtocol
,
CC2420Radio.Sender
,
Dispatcher
public CC2420Radio.Sender newSender()
newSender
in class Protocol
CC2420Radio.Sender
,
Dispatcher
public CC2420Radio.Receiver newReceiver()
newReceiver
in class Protocol
Receiver
,
Dispatcher
public boolean doesInstanceMatch(Object obj)
Protocol
and included for compatability.
Always returns false.
doesInstanceMatch
in class Protocol
obj
- Object to match
Protocol
public String getDriverName(int n)
getDriverName
in interface Driver
getDriverName
in class DriverAdapter
n
- index of string to get
Protocol
,
Driver
,
Drivers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |