This commit is contained in:
parent
223b637eb8
commit
88793cfa87
@ -1,8 +1,14 @@
|
|||||||
use super::scheduler::PusSchedulerProvider;
|
use super::scheduler::PusSchedulerProvider;
|
||||||
use super::verification::VerificationReportingProvider;
|
use super::verification::{
|
||||||
|
VerificationReporterWithSharedPoolMpscBoundedSender,
|
||||||
|
VerificationReporterWithSharedPoolMpscSender, VerificationReporterWithVecMpscBoundedSender,
|
||||||
|
VerificationReporterWithVecMpscSender, VerificationReportingProvider,
|
||||||
|
};
|
||||||
use super::{
|
use super::{
|
||||||
get_current_cds_short_timestamp, EcssTcInMemConverter, EcssTcReceiverCore, EcssTmSenderCore,
|
get_current_cds_short_timestamp, EcssTcInMemConverter, EcssTcInSharedStoreConverter,
|
||||||
PusServiceHelper,
|
EcssTcInVecConverter, EcssTcReceiverCore, EcssTmSenderCore, MpscTcReceiver, PusServiceHelper,
|
||||||
|
TmAsVecSenderWithBoundedMpsc, TmAsVecSenderWithMpsc, TmInSharedPoolSenderWithBoundedMpsc,
|
||||||
|
TmInSharedPoolSenderWithMpsc,
|
||||||
};
|
};
|
||||||
use crate::pool::PoolProvider;
|
use crate::pool::PoolProvider;
|
||||||
use crate::pus::{PusPacketHandlerResult, PusPacketHandlingError};
|
use crate::pus::{PusPacketHandlerResult, PusPacketHandlingError};
|
||||||
@ -187,6 +193,42 @@ impl<
|
|||||||
Ok(PusPacketHandlerResult::RequestHandled)
|
Ok(PusPacketHandlerResult::RequestHandled)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// Helper type definition for a PUS 11 handler with a dynamic TMTC memory backend and regular
|
||||||
|
/// mpsc queues.
|
||||||
|
pub type PusService11SchedHandlerDynWithMpsc<PusScheduler> = PusService11SchedHandler<
|
||||||
|
MpscTcReceiver,
|
||||||
|
TmAsVecSenderWithMpsc,
|
||||||
|
EcssTcInVecConverter,
|
||||||
|
VerificationReporterWithVecMpscSender,
|
||||||
|
PusScheduler,
|
||||||
|
>;
|
||||||
|
/// Helper type definition for a PUS 11 handler with a dynamic TMTC memory backend and bounded MPSC
|
||||||
|
/// queues.
|
||||||
|
pub type PusService11SchedHandlerDynWithBoundedMpsc<PusScheduler> = PusService11SchedHandler<
|
||||||
|
MpscTcReceiver,
|
||||||
|
TmAsVecSenderWithBoundedMpsc,
|
||||||
|
EcssTcInVecConverter,
|
||||||
|
VerificationReporterWithVecMpscBoundedSender,
|
||||||
|
PusScheduler,
|
||||||
|
>;
|
||||||
|
/// Helper type definition for a PUS 11 handler with a shared store TMTC memory backend and regular
|
||||||
|
/// mpsc queues.
|
||||||
|
pub type PusService11SchedHandlerStaticWithMpsc<PusScheduler> = PusService11SchedHandler<
|
||||||
|
MpscTcReceiver,
|
||||||
|
TmInSharedPoolSenderWithMpsc,
|
||||||
|
EcssTcInSharedStoreConverter,
|
||||||
|
VerificationReporterWithSharedPoolMpscSender,
|
||||||
|
PusScheduler,
|
||||||
|
>;
|
||||||
|
/// Helper type definition for a PUS 11 handler with a shared store TMTC memory backend and bounded
|
||||||
|
/// mpsc queues.
|
||||||
|
pub type PusService11SchedHandlerStaticWithBoundedMpsc<PusScheduler> = PusService11SchedHandler<
|
||||||
|
MpscTcReceiver,
|
||||||
|
TmInSharedPoolSenderWithBoundedMpsc,
|
||||||
|
EcssTcInSharedStoreConverter,
|
||||||
|
VerificationReporterWithSharedPoolMpscBoundedSender,
|
||||||
|
PusScheduler,
|
||||||
|
>;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
@ -5,11 +5,16 @@ use spacepackets::ecss::tm::{PusTmCreator, PusTmSecondaryHeader};
|
|||||||
use spacepackets::ecss::PusPacket;
|
use spacepackets::ecss::PusPacket;
|
||||||
use spacepackets::SpHeader;
|
use spacepackets::SpHeader;
|
||||||
|
|
||||||
use super::verification::VerificationReportingProvider;
|
use super::verification::{
|
||||||
|
VerificationReporterWithSharedPoolMpscBoundedSender,
|
||||||
|
VerificationReporterWithSharedPoolMpscSender, VerificationReporterWithVecMpscBoundedSender,
|
||||||
|
VerificationReporterWithVecMpscSender, VerificationReportingProvider,
|
||||||
|
};
|
||||||
use super::{
|
use super::{
|
||||||
get_current_cds_short_timestamp, EcssTcInMemConverter, EcssTcReceiverCore, EcssTmSenderCore,
|
get_current_cds_short_timestamp, EcssTcInMemConverter, EcssTcInSharedStoreConverter,
|
||||||
MpscTcReceiver, PusServiceHelper, TmAsVecSenderWithBoundedMpsc, TmAsVecSenderWithMpsc,
|
EcssTcInVecConverter, EcssTcReceiverCore, EcssTmSenderCore, MpscTcReceiver, PusServiceHelper,
|
||||||
TmInSharedPoolSenderWithBoundedMpsc, TmInSharedPoolSenderWithMpsc,
|
TmAsVecSenderWithBoundedMpsc, TmAsVecSenderWithMpsc, TmInSharedPoolSenderWithBoundedMpsc,
|
||||||
|
TmInSharedPoolSenderWithMpsc,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// This is a helper class for [std] environments to handle generic PUS 17 (test service) packets.
|
/// This is a helper class for [std] environments to handle generic PUS 17 (test service) packets.
|
||||||
@ -111,34 +116,38 @@ impl<
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type PusService17TestHandlerDynWithMpsc<TcInMemConverter, VerificationReporter> =
|
/// Helper type definition for a PUS 17 handler with a dynamic TMTC memory backend and regular
|
||||||
PusService17TestHandler<
|
/// mpsc queues.
|
||||||
MpscTcReceiver,
|
pub type PusService17TestHandlerDynWithMpsc = PusService17TestHandler<
|
||||||
TmAsVecSenderWithMpsc,
|
MpscTcReceiver,
|
||||||
TcInMemConverter,
|
TmAsVecSenderWithMpsc,
|
||||||
VerificationReporter,
|
EcssTcInVecConverter,
|
||||||
>;
|
VerificationReporterWithVecMpscSender,
|
||||||
pub type PusService17TestHandlerDynWithBoundedMpsc<TcInMemConverter, VerificationReporter> =
|
>;
|
||||||
PusService17TestHandler<
|
/// Helper type definition for a PUS 17 handler with a dynamic TMTC memory backend and bounded MPSC
|
||||||
MpscTcReceiver,
|
/// queues.
|
||||||
TmAsVecSenderWithBoundedMpsc,
|
pub type PusService17TestHandlerDynWithBoundedMpsc = PusService17TestHandler<
|
||||||
TcInMemConverter,
|
MpscTcReceiver,
|
||||||
VerificationReporter,
|
TmAsVecSenderWithBoundedMpsc,
|
||||||
>;
|
EcssTcInVecConverter,
|
||||||
pub type PusService17TestHandlerStaticWithMpsc<TcInMemConverter, VerificationReporter> =
|
VerificationReporterWithVecMpscBoundedSender,
|
||||||
PusService17TestHandler<
|
>;
|
||||||
MpscTcReceiver,
|
/// Helper type definition for a PUS 17 handler with a shared store TMTC memory backend and regular
|
||||||
TmInSharedPoolSenderWithMpsc,
|
/// mpsc queues.
|
||||||
TcInMemConverter,
|
pub type PusService17TestHandlerStaticWithMpsc = PusService17TestHandler<
|
||||||
VerificationReporter,
|
MpscTcReceiver,
|
||||||
>;
|
TmInSharedPoolSenderWithMpsc,
|
||||||
pub type PusService17TestHandlerStaticWithBoundedMpsc<TcInMemConverter, VerificationReporter> =
|
EcssTcInSharedStoreConverter,
|
||||||
PusService17TestHandler<
|
VerificationReporterWithSharedPoolMpscSender,
|
||||||
MpscTcReceiver,
|
>;
|
||||||
TmInSharedPoolSenderWithBoundedMpsc,
|
/// Helper type definition for a PUS 17 handler with a shared store TMTC memory backend and bounded
|
||||||
TcInMemConverter,
|
/// mpsc queues.
|
||||||
VerificationReporter,
|
pub type PusService17TestHandlerStaticWithBoundedMpsc = PusService17TestHandler<
|
||||||
>;
|
MpscTcReceiver,
|
||||||
|
TmInSharedPoolSenderWithBoundedMpsc,
|
||||||
|
EcssTcInSharedStoreConverter,
|
||||||
|
VerificationReporterWithSharedPoolMpscBoundedSender,
|
||||||
|
>;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user