public class LLCHandler extends PacketHandler
lowerHandler| Constructor and Description |
|---|
LLCHandler(I2CPort port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAckAvailable()
Check if an Ack is available
|
boolean |
isPacketAvailable()
Check if a packet is available
|
int |
receiveAck(byte[] buffer)
Receive an ack.
|
int |
receivePacket(byte[] buffer)
Receive a packet.
|
boolean |
sendPacket(byte[] packet,
int len)
Send a packet.
|
public LLCHandler(I2CPort port)
public boolean sendPacket(byte[] packet,
int len)
sendPacket in class PacketHandlerpacket - the bytes to sendlen - the number of bytes to sendpublic int receivePacket(byte[] buffer)
receivePacket in class PacketHandlerbuffer - the buffer to receive the packet intopublic int receiveAck(byte[] buffer)
receiveAck in class PacketHandlerbuffer - the buffer to receive the ack intopublic boolean isPacketAvailable()
isPacketAvailable in class PacketHandlerpublic boolean isAckAvailable()
isAckAvailable in class PacketHandler