just add support for everything
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
2024-03-29 13:42:02 +01:00
parent c7cf83d468
commit 3045a27d8c
21 changed files with 67 additions and 4 deletions

View File

@ -37,6 +37,7 @@ pub const MAX_CUC_LEN_SMALL_PREAMBLE: usize = 8;
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum FractionalResolution {
/// No fractional part, only second resolution
Seconds = 0,
@ -105,6 +106,7 @@ pub fn fractional_part_from_subsec_ns(res: FractionalResolution, ns: u64) -> Fra
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum CucError {
InvalidCounterWidth(u8),
/// Invalid counter supplied.