|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttuwien.auto.calimero.link.medium.RawAckBase
tuwien.auto.calimero.link.medium.PL132Ack
public class PL132Ack
Raw acknowledge frame on PL132 communication medium.
The acknowledge on PL132 medium is handled using the frame checksum in the associated
frame request.
A positive acknowledgment frame contains the sequence of bits received in the FCS field
of the associated L-data request. A negative acknowledgment contains the bitwise
complement of the checksum received with the L-data request.
| Field Summary | |
|---|---|
static int |
FULL
Negative acknowledge type, reception buffer is full. |
static int |
UNKNOWN_ACK
The kind of acknowledge is unknown, because no checksum from the frame request is available for comparison, or the delivered checksum in the ack-frame is invalid. |
| Fields inherited from class tuwien.auto.calimero.link.medium.RawAckBase |
|---|
ack, ACK, NAK |
| Fields inherited from interface tuwien.auto.calimero.link.medium.RawFrame |
|---|
ACK_FRAME, LDATA_FRAME, LPOLLDATA_FRAME |
| Constructor Summary | |
|---|---|
PL132Ack(byte[] data,
int offset)
Creates a new PL132 acknowledge frame out of a byte array. |
|
PL132Ack(byte[] data,
int offset,
int requestChecksum)
Creates a new PL132 acknowledge frame out of a byte array. |
|
| Method Summary | |
|---|---|
int |
getChecksum()
Returns the checksum contained in this acknowledge frame. |
java.lang.String |
toString()
Returns a textual representation of the acknowledge frame information. |
| Methods inherited from class tuwien.auto.calimero.link.medium.RawAckBase |
|---|
getAckType, getFrameType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FULL
RawAckBase.getAckType(),
Constant Field Valuespublic static final int UNKNOWN_ACK
RawAckBase.getAckType(),
Constant Field Values| Constructor Detail |
|---|
public PL132Ack(byte[] data,
int offset)
The type of acknowledge returned for the created frame is always
UNKNOWN_ACK, since no checksum of the associated frame request is
supplied. Use getChecksum() to determine the type of acknowledge.
data - byte array containing the acknowledge frameoffset - start offset of frame structure in data, offset >=
0
public PL132Ack(byte[] data,
int offset,
int requestChecksum)
data - byte array containing the acknowledge frameoffset - start offset of frame structure in data, offset >=
0requestChecksum - checksum of the associated frame request| Method Detail |
|---|
public final int getChecksum()
public java.lang.String toString()
RawAckBase
toString in class RawAckBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||