extensions
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

- Add source_data getter for PusTm
- Add std time info updater for CDS short time stamp provider
This commit is contained in:
2022-09-03 20:54:37 +02:00
parent bb83e67e54
commit c72c5ad4aa
3 changed files with 18 additions and 3 deletions

View File

@ -259,6 +259,10 @@ impl<'slice> PusTm<'slice> {
self.sec_header.time_stamp
}
pub fn source_data(&self) -> Option<&'slice [u8]> {
self.source_data
}
pub fn set_dest_id(&mut self, dest_id: u16) {
self.sec_header.dest_id = dest_id;
}