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

This commit is contained in:
Robin Müller 2023-02-04 15:16:57 +01:00
parent 8054f4091d
commit cfa5f8099c
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- `ecss.event` module containing a `Subservice` enum. - `ecss.event` module containing a `Subservice` enum.
- `ecss.verification` module containing a `Subservice` enum. - `ecss.verification` module containing a `Subservice` enum.
- `ecss.scheduling` module containing a `Subservice` enum and some other helper enumerations. - `ecss.scheduling` module containing a `Subservice` enum and some other helper enumerations.
- `ecss.hk` module containing a `Subservice` enum.
## Changed ## Changed

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 scheduling;
pub mod event; pub mod event;
pub mod verification; pub mod verification;
pub mod hk;
pub type CrcType = u16; pub type CrcType = u16;