added missing function to reader #183

Merged
muellerr merged 1 commits from add-ccsds-id-function-to-reader into main 2025-10-31 16:56:13 +01:00

View File

@@ -1578,6 +1578,12 @@ impl CcsdsPacketReader<'_> {
&self.sp_header &self.sp_header
} }
/// [CcsdsPacketIdAndPsc] structure for this packet.
#[inline]
pub fn ccsds_packet_id_and_psc(&self) -> CcsdsPacketIdAndPsc {
CcsdsPacketIdAndPsc::new_from_ccsds_packet(self)
}
/// CCSDS packet type. /// CCSDS packet type.
#[inline] #[inline]
pub fn packet_type(&self) -> PacketType { pub fn packet_type(&self) -> PacketType {