Struct ublox::CfgTp5Builder

source ·
pub struct CfgTp5Builder {
    pub tp_idx: CfgTp5TimePulseMode,
    pub version: u8,
    pub reserved1: [u8; 2],
    pub ant_cable_delay: f32,
    pub rf_group_delay: f32,
    pub freq_period: f64,
    pub freq_period_lock: f64,
    pub pulse_len_ratio: f64,
    pub pulse_len_ratio_lock: f64,
    pub user_delay: f64,
    pub flags: CfgTp5Flags,
}
Expand description

TP5: “Time Pulse” Config frame (32.10.38.4) Struct that is used to construct packets, see the crate-level documentation for more information

Fields§

§tp_idx: CfgTp5TimePulseMode
§version: u8
§reserved1: [u8; 2]
§ant_cable_delay: f32

Antenna cable delay [ns]

§rf_group_delay: f32

RF group delay [ns]

§freq_period: f64

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

§freq_period_lock: f64

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

§pulse_len_ratio: f64

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

§pulse_len_ratio_lock: f64

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

§user_delay: f64

User configurable time pulse delay in [ns]

§flags: CfgTp5Flags

Configuration flags, see CfgTp5Flags

Implementations§

source§

impl CfgTp5Builder

source

pub const PACKET_LEN: usize = 40usize

source

pub fn into_packet_bytes(self) -> [u8; 40]

Trait Implementations§

source§

impl Default for CfgTp5Builder

source§

fn default() -> CfgTp5Builder

Returns the “default value” for a type. Read more
source§

impl From<CfgTp5Builder> for [u8; 40]

source§

fn from(x: CfgTp5Builder) -> Self

Converts to this type from the input type.
source§

impl UbxPacketCreator for CfgTp5Builder

source§

fn create_packet<T: MemWriter>( self, out: &mut T ) -> Result<(), MemWriterError<T::Error>>

Create packet and store bytes sequence to somewhere using out

Auto Trait Implementations§

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.