Struct ublox::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 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 Serialize for CfgTp5Ref<'_>

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> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.