CfgTp5Ref

Struct CfgTp5Ref 

Source
pub struct CfgTp5Ref<'a>(/* private fields */);
Expand description

TP5: “Time Pulse” Config frame (32.10.38.4) Contains a reference to an underlying buffer, contains accessor methods to retrieve data.

Implementations§

Source§

impl<'a> CfgTp5Ref<'a>

Source

pub fn as_bytes(&self) -> &[u8]

Source

pub fn payload_len(&self) -> usize

Source

pub fn to_owned(&self) -> CfgTp5Owned

Source

pub fn tp_idx_raw(&self) -> u8

Source

pub fn tp_idx(&self) -> CfgTp5TimePulseMode

Source

pub fn version(&self) -> u8

Source

pub fn reserved1(&self) -> [u8; 2]

Source

pub fn ant_cable_delay_raw(&self) -> i16

Antenna cable delay [ns]

Source

pub fn ant_cable_delay(&self) -> f32

Antenna cable delay [ns]

Source

pub fn rf_group_delay_raw(&self) -> i16

RF group delay [ns]

Source

pub fn rf_group_delay(&self) -> f32

RF group delay [ns]

Source

pub fn freq_period_raw(&self) -> u32

Frequency in Hz or Period in us, depending on flags::IS_FREQ bit

Source

pub fn freq_period(&self) -> f64

Frequency in Hz or Period in us, depending on flags::IS_FREQ bit

Source

pub fn freq_period_lock_raw(&self) -> u32

Frequency in Hz or Period in us, when locked to GPS time. Only used when flags::LOCKED_OTHER_SET is set

Source

pub fn freq_period_lock(&self) -> f64

Frequency in Hz or Period in us, when locked to GPS time. Only used when flags::LOCKED_OTHER_SET is set

Source

pub fn pulse_len_ratio_raw(&self) -> u32

Pulse length or duty cycle, [us] or [*2^-32], depending on flags::LS_LENGTH bit

Source

pub fn pulse_len_ratio(&self) -> f64

Pulse length or duty cycle, [us] or [*2^-32], depending on flags::LS_LENGTH bit

Source

pub fn pulse_len_ratio_lock_raw(&self) -> u32

Pulse Length in us or duty cycle (*2^-32), when locked to GPS time. Only used when flags::LOCKED_OTHER_SET is set

Source

pub fn pulse_len_ratio_lock(&self) -> f64

Pulse Length in us or duty cycle (*2^-32), when locked to GPS time. Only used when flags::LOCKED_OTHER_SET is set

Source

pub fn user_delay_raw(&self) -> i32

User configurable time pulse delay in [ns]

Source

pub fn user_delay(&self) -> f64

User configurable time pulse delay in [ns]

Source

pub fn flags_raw(&self) -> u32

Configuration flags, see CfgTp5Flags

Source

pub fn flags(&self) -> CfgTp5Flags

Configuration flags, see CfgTp5Flags

Trait Implementations§

Source§

impl Debug for CfgTp5Ref<'_>

Source§

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

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

impl<'a> From<&CfgTp5Ref<'a>> for CfgTp5Owned

Source§

fn from(packet: &CfgTp5Ref<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CfgTp5Ref<'a>> for CfgTp5Owned

Source§

fn from(packet: CfgTp5Ref<'a>) -> Self

Converts to this type from the input type.
Source§

impl Serialize for CfgTp5Ref<'_>

Available on crate feature serde only.
Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for CfgTp5Ref<'a>

§

impl<'a> RefUnwindSafe for CfgTp5Ref<'a>

§

impl<'a> Send for CfgTp5Ref<'a>

§

impl<'a> Sync for CfgTp5Ref<'a>

§

impl<'a> Unpin for CfgTp5Ref<'a>

§

impl<'a> UnwindSafe for CfgTp5Ref<'a>

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> 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, 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.