|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.platform.tmote.Action
com.sentilla.platform.tmote.ByteReceiver
public class ByteReceiver
Tmote implementation of ByteReceiver
Field Summary | |
---|---|
byte |
_reserved
|
short |
amfilter
|
short |
amtype
|
long |
destAddress
|
byte |
devInterface
|
short |
length
|
short |
lqi
|
short |
rssi
|
long |
sourceAddress
|
int |
timestamp
|
Fields inherited from class com.sentilla.platform.tmote.Action |
---|
actionAuto, actionId, actionState, isolateOwner |
Fields inherited from interface com.sentilla.net.ByteReceiver |
---|
ANY_ADDR, ANY_PORT |
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Constructor Summary | |
---|---|
ByteReceiver(int amfilter)
|
Method Summary | |
---|---|
long |
getDestAddress()
Get the destination address as a long. |
int |
getLength()
Returns the number of bytes in the original message. |
int |
getLqi()
Returns the Link Quality Indicator (LQI) of the received message. |
int |
getPort()
Returns the currently set port. |
int |
getRssi()
Returns the Received Signal Strength Indicator (RSSI) of the received message. |
long |
getSourceAddress()
Get the source address as a long. |
long |
getTimestamp()
Returns the message timestamp. |
void |
receive(byte[] buf,
int offset)
Receive data into a byte array, starting at offset. |
void |
receive(com.sentilla.io.ByteBuffer buf)
Receive data into a ByteBuffer . |
ByteReceiver |
setPort(int amfilter)
Sets the port for message transmissions. |
ByteReceiver |
setReceive(byte[] buf,
int offset)
Set the byte array to receive data into, but do not submit to the kernel. |
ByteReceiver |
setReceive(com.sentilla.io.ByteBuffer buf)
Set the ByteBuffer to receive data into, but do not submit to the kernel. |
Methods inherited from class com.sentilla.platform.tmote.Action |
---|
block, block, cancel, getActionState, initAction, isDone, lookup, submit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sentilla.system.Action |
---|
block, block, cancel, getActionState, isDone, submit |
Field Detail |
---|
public short amtype
public int timestamp
public long destAddress
public short amfilter
public short length
public short rssi
public short lqi
public long sourceAddress
public byte devInterface
public byte _reserved
Constructor Detail |
---|
public ByteReceiver(int amfilter)
Method Detail |
---|
public void receive(com.sentilla.io.ByteBuffer buf)
ByteReceiver
ByteBuffer
.
receive
in interface ByteReceiver
buf
- ByteBuffer to receive data intopublic void receive(byte[] buf, int offset)
ByteReceiver
receive
in interface ByteReceiver
buf
- byte array to receive data intooffset
- offset in the byte array to begin placing received datapublic ByteReceiver setReceive(com.sentilla.io.ByteBuffer buf)
ByteReceiver
setReceive
in interface ByteReceiver
buf
- ByteBuffer to receive data into
this
public ByteReceiver setReceive(byte[] buf, int offset)
ByteReceiver
setReceive
in interface ByteReceiver
buf
- the byte array to receive data intooffset
- the offset in the array to begin writing the data
this
public ByteReceiver setPort(int amfilter)
ByteMessage
setPort
in interface ByteMessage
amfilter
- the port bytes should be sent to
this
public int getPort()
ByteMessage
getPort
in interface ByteMessage
public long getTimestamp()
ByteMessage
getTimestamp
in interface ByteMessage
public long getDestAddress()
public int getLength()
ByteReceiver
getLength
in interface ByteReceiver
public int getRssi()
ByteReceiver
getRssi
in interface ByteReceiver
public int getLqi()
ByteReceiver
getLqi
in interface ByteReceiver
public long getSourceAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |