|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 IRadioPacketDispatcherpacketListener - the class that wants to be called backpublic void deregisterPacketQualityListener(IPacketQualityListener listener)
deregisterPacketQualityListener in interface IRadioPacketDispatcherlistener - the class that wants to be deregistered
public void sendBroadcast(RadioPacket rp)
throws NoAckException,
ChannelBusyException
rp -
NoAckException
ChannelBusyException
public void sendPacket(RadioPacket rp)
throws NoAckException,
ChannelBusyException
sendPacket in interface IRadioPacketDispatcherrp -
NoAckException
ChannelBusyExceptionpublic void initialize(ILowPan lowPanLayer)
initialize in interface IRadioPacketDispatcherlowPanLayer - reference to the fully started LowPan instance
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||