Function ccsds::decode_framed_packets
source · pub fn decode_framed_packets<'a>(
scid: SCID,
frames: Box<dyn Iterator<Item = DecodedFrame> + Send + 'a>,
izone_length: usize,
trailer_length: usize
) -> impl Iterator<Item = Packet> + Send + 'aExpand description
Decodes the provided frames into a packets contained within the frames’ MPDUs.
There are several cases when frame data cannot be fully recovered and is dropped, i.e., not used to construct packets:
- Missing frames
- Frames with state rs2::RSState::Uncorrectable
- Fill Frames
- Frames before the first header is available in an MPDU
This will handle frames from multiple spacecrafts, i.e., with different SCIDs.