this API is useful for funnels
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2023-07-05 19:28:43 +02:00
parent 2deac938bb
commit 4485ed2669
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -427,6 +427,14 @@ impl<'raw> PusTmZeroCopyWriter<'raw> {
Some(Self { raw_tm })
}
pub fn service(&self) -> u8 {
self.raw_tm[7]
}
pub fn subservice(&self) -> u8 {
self.raw_tm[8]
}
/// Set the sequence count. Returns false and does not update the value if the passed value
/// exceeds [MAX_APID].
pub fn set_apid(&mut self, apid: u16) -> bool {