|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.RtStpsNode
gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
gov.nasa.gsfc.drl.rtstps.core.CrcDecoder
public final class CrcDecoder
This class performs CRC decoding on frames or blocks of data.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
This is a class name for this RT-STPS node type, which is also the element name. |
private boolean |
discardBadFrames
If true, discard a frame with a bad CRC. |
private int |
firstData
|
private static int[] |
highCRC
|
private int |
highStart
|
private boolean |
includeSyncPattern
If true, include the sync pattern in the CRC calculation. |
private int |
lastData
|
private static int[] |
lowCRC
|
private int |
lowStart
|
private int |
offsetToParity
This is the byte offset from the frame start to the first byte of CRC parity, which is 2 bytes. |
private int |
parityStart
|
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode |
---|
output |
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
linkName, statusItemList, typeName |
Constructor Summary | |
---|---|
CrcDecoder()
Create a CRC decoder. |
Method Summary | |
---|---|
private boolean |
decode(Frame frame)
Decode the frame. |
void |
finishSetup(Configuration configuration)
Finish the setup. |
void |
load(org.w3c.dom.Element element,
Configuration configuration)
Set up this RT-STPS node with a configuration. |
void |
putFrame(Frame frame)
Give a frame to this FrameReceiver. |
void |
putFrames(Frame[] frames)
Give an array of frames to this FrameReceiver. |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode |
---|
addReceiver, flush, setOutputIsRequired |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
clear, clone, getElementName, getLinkName, getStatusItems, setLinkName, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.FrameReceiver |
---|
flush, getLinkName |
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.Sender |
---|
addReceiver |
Field Detail |
---|
public static final java.lang.String CLASSNAME
private static final int[] highCRC
private static final int[] lowCRC
private int highStart
private int lowStart
private int firstData
private int lastData
private int parityStart
private boolean includeSyncPattern
private boolean discardBadFrames
private int offsetToParity
Constructor Detail |
---|
public CrcDecoder()
Method Detail |
---|
public void load(org.w3c.dom.Element element, Configuration configuration) throws RtStpsException
load
in class FrameSenderNode
RtStpsException
public void finishSetup(Configuration configuration) throws RtStpsException
finishSetup
in class FrameSenderNode
RtStpsException
public void putFrames(Frame[] frames) throws RtStpsException
putFrames
in interface FrameReceiver
RtStpsException
public void putFrame(Frame frame) throws RtStpsException
putFrame
in interface FrameReceiver
RtStpsException
private boolean decode(Frame frame)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |