com.sentilla.platform.tmote
Class CC2420Radio.Receiver

java.lang.Object
  extended by com.sentilla.platform.tmote.DispatcherAction
      extended by com.sentilla.platform.tmote.Receiver
          extended by com.sentilla.platform.tmote.CC2420Radio.Receiver
All Implemented Interfaces:
Receiver, Action
Enclosing class:
CC2420Radio

public static class CC2420Radio.Receiver
extends Receiver

Provides receiver class for the CC2420 radio.

See Also:
Receiver

Field Summary
 int bytesReceived
           
 int lqi
           
 long macAddr
          Source address of received message as a 64 bit long.
 long macDest
          Destination address of received messages.
 int port
           
 short rssi
           
 int timestamp
          Timestamp of last received message.
 
Fields inherited from class com.sentilla.platform.tmote.Receiver
data, destAddress, msgClass, nextReceiver, sourceAddress
 
Fields inherited from class com.sentilla.platform.tmote.DispatcherAction
actionState
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Constructor Summary
CC2420Radio.Receiver()
          Provides initialization for the CC2420Radio.Receiver and sets default receive port to 249.
 
Method Summary
 Addressable getDestinationAddress()
           
 Addressable getSourceAddress()
          Override the default getSourceAddress to avoid creating a new Mac64Address object on every receive.
 void setActionState(byte state)
           
 
Methods inherited from class com.sentilla.platform.tmote.Receiver
addMetadata, getData, getDestAddress, getMetadata, receive, setReceive, signalReceive, subcancel, subsubmit
 
Methods inherited from class com.sentilla.platform.tmote.DispatcherAction
block, block, cancel, getActionState, isDone, submit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone, submit
 

Field Detail

rssi

public short rssi

lqi

public int lqi

macAddr

public long macAddr
Source address of received message as a 64 bit long.


macDest

public long macDest
Destination address of received messages.


timestamp

public int timestamp
Timestamp of last received message. Uses 32kHz mote clock.


port

public int port

bytesReceived

public int bytesReceived
Constructor Detail

CC2420Radio.Receiver

public CC2420Radio.Receiver()
Provides initialization for the CC2420Radio.Receiver and sets default receive port to 249.

See Also:
Receiver
Method Detail

getSourceAddress

public Addressable getSourceAddress()
Override the default getSourceAddress to avoid creating a new Mac64Address object on every receive.

Specified by:
getSourceAddress in interface Receiver
Overrides:
getSourceAddress in class Receiver
Returns:
an Addressable object containing the source address
See Also:
Addressable

getDestinationAddress

public Addressable getDestinationAddress()

setActionState

public void setActionState(byte state)


Copyright © 2007 Sentilla Corporation. All Rights Reserved.