this API is useful for funnels
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2deac938bb
commit
4485ed2669
@ -427,6 +427,14 @@ impl<'raw> PusTmZeroCopyWriter<'raw> {
|
|||||||
Some(Self { raw_tm })
|
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
|
/// Set the sequence count. Returns false and does not update the value if the passed value
|
||||||
/// exceeds [MAX_APID].
|
/// exceeds [MAX_APID].
|
||||||
pub fn set_apid(&mut self, apid: u16) -> bool {
|
pub fn set_apid(&mut self, apid: u16) -> bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user