This commit is contained in:
parent
d42999d2ad
commit
54bc37b086
@ -15,18 +15,14 @@ pub trait ApidLookup {
|
||||
/// The parser will write all packets which were decoded successfully to the given `tc_receiver`.
|
||||
pub fn parse_buffer_for_ccsds_space_packets<E>(
|
||||
buf: &mut [u8],
|
||||
apid_lookup: &dyn ApidLookup,
|
||||
tc_receiver: &mut dyn ReceivesTc<Error = E>,
|
||||
next_write_idx: &mut usize,
|
||||
_apid_lookup: &dyn ApidLookup,
|
||||
_tc_receiver: &mut dyn ReceivesTc<Error = E>,
|
||||
_next_write_idx: &mut usize,
|
||||
) -> Result<u32, E> {
|
||||
let mut start_index_packet = 0;
|
||||
let mut start_found = false;
|
||||
let mut last_byte = false;
|
||||
let mut packets_found = 0;
|
||||
for i in 0..buf.len() {
|
||||
let packets_found = 0;
|
||||
for _ in 0..buf.len() {
|
||||
todo!();
|
||||
}
|
||||
// Split frame at the end for a multi-packet frame. Move it to the front of the buffer.
|
||||
if start_index_packet > 0 && start_found && packets_found > 0 {}
|
||||
Ok(packets_found)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user