nl.tbdev.IR
Class Lap
java.lang.Object
|
+--nl.tbdev.IR.Lap
- public class Lap
- extends java.lang.Object
Implementation of the LAP layer of IrDA. Not really meant for direct
usage by applications. API may change in the future.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
OFFLINE
public static final int OFFLINE
NDM
public static final int NDM
CONN
public static final int CONN
NRMS
public static final int NRMS
SCLOSE
public static final int SCLOSE
QUERY
public static final int QUERY
SETUP
public static final int SETUP
XMIT
public static final int XMIT
NRMP
public static final int NRMP
PCLOSE
public static final int PCLOSE
state
private int state
serial
private Serial serial
timeout
private int timeout
generator
private java.util.Random generator
old_s
private byte old_s
Ns
private int Ns
Vr
private int Vr
Vs
private int Vs
As
private int As
NA
private int NA
DA
private int DA
frame
private LapFrame frame
slot
private int slot
frameSent
private boolean frameSent
remoteBusy
private boolean remoteBusy
localBusy
private boolean localBusy
unackedFrame
private boolean unackedFrame
discoverRequest
private boolean discoverRequest
conflictResolution
private boolean conflictResolution
connectRequest
private boolean connectRequest
data
private byte[] data
expireTime
private long expireTime
fTimer
private long fTimer
pTimer
private long pTimer
disconnect
private boolean disconnect
outQueue
private java.util.Vector outQueue
slotCount
private int slotCount
retryCount
private int retryCount
log
private java.util.Vector log
fastTimer
private int fastTimer
mediaBusy
private boolean mediaBusy
remOptions
private Options remOptions
locOptions
private Options locOptions
callback
LapCallbackInterface callback
dest
private byte[] dest
ca
private byte ca
da
private byte da
Lap
public Lap(Serial iSerial,
LapCallbackInterface cb,
int iTimeout)
disconnectRequest
public void disconnectRequest()
connectionRequest
public boolean connectionRequest(int dest)
discoveryRequest
public boolean discoveryRequest(boolean resolveConflict)
dataRequest
public void dataRequest(byte[] data)
run
public void run()
handleOffline
private void handleOffline()
handleNdm
private void handleNdm()
handleCon
private void handleCon()
handleNrms
private void handleNrms()
handleSclose
private void handleSclose()
handleQuery
private void handleQuery()
handleSetup
private void handleSetup()
handleXmit
private void handleXmit()
handleNrmp
private void handleNrmp()
handlePclose
private void handlePclose()
startWdTimer
private void startWdTimer(int timeout)
startFTimer
private void startFTimer()
startPTimer
private void startPTimer()
invalidNr
private boolean invalidNr(int nr,
int vs,
boolean unackedframe,
int as)
sendNrmResponse
private void sendNrmResponse(int Nr)
processNr
private void processNr(int nr)
sendIRsp
private void sendIRsp(int As,
int Vr,
byte[] data)
sendICmd
private void sendICmd(int As,
int Vr,
byte[] data)
sendSResponse
private void sendSResponse()
sendSCommand
private void sendSCommand()
sendURdRspF
private void sendURdRspF()
sendUDiscCmdP
private void sendUDiscCmdP()
sendDiscovery
private void sendDiscovery(boolean endDisc)
getPacketSize
public int getPacketSize()
- get size of packets allowed for remote
- Returns:
- size in bytes