From 5eb409f1ecb097c7d18f0f0202a191f60882186b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 24 Sep 2025 19:49:51 +0200 Subject: [PATCH] improve backwards compatibility --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 3854ea0..ea4f156 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -242,6 +242,9 @@ impl From for PacketId { } } +#[deprecated(since = "0.16.0", note = "use PacketSequenceControl instead")] +pub type PacketSequenceCtrl = PacketSequenceControl; + /// Abstraction for the CCSDS Packet Sequence Control (PSC) field which is the /// third and the fourth byte in the CCSDS primary header. #[derive(Debug, PartialEq, Eq, Copy, Clone)] @@ -309,6 +312,12 @@ pub trait CcsdsPacket { usize::from(self.data_len()) + CCSDS_HEADER_LEN + 1 } + #[deprecated(since = "0.16.0", note = "use packet_len instead")] + #[inline] + fn total_len(&self) -> usize { + self.packet_len() + } + /// Retrieve 13 bit Packet Identification field. Can usually be retrieved with a bitwise AND /// of the first 2 bytes with 0x1FFF. #[inline] -- 2.43.0