From 275869960166249889bd20cfe37f273f203c105a Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 21 Dec 2022 22:09:45 +0100 Subject: [PATCH] added sp header getter function --- src/tc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tc.rs b/src/tc.rs index 9db2e86..268e5eb 100644 --- a/src/tc.rs +++ b/src/tc.rs @@ -279,6 +279,10 @@ impl<'slice> PusTc<'slice> { ) } + pub fn sp_header(&self) -> &SpHeader { + &self.sp_header + } + pub fn len_packed(&self) -> usize { let mut length = PUS_TC_MIN_LEN_WITHOUT_APP_DATA; if let Some(app_data) = self.app_data {