nl.tbdev.IR
Class Fcs

java.lang.Object
  |
  +--nl.tbdev.IR.Fcs

public class Fcs
extends java.lang.Object

Frame Check Sequence Algorithm for IrDA


Field Summary
private  short current
           
private static short[] fcstab
           
static short GOODFCS
           
static short INITFCS
           
 
Constructor Summary
Fcs()
           
 
Method Summary
 void calcFcs(byte[] data, int len)
           
 boolean checkFcs()
           
 short getFcs()
           
 void initFcs()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fcstab

private static final short[] fcstab

INITFCS

public static final short INITFCS

GOODFCS

public static final short GOODFCS

current

private short current
Constructor Detail

Fcs

public Fcs()
Method Detail

initFcs

public void initFcs()

calcFcs

public void calcFcs(byte[] data,
                    int len)

getFcs

public short getFcs()

checkFcs

public boolean checkFcs()