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
impl CfgTp5Builder
pub const PACKET_LEN: usize = 40usize
pub fn into_packet_bytes(self) -> [u8; 40]
Trait Implementations§
source§impl Default for CfgTp5Builder
impl Default for CfgTp5Builder
source§fn default() -> CfgTp5Builder
fn default() -> CfgTp5Builder
Returns the “default value” for a type. Read more
source§impl From<CfgTp5Builder> for [u8; 40]
impl From<CfgTp5Builder> for [u8; 40]
source§fn from(x: CfgTp5Builder) -> Self
fn from(x: CfgTp5Builder) -> Self
Converts to this type from the input type.
source§impl UbxPacketCreator for CfgTp5Builder
impl UbxPacketCreator for CfgTp5Builder
source§fn create_packet<T: MemWriter>(
self,
out: &mut T
) -> Result<(), MemWriterError<T::Error>>
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§
impl RefUnwindSafe for CfgTp5Builder
impl Send for CfgTp5Builder
impl Sync for CfgTp5Builder
impl Unpin for CfgTp5Builder
impl UnwindSafe for CfgTp5Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more