add direct APID getter #185

Merged
muellerr merged 1 commits from add-direct-ccsds-apid-getter into main 2025-11-04 15:40:10 +01:00
+6
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.