vrt

Struct Trailer

Source
pub struct Trailer {
Show 26 fields pub calibrated_time_enable: bool, pub valid_data_enable: bool, pub reference_lock_enable: bool, pub agcmgc_enable: bool, pub detected_signal_enable: bool, pub spectral_inversion_enable: bool, pub overrange_enable: bool, pub sample_loss_enable: bool, pub user_defined_enable_1: bool, pub user_defined_enable_2: bool, pub user_defined_enable_3: bool, pub user_defined_enable_4: bool, pub calibrated_time_indicator: bool, pub valid_data_indicator: bool, pub reference_lock_indicator: bool, pub agcmgc_indicator: bool, pub detected_signal_indicator: bool, pub spectral_inversion_indicator: bool, pub overrange_indicator: bool, pub sample_loss_indicator: bool, pub user_defined_indicator_1: bool, pub user_defined_indicator_2: bool, pub user_defined_indicator_3: bool, pub user_defined_indicator_4: bool, pub associated_context_packet_count_enable: bool, pub associated_context_packet_count: u8,
}
Expand description

VRT Packet Trailer

Fields§

§calibrated_time_enable: bool

Indicates whether or not the timestamp in teh IF Data packet is calibrated to an external reference.

§valid_data_enable: bool

Indicates whether or not the data in the packet is valid.

§reference_lock_enable: bool

Indicates whether or not any phase-locked loops affecting the data are locked and stable.

§agcmgc_enable: bool

Indicates the AGC is active when true and indicates the MGC is active when false.

§detected_signal_enable: bool

Indicates whether or not the data contained in the packet containes some detected signal.

§spectral_inversion_enable: bool

Indicates whether or not the signal conveyed in the data payload has an inverted spectrum referenced to the spectrum of the signal at the system Reference Point.

§overrange_enable: bool

Indicates whether or not at least 1 data sample in the payload is invalid due to the signal exceeding the range of the data item.

§sample_loss_enable: bool

Indicates whether or not the packet contains at least one sample discontinuity due to processing errors and/or buffer overflow.

§user_defined_enable_1: bool

Indicates whether or not user defined enable option 1 is set.

§user_defined_enable_2: bool

Indicates whether or not user defined enable option 2 is set.

§user_defined_enable_3: bool

Indicates whether or not user defined enable option 3 is set.

§user_defined_enable_4: bool

Indicates whether or not user defined enable option 4 is set.

§calibrated_time_indicator: bool

To be documented later

§valid_data_indicator: bool

To be documented later

§reference_lock_indicator: bool

To be documented later

§agcmgc_indicator: bool

To be documented later

§detected_signal_indicator: bool

To be documented later

§spectral_inversion_indicator: bool

To be documented later

§overrange_indicator: bool

To be documented later

§sample_loss_indicator: bool

To be documented later

§user_defined_indicator_1: bool

To be documented later

§user_defined_indicator_2: bool

To be documented later

§user_defined_indicator_3: bool

To be documented later

§user_defined_indicator_4: bool

To be documented later

§associated_context_packet_count_enable: bool

Indicates whether or not the associated_context_packet_count is defined.

§associated_context_packet_count: u8

A count of all transmitted context packets that are directly or indirectly associated with the IF Data packet or a count of some special subset of these.

Implementations§

Source§

impl Trailer

Source

pub fn parse(i: &[u8]) -> IResult<&[u8], Trailer>

Parse the VRT packet trailer

Trait Implementations§

Source§

impl Clone for Trailer

Source§

fn clone(&self) -> Trailer

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Trailer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Trailer

Source§

fn eq(&self, other: &Trailer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Trailer

Source§

impl Eq for Trailer

Source§

impl StructuralPartialEq for Trailer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.