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 |
fillChecksum() |
int |
getApid() |
int |
getPacketId() |
int |
getPacketType() |
int |
getSeq() |
ByteBuffer |
getUserDataBuffer() |
void |
setApid(int apid) |
void |
setPacketId(int packetId) |
void |
setTime(long instant) |
void |
setUserDataBuffer(ByteBuffer buffer) |
byte[] |
toByteArray() |
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 setTime(long instant)
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 writeTo(OutputStream os) throws IOException
IOExceptionpublic void fillChecksum()
public byte[] toByteArray()
public int getApid()
Copyright © 2019 Space Applications Services. All rights reserved.