|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcx.josx.rcxcomm.PacketHandler
rcx.josx.rcxcomm.F7Handler
public class F7Handler
Packet handler that uses the Lego Firmware F7 (set Message) opcodes.
| Method Summary | |
|---|---|
void |
close()
Close the Tower. |
int |
getError()
Get the last error on the Tower |
boolean |
isPacketAvailable()
Check if a packet is available |
int |
receivePacket(byte[] packet)
Receive a packet. |
boolean |
sendPacket(byte[] packet,
int len)
Send a packet. |
void |
setListen(boolean listen)
Set or unset the listen flag to keep a PC serial tower alive |
| Methods inherited from class rcx.josx.rcxcomm.PacketHandler |
|---|
isAckAvailable, open, receiveAck, reset |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getError()
getError in class PacketHandlerpublic void setListen(boolean listen)
setListen in class PacketHandlerlisten - true to set listen mode, else false
public boolean sendPacket(byte[] packet,
int len)
sendPacket in class PacketHandlerpacket - the bytes to sendlen - the number of bytes to send
public int receivePacket(byte[] packet)
receivePacket in class PacketHandlerbuffer - the buffer to rceive the packet into
public boolean isPacketAvailable()
isPacketAvailable in class PacketHandlerpublic void close()
close in class PacketHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||