CFDP destination handler #62

Merged
muellerr merged 49 commits from cfdp-state-machines into main 2023-09-21 18:47:07 +02:00
3 changed files with 39 additions and 0 deletions
Showing only changes of commit 0e2a413505 - Show all commits

View File

@ -0,0 +1,13 @@
use super::{TransactionStep, State};
pub struct DestinationHandler {
step: TransactionStep,
state: State
}
impl DestinationHandler {
pub fn state_machine() {}
}

View File

@ -0,0 +1,25 @@
pub mod dest;
#[derive(Copy, Clone, PartialEq, Eq)]
pub enum TransactionStep {
Idle = 0,
TransactionStart = 1,
ReceivingFileDataPdus = 2,
SendingAckPdu = 3,
TransferCompletion = 4,
SendingFinishedPdu = 5
}
#[derive(Copy, Clone, PartialEq, Eq)]
pub enum State {
Idle = 0,
BusyClass1Nacked = 2,
BusyClass2Acked = 3,
}
#[cfg(test)]
mod tests {
#[test]
fn basic_test() {
}
}

View File

@ -40,6 +40,7 @@ pub mod request;
pub mod res_code;
pub mod seq_count;
pub mod tmtc;
pub mod cfdp;
pub use spacepackets;