SunSPOT API V3.0


com.sun.spot.peripheral.radio
Interface IRadioPacketDispatcher

All Known Implementing Classes:
RadioPacketDispatcher

public interface IRadioPacketDispatcher

Acts like a basic pass through layer that's responsible for sending/receiving packets from the MAC layer IRadioPacketDispatcher also provides a set of radio control facilities for application developers such as controlling power output, channel and PAN ID.

Version:
0.1
Author:
Allen Ajit George, Jochen Furthmueller

Method Summary
 void deregisterPacketQualityListener(IPacketQualityListener listener)
          Undo a previous call of registerPacketListener()
 void initialize(ILowPan lowPanLayer)
          Called by LowPan to initialize the dispatcher.
 void registerPacketQualityListener(IPacketQualityListener packetListener)
          Register to be notified with Link Quality information.
 void sendPacket(RadioPacket rp)
          Send a radio packet
 

Method Detail

initialize

void initialize(ILowPan lowPanLayer)
Called by LowPan to initialize the dispatcher. Note: This is only called after LowPan is completely started up. This method is there to prevent cycles in the initialization process

Parameters:
lowPanLayer - reference to the fully started LowPan instance

sendPacket

void sendPacket(RadioPacket rp)
                throws NoAckException,
                       ChannelBusyException
Send a radio packet

Parameters:
rp - the radio packet to send
Throws:
NoAckException
ChannelBusyException

registerPacketQualityListener

void registerPacketQualityListener(IPacketQualityListener packetListener)
Register to be notified with Link Quality information.

Parameters:
packetListener - the class that wants to be called back

deregisterPacketQualityListener

void deregisterPacketQualityListener(IPacketQualityListener listener)
Undo a previous call of registerPacketListener()

Parameters:
listener - the class that wants to be deregistered

SunSPOT API V3.0


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