com.sentilla.platform.tmote
Class CC2420Radio.Receiver
java.lang.Object
com.sentilla.platform.tmote.DispatcherAction
com.sentilla.platform.tmote.Receiver
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
Constructor Summary |
CC2420Radio.Receiver()
Provides initialization for the CC2420Radio.Receiver and sets default
receive port to 249. |
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
CC2420Radio.Receiver
public CC2420Radio.Receiver()
- Provides initialization for the CC2420Radio.Receiver and sets default
receive port to 249.
- See Also:
Receiver
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.