public class CCSDSPacket extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
buffer |
protected static HashMap<Integer,Integer> |
seqMap |
| Constructor and Description |
|---|
CCSDSPacket(ByteBuffer buffer) |
CCSDSPacket(int userDataLength,
int packetid) |
CCSDSPacket(int userDataLength,
int packetid,
boolean checksumPresent) |
CCSDSPacket(int userDataLength,
int packetType,
int packetid) |
CCSDSPacket(int userDataLength,
int packetType,
int packetid,
boolean checksumPresent) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendUserDataBuffer(byte[] userData) |
void |
describePacketHeader(int byteToRead) |
void |
fillChecksum() |
int |
getPacketId() |
int |
getPacketType() |
int |
getSeq() |
ByteBuffer |
getUserDataBuffer() |
void |
setApid(int apid) |
void |
setPacketId(int packetId) |
void |
setUserDataBuffer(ByteBuffer buffer) |
String |
toString() |
void |
writeTo(OutputStream os) |
protected ByteBuffer buffer
public CCSDSPacket(ByteBuffer buffer)
public CCSDSPacket(int userDataLength,
int packetid)
public CCSDSPacket(int userDataLength,
int packetid,
boolean checksumPresent)
public CCSDSPacket(int userDataLength,
int packetType,
int packetid)
public CCSDSPacket(int userDataLength,
int packetType,
int packetid,
boolean checksumPresent)
public void setApid(int apid)
public ByteBuffer getUserDataBuffer()
public void appendUserDataBuffer(byte[] userData)
public void setUserDataBuffer(ByteBuffer buffer)
public int getPacketId()
public void setPacketId(int packetId)
public int getPacketType()
public int getSeq()
public void describePacketHeader(int byteToRead)
public void writeTo(OutputStream os) throws IOException
IOExceptionpublic void fillChecksum()
Copyright © 2018 Space Applications Services. All rights reserved.