add direct APID getter

This commit is contained in:
Robin Mueller
2025-11-04 15:39:37 +01:00
parent e7cb6f2a7a
commit a8b64f2fef

View File

@@ -675,6 +675,12 @@ impl SpacePacketHeader {
self.packet_id.packet_type = packet_type;
}
/// Application Process ID (APID) field.
#[inline]
pub fn apid(&self) -> u11 {
self.packet_id.apid
}
/// Create a struct from a raw slice where the fields have network endianness (big).
/// This function also returns the remaining part of the passed slice starting past the read
/// CCSDS header.