|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface I802_15_4_MAC
Defines the portion of the I802.15.4 MAC layer specification that this library currently supports.
| Field Summary | |
|---|---|
static int |
A_EXTENDED_ADDRESS
Key for mlmeSet(int, long) to control the 64-bit IEEE address for this MAC layer. |
static int |
CHANNEL_ACCESS_FAILURE
Returned from mcpsDataRequest if transmission fails because the channel is not clear |
static int |
FALSE
Some MAC PIB attributes are defined as boolean: to simplify the interface they're returned as ints. |
static int |
MAC_RX_ON_WHEN_IDLE
Key for mlmeSet(int, long) to control whether RX is active when not explicitly enabled through mlmeRxEnable(int). |
static int |
NO_ACK
Returned from mcpsDataRequest if transmission is not acknowledged by remote |
static int |
SUCCESS
Returned from mcpsDataRequest on successful transmission |
static int |
TRUE
Some MAC PIB attributes are defined as boolean: to simplify the interface they're returned as ints. |
| Method Summary | |
|---|---|
void |
mcpsDataIndication(RadioPacket rp)
Receive a packet: blocks until a packet is received. |
int |
mcpsDataRequest(RadioPacket rp)
Send a packet: blocks until ACK received if ACK requested. |
long |
mlmeGet(int attribute)
Answer the value of the specified attribute. |
void |
mlmeReset(boolean resetAttribs)
Reset the MAC layer |
void |
mlmeRxEnable(int rxOnDuration)
Enable the receiver for a fixed period |
void |
mlmeSet(int attribute,
long value)
Set the value of a MAC attribute |
void |
mlmeStart(short panId,
int channel)
Start the MAC layer on a specific channel |
| Field Detail |
|---|
static final int SUCCESS
static final int NO_ACK
static final int CHANNEL_ACCESS_FAILURE
static final int MAC_RX_ON_WHEN_IDLE
mlmeSet(int, long) to control whether RX is active when not explicitly enabled through mlmeRxEnable(int).
static final int A_EXTENDED_ADDRESS
mlmeSet(int, long) to control the 64-bit IEEE address for this MAC layer.
static final int FALSE
static final int TRUE
| Method Detail |
|---|
int mcpsDataRequest(RadioPacket rp)
rp - - packet containing data to sendvoid mcpsDataIndication(RadioPacket rp)
rp - - the packet to fill with data
void mlmeStart(short panId,
int channel)
throws MAC_InvalidParameterException
panId - - panId to usechannel - - channel to use
MAC_InvalidParameterExceptionvoid mlmeReset(boolean resetAttribs)
resetAttribs - - reset PIB
long mlmeGet(int attribute)
throws MAC_InvalidParameterException
attribute - -- see Field Summary
MAC_InvalidParameterException - if attribute is unknown
void mlmeSet(int attribute,
long value)
throws MAC_InvalidParameterException
attribute - -- attribute to set (see Field Summary)value - -- value to apply
MAC_InvalidParameterException - if attribute is unknownvoid mlmeRxEnable(int rxOnDuration)
rxOnDuration - - the number of symbol-times for which to enable the receiver (max=0xFFFFFF, 0 = disable)
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||