added HK subservices
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
2023-02-04 15:16:57 +01:00
parent 8054f4091d
commit cfa5f8099c
3 changed files with 17 additions and 0 deletions

15
src/ecss/hk.rs Normal file
View File

@ -0,0 +1,15 @@
//! PUS Service 3 Housekeeping
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
use num_enum::{IntoPrimitive, TryFromPrimitive};
#[derive(Debug, Eq, PartialEq, Copy, Clone, IntoPrimitive, TryFromPrimitive)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[repr(u8)]
pub enum Subservice {
TcEnableGeneration = 5,
TcDisableGeneration = 6,
TmHkPacket = 25,
TcGenerateOneShotHk = 27,
TcModifyCollectionInterval = 31,
}

View File

@ -16,6 +16,7 @@ use std::error::Error;
pub mod scheduling;
pub mod event;
pub mod verification;
pub mod hk;
pub type CrcType = u16;