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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.