This commit is contained in:
@ -1,13 +1,25 @@
|
||||
use super::{TransactionStep, State};
|
||||
use spacepackets::cfdp::{pdu::FileDirectiveType, PduType};
|
||||
|
||||
use super::{State, TransactionStep};
|
||||
|
||||
pub struct DestinationHandler {
|
||||
step: TransactionStep,
|
||||
state: State
|
||||
state: State,
|
||||
}
|
||||
|
||||
impl DestinationHandler {
|
||||
|
||||
pub fn state_machine() {}
|
||||
|
||||
|
||||
pub fn insert_packet(
|
||||
&mut self,
|
||||
pdu_type: PduType,
|
||||
pdu_directive: Option<FileDirectiveType>,
|
||||
raw_packet: &[u8],
|
||||
) {
|
||||
}
|
||||
pub fn state_machine(&mut self) {
|
||||
match self.state {
|
||||
State::Idle => todo!(),
|
||||
State::BusyClass1Nacked => todo!(),
|
||||
State::BusyClass2Acked => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ pub enum TransactionStep {
|
||||
ReceivingFileDataPdus = 2,
|
||||
SendingAckPdu = 3,
|
||||
TransferCompletion = 4,
|
||||
SendingFinishedPdu = 5
|
||||
SendingFinishedPdu = 5,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
||||
@ -20,6 +20,5 @@ pub enum State {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn basic_test() {
|
||||
}
|
||||
fn basic_test() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user