All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.simulator.cfdp.CfdpCcsdsPacket Maven / Gradle / Ivy

package org.yamcs.simulator.cfdp;

import java.nio.ByteBuffer;

import org.yamcs.simulator.SimulatorCcsdsPacket;

public class CfdpCcsdsPacket extends SimulatorCcsdsPacket {
    public static final int APID = 2045;
    
    public CfdpCcsdsPacket(int pduLength) {
        super(ByteBuffer.allocate(6+pduLength));
        setHeader(APID, 1, 0, 3, getSeq(APID));
    }
    
    public CfdpCcsdsPacket(byte[] packet) {
        super(packet);
    }

    @Override
    public ByteBuffer getUserDataBuffer() {
        bb.position(6);
        return bb.slice();
    }

    @Override
    protected void fillChecksum() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy