Merge pull request 'added sp header getter function' (#6) from sp_header_getter into main
Rust/spacepackets/pipeline/head This commit looks good Details

Reviewed-on: #6
This commit is contained in:
Robin Müller 2022-12-22 09:06:33 +01:00
commit a14ae37cac
1 changed files with 4 additions and 0 deletions

View File

@ -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 {