Struct ccsds_spacepacket::PrimaryHeader [−][src]
pub struct PrimaryHeader {
pub version: u8,
pub packet_type: PacketType,
pub sec_header_flag: SecondaryHeaderFlag,
pub app_proc_id: u16,
pub sequence_flags: SeqFlag,
pub sequence_count: u16,
pub data_length: u16,
}
Fields
version: u8
Packet Version Number - 3 bits
packet_type: PacketType
Packet Type - 1 bit
sec_header_flag: SecondaryHeaderFlag
Secondary Header Flag - 1 bit
app_proc_id: u16
Application Process ID - 11 bits
sequence_flags: SeqFlag
Sequence Flags - 2 bits
sequence_count: u16
Packet Sequence Count or Packet Name - 14 bits
data_length: u16
Packet Data Length - 2 bytes
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PrimaryHeader
impl Send for PrimaryHeader
impl Sync for PrimaryHeader
impl Unpin for PrimaryHeader
impl UnwindSafe for PrimaryHeader
Blanket Implementations
Mutably borrows from an owned value. Read more