PTC and PFC extensions
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
- Add Ptc typedefinition for PacketTypeCode enum - Add `UnsignedPfc` and `RealPfc` PFC enumerations
This commit is contained in:
parent
66d77fda36
commit
46e2af41d2
30
src/ecss.rs
30
src/ecss.rs
@ -55,6 +55,36 @@ pub enum PacketTypeCodes {
|
|||||||
Packet = 12,
|
Packet = 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub type Ptc = PacketTypeCodes;
|
||||||
|
|
||||||
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
|
pub enum UnsignedPfc {
|
||||||
|
OneByte = 4,
|
||||||
|
TwelveBits = 8,
|
||||||
|
TwoBytes = 12,
|
||||||
|
ThreeBytes = 13,
|
||||||
|
FourBytes = 14,
|
||||||
|
SixBytes = 15,
|
||||||
|
EightBytes = 16,
|
||||||
|
OneBit = 17,
|
||||||
|
TwoBits = 18,
|
||||||
|
ThreeBits = 19,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
|
pub enum RealPfc {
|
||||||
|
/// 4 octets simple precision format (IEEE)
|
||||||
|
Float = 1,
|
||||||
|
/// 8 octets simple precision format (IEEE)
|
||||||
|
Double = 2,
|
||||||
|
/// 4 octets simple precision format (MIL-STD)
|
||||||
|
FloatMilStd = 3,
|
||||||
|
/// 8 octets simple precision format (MIL-STD)
|
||||||
|
DoubleMilStd = 4,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub enum PusError {
|
pub enum PusError {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user