|
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.RadioPolicyManager
public class RadioPolicyManager
Field Summary |
---|
Fields inherited from interface com.sun.spot.peripheral.radio.IRadioPolicyManager |
---|
DEFAULT_PAN_ID |
Constructor Summary | |
---|---|
RadioPolicyManager(I802_15_4_MAC macDevice,
int initialChannel,
short initialPanId,
int initialOutputPower)
|
Method Summary | |
---|---|
void |
closeBaseStation()
Used in the host to close down the base station - a no-op if called on a Spot |
void |
deregisterConnection(IConnectionID conn)
Notify the policy manager that a connection has closed |
int |
getChannelNumber()
Answer the current channel number (between 11 and 26). |
String |
getDriverName()
An identifying name for the driver (e.g. |
long |
getIEEEAddress()
|
int |
getOutputPower()
Answer the radio output power in decibels. |
short |
getPanId()
Answer the current pan ID. |
boolean |
isRadioReceiverOn()
|
void |
policyHasChanged(IConnectionID conn,
RadioPolicy selection)
Notify the policy manager that a policy has changed |
void |
registerConnection(IConnectionID conn)
Notify the policy manager of a new connection |
void |
setChannelNumber(int channel)
Set the current channel number (between 11 and 26). |
void |
setOutputPower(int power)
Set the radio output power in decibels (between -32 and +31). |
void |
setPanId(short pid)
Set the pan ID (should not be -1 or -2, which are reserved in the I802.15.4 standard). |
boolean |
setRxOn(boolean rxState)
Attempt to set the radio receiver to on or off |
void |
setUp()
Activate or reactivate the driver (after a deep sleep or when another driver refused to deep sleep). |
void |
shutDown()
Notify the driver that the VM is about to exit. |
boolean |
tearDown()
Deactivate the driver (usually in preparation for deep sleep). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadioPolicyManager(I802_15_4_MAC macDevice, int initialChannel, short initialPanId, int initialOutputPower)
Method Detail |
---|
public void policyHasChanged(IConnectionID conn, RadioPolicy selection)
IRadioPolicyManager
policyHasChanged
in interface IRadioPolicyManager
conn
- the connection owning the policy that has changedselection
- the required radio statepublic void registerConnection(IConnectionID conn)
IRadioPolicyManager
registerConnection
in interface IRadioPolicyManager
conn
- the connection being registeredpublic void deregisterConnection(IConnectionID conn)
IRadioPolicyManager
deregisterConnection
in interface IRadioPolicyManager
conn
- the connection being deregisteredpublic boolean isRadioReceiverOn()
isRadioReceiverOn
in interface IRadioPolicyManager
public boolean setRxOn(boolean rxState)
IRadioPolicyManager
setRxOn
in interface IRadioPolicyManager
rxState
- true for rx on, false for rx off
public String getDriverName()
IDriver
getDriverName
in interface IDriver
public boolean tearDown()
IDriver
tearDown
in interface IDriver
public void shutDown()
IDriver
shutDown
in interface IDriver
public void setUp()
IDriver
setUp
in interface IDriver
public int getChannelNumber()
IRadioPolicyManager
getChannelNumber
in interface IRadioPolicyManager
public long getIEEEAddress()
getIEEEAddress
in interface IRadioPolicyManager
public int getOutputPower()
IRadioPolicyManager
getOutputPower
in interface IRadioPolicyManager
public short getPanId()
IRadioPolicyManager
getPanId
in interface IRadioPolicyManager
public void setChannelNumber(int channel)
IRadioPolicyManager
setChannelNumber
in interface IRadioPolicyManager
channel
- - the new channel numberpublic void setOutputPower(int power)
IRadioPolicyManager
setOutputPower
in interface IRadioPolicyManager
power
- - new power setting in decibels.public void setPanId(short pid)
IRadioPolicyManager
setPanId
in interface IRadioPolicyManager
pid
- - the new pan IDpublic void closeBaseStation()
IRadioPolicyManager
closeBaseStation
in interface IRadioPolicyManager
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |