|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProprietaryRadio
This interface represents the parts of the CC2420's functionality that are not exposed by the I802.15.4 PHY layer but are still useful. Some of these are required for the current I802.15.4 MAC layer implementation.
Field Summary | |
---|---|
static int |
DEFAULT_CHANNEL
Default radio channel to use. |
static int |
DEFAULT_TRANSMIT_POWER
Default output power setting. |
static int |
OFF_MODE_IDLE
Parameter for setting RX off mode to leave the chip's oscillator enabled (see setOffMode(int) ) |
static int |
OFF_MODE_POWER_DOWN
Parameter for setting RX off mode to enable the chip's voltage regulator but disable the oscillator (see setOffMode(int) ) |
static int |
OFF_MODE_VREG_OFF
Parameter for setting RX off mode to disable the chip's voltage regulator (see setOffMode(int) ) |
Method Summary | |
---|---|
int |
dataRequest(RadioPacket rp,
boolean retry)
Attempt to send rp. |
void |
dumpHistory()
Dump information about the last ten packets to log. |
int |
getCrcError()
Answer the count of the number of CRC errors recorded. |
int |
getRxOverflow()
Answer the count of the number of overflows recorded while receiving packets. |
int |
getShortPacket()
Answer the count of the number of short packets recorded. |
int |
getTransceiverState()
Answer the transceiver's state as defined by the I802.15.4. |
int |
getTxMissed()
Answer the count of the number of times we started a transmit and apparently didn't manage to start waiting for it to complete until after the interrupt was already signalled. |
boolean |
isActive()
|
boolean |
isRxDataWaiting()
|
void |
reset()
Reset the hardware device |
void |
resetErrorCounters()
Reset the CrcError, ShortPacket, TxMissed and RxOverflow counters to zero. |
void |
setAddressRecognition(short panId,
long extendedAddress)
Set the hardware device to ignore non-broadcast messages that don't match our panID and extendedAddress |
void |
setAutoAGCGainMode()
Set the AGC gain range to be auotmatic selected |
void |
setAutoHighGainMode()
Set the AGC gain range to be the high range |
void |
setAutoLowGainMode()
Set the AGC gain range to be the low range |
void |
setAutoMediumGainMode()
Set the AGC gain range to be the medium range |
void |
setManualHighGainMode(int gain)
Turn off AGC, set gain range to be the medium range |
void |
setManualLowGainMode(int gain)
Turn off AGC, set gain range to be the low range |
void |
setManualMediumGainMode(int gain)
Turn off AGC, set gain range to be the medium range |
void |
setOffMode(int offState)
Set the off mode for the radio to one of the modes defined above. |
void |
setRecordHistory(boolean shouldRecordHistory)
The driver can maintain a history of recent radio events which can be displayed by dumpHistory. |
Field Detail |
---|
static final int DEFAULT_TRANSMIT_POWER
static final int DEFAULT_CHANNEL
static final int OFF_MODE_VREG_OFF
setOffMode(int)
)
static final int OFF_MODE_POWER_DOWN
setOffMode(int)
)
static final int OFF_MODE_IDLE
setOffMode(int)
)
Method Detail |
---|
void reset()
void setAddressRecognition(short panId, long extendedAddress)
panId
- the pan id to which this Spot should respondextendedAddress
- the 64 bit IEEE address to which this Spot should respondvoid setRecordHistory(boolean shouldRecordHistory)
shouldRecordHistory
- - true to record history, false to not recordvoid dumpHistory()
int getTransceiverState()
I802_15_4_PHY.RX_ON
| I802_15_4_PHY.TRX_OFF
| I802_15_4_PHY.TX_ON
void setOffMode(int offState)
offState
- -- OFF_MODE_VREG_OFF
| OFF_MODE_POWER_DOWN
| OFF_MODE_IDLE
void setAutoAGCGainMode()
void setAutoLowGainMode()
void setAutoMediumGainMode()
void setAutoHighGainMode()
void setManualLowGainMode(int gain)
gain
- - specific gain value to be usedvoid setManualMediumGainMode(int gain)
gain
- - specific gain value to be usedvoid setManualHighGainMode(int gain)
gain
- - specific gain value to be usedint getRxOverflow()
int getCrcError()
int getTxMissed()
int getShortPacket()
void resetErrorCounters()
int dataRequest(RadioPacket rp, boolean retry)
rp
- radio packet to sendretry
- whether this radio packet is a resend of the previous call to this method.
boolean isRxDataWaiting()
boolean isActive()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |