Merge pull request 'add direct APID getter' (#185) from add-direct-ccsds-apid-getter into main
Reviewed-on: #185
This commit was merged in pull request #185.
This commit is contained in:
@@ -675,6 +675,12 @@ impl SpacePacketHeader {
|
|||||||
self.packet_id.packet_type = packet_type;
|
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).
|
/// 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
|
/// This function also returns the remaining part of the passed slice starting past the read
|
||||||
/// CCSDS header.
|
/// CCSDS header.
|
||||||
|
|||||||
Reference in New Issue
Block a user