4 Commits

Author SHA1 Message Date
ae55c394bb Merge branch 'all_features' of https://egit.irs.uni-stuttgart.de/rust/spacepackets into all_features
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
2022-12-30 23:03:47 +01:00
30a9cb8c5b add feature flag to avoid unused imports 2022-12-30 23:03:28 +01:00
f8feb027de Merge branch 'sp_header_getter' into all_features
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
2022-12-21 22:10:54 +01:00
2758699601 added sp header getter function
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
2022-12-21 22:09:45 +01:00
2 changed files with 5 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 {

View File

@@ -4,6 +4,7 @@
//! [chrono::format::DelayedFormat] structs.
#[cfg(feature = "alloc")]
use chrono::format::{DelayedFormat, StrftimeItems};
#[cfg(feature = "alloc")]
use chrono::{DateTime, Utc};
/// Tuple of format string and formatted size for time code A.