|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.radio.RadioPacketDispatcher
public class RadioPacketDispatcher
Implements IRadioPacketDispatcher
for the Spot environment.
Method Summary | |
---|---|
void |
deregisterPacketQualityListener(IPacketQualityListener listener)
Undo a previous call of registerPacketListener() |
static IRadioPacketDispatcher |
getInstance()
Return the singleton instance of RadioPacketDispatcher. |
void |
initialize(ILowPan lowPanLayer)
Called by LowPan to initialize the dispatcher. |
void |
registerPacketQualityListener(IPacketQualityListener packetListener)
Register to be notified with Link Quality information. |
void |
sendBroadcast(RadioPacket rp)
Broadcast a packet. |
void |
sendPacket(RadioPacket rp)
Send a packet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IRadioPacketDispatcher getInstance()
public void registerPacketQualityListener(IPacketQualityListener packetListener)
registerPacketQualityListener
in interface IRadioPacketDispatcher
packetListener
- the class that wants to be called backpublic void deregisterPacketQualityListener(IPacketQualityListener listener)
deregisterPacketQualityListener
in interface IRadioPacketDispatcher
listener
- the class that wants to be deregisteredpublic void sendBroadcast(RadioPacket rp) throws NoAckException, ChannelBusyException
rp
-
NoAckException
ChannelBusyException
public void sendPacket(RadioPacket rp) throws NoAckException, ChannelBusyException
sendPacket
in interface IRadioPacketDispatcher
rp
-
NoAckException
ChannelBusyException
public void initialize(ILowPan lowPanLayer)
initialize
in interface IRadioPacketDispatcher
lowPanLayer
- reference to the fully started LowPan instance
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |