object
ccsds_packetization
Helpers for packetizing CCSDS space packets into TM and AOS service-data regions with cross-frame carryover and idle fill generation.
logtalk_load(ccsds_packetization(loader))static, context_switching_callsPublic predicates
initial_state/1
Returns the initial packetizer state.
staticinitial_state(State)initial_state(-compound) - onepending_packets/2
Extracts the non-empty queued packets and pending trailing packet bytes buffered per frame type, spacecraft identifier, and virtual channel identifier.
staticpending_packets(State,PendingPackets)pending_packets(+compound,-list(compound)) - one_or_errorpacketize_tm_packets/6
Packetizes packets into the packet service region of a TM transfer frame, preserving any still-pending trailing packet bytes and queuing packets that do not fully fit.
staticpacketize_tm_packets(Frame,SecondaryHeaderLength,State,Packets,UpdatedFrame,UpdatedState)packetize_tm_packets(+compound,+integer,+compound,+list(compound),-compound,-compound) - one_or_errorpacketize_tm_packets/7
Packetizes packets into the packet service region of a TM transfer frame and also returns explicit packetization events.
staticpacketize_tm_packets(Frame,SecondaryHeaderLength,State,Packets,UpdatedFrame,UpdatedState,Events)packetize_tm_packets(+compound,+integer,+compound,+list(compound),-compound,-compound,-list(compound)) - one_or_errorpacketize_aos_packets/6
Packetizes packets into the packet service region of an AOS transfer frame, preserving any still-pending trailing packet bytes and queuing packets that do not fully fit.
staticpacketize_aos_packets(Frame,SecondaryHeaderLength,State,Packets,UpdatedFrame,UpdatedState)packetize_aos_packets(+compound,+integer,+compound,+list(compound),-compound,-compound) - one_or_errorpacketize_aos_packets/7
Packetizes packets into the packet service region of an AOS transfer frame and also returns explicit packetization events.
staticpacketize_aos_packets(Frame,SecondaryHeaderLength,State,Packets,UpdatedFrame,UpdatedState,Events)packetize_aos_packets(+compound,+integer,+compound,+list(compound),-compound,-compound,-list(compound)) - one_or_errorpacketize_tm_frames/7
Packetizes packets across a sequence of TM transfer frames. Packets that remain queued for the first frame channel are also returned.
staticpacketize_tm_frames(Frames,SecondaryHeaderLength,State,Packets,UpdatedFrames,RemainingPackets,UpdatedState)packetize_tm_frames(+list(compound),+integer,+compound,+list(compound),-list(compound),-list(compound),-compound) - one_or_errorpacketize_tm_frames/8
Packetizes packets across a sequence of TM transfer frames and also returns explicit packetization events in frame order.
staticpacketize_tm_frames(Frames,SecondaryHeaderLength,State,Packets,UpdatedFrames,RemainingPackets,UpdatedState,Events)packetize_tm_frames(+list(compound),+integer,+compound,+list(compound),-list(compound),-list(compound),-compound,-list(compound)) - one_or_errorpacketize_aos_frames/7
Packetizes packets across a sequence of AOS transfer frames. Packets that remain queued for the first frame channel are also returned.
staticpacketize_aos_frames(Frames,SecondaryHeaderLength,State,Packets,UpdatedFrames,RemainingPackets,UpdatedState)packetize_aos_frames(+list(compound),+integer,+compound,+list(compound),-list(compound),-list(compound),-compound) - one_or_errorpacketize_aos_frames/8
Packetizes packets across a sequence of AOS transfer frames and also returns explicit packetization events in frame order.
staticpacketize_aos_frames(Frames,SecondaryHeaderLength,State,Packets,UpdatedFrames,RemainingPackets,UpdatedState,Events)packetize_aos_frames(+list(compound),+integer,+compound,+list(compound),-list(compound),-list(compound),-compound,-list(compound)) - one_or_errorgenerate_idle_packet/4
Generates a telemetry idle packet using APID 2047, the given packet secondary header length, sequence count, and user-data length.
staticgenerate_idle_packet(SecondaryHeaderLength,SequenceCount,UserDataLength,Packet)generate_idle_packet(+integer,+integer,+integer,-compound) - one_or_errorProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)