From aa275e2c01f59f3677ade32c1995d9b6c1197654 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 24 Jul 2022 17:33:30 +0200 Subject: [PATCH] add new time module --- src/lib.rs | 1 + src/tc.rs | 2 ++ src/time.rs | 1 + 3 files changed, 4 insertions(+) create mode 100644 src/time.rs diff --git a/src/lib.rs b/src/lib.rs index dcdb111..cf9eb94 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ use crate::ecss::CCSDS_HEADER_LEN; use serde::{Deserialize, Serialize}; pub mod ecss; +pub mod time; pub mod tc; pub mod tm; diff --git a/src/tc.rs b/src/tc.rs index 05c2b7d..325f327 100644 --- a/src/tc.rs +++ b/src/tc.rs @@ -158,6 +158,8 @@ impl PusTcDataFieldHeader { /// This struct models a PUS telecommand and which can also be used. It is the primary data /// structure to generate the raw byte representation of a PUS telecommand or to /// deserialize from one from raw bytes. +/// +/// There is no spare bytes support. #[derive(PartialEq, Copy, Clone, Serialize, Deserialize, Debug)] pub struct PusTc<'slice> { pub sph: SpHeader, diff --git a/src/time.rs b/src/time.rs new file mode 100644 index 0000000..17f061f --- /dev/null +++ b/src/time.rs @@ -0,0 +1 @@ +trait CcsdsTimeProvider {} \ No newline at end of file