From c3bce2774757212afb7db629d1be92b936947fd0 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 21 Sep 2023 15:11:00 +0200 Subject: [PATCH] push some progress --- satrs-core/src/encoding/ccsds.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/satrs-core/src/encoding/ccsds.rs b/satrs-core/src/encoding/ccsds.rs index fe84f3f..141e81a 100644 --- a/satrs-core/src/encoding/ccsds.rs +++ b/satrs-core/src/encoding/ccsds.rs @@ -55,6 +55,7 @@ impl PacketIdLookup for &[PacketId] { false } } + /// This function parses a given buffer for tightly packed CCSDS space packets. It uses the /// [PacketId] field of the CCSDS packets to detect the start of a CCSDS space packet and then /// uses the length field of the packet to extract CCSDS packets. @@ -101,4 +102,12 @@ pub fn parse_buffer_for_ccsds_space_packets( } #[cfg(test)] -mod tests {} +mod tests { + use spacepackets::{ecss::tc::PusTcCreator, SpHeader}; + + #[test] + fn test_basic() { + let sph = SpHeader::tc_unseg(0x02, 0, 0); + let ping_tc = PusTcCreator::new_simple(sph, service, subservice, app_data, set_ccsds_len) + } +}