NavClockRef

Struct NavClockRef 

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

Navigation clock solution, current receiver clock bias and drift estimates Contains a reference to an underlying buffer, contains accessor methods to retrieve data.

Implementations§

Source§

impl<'a> NavClockRef<'a>

Source

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

Source

pub fn payload_len(&self) -> usize

Source

pub fn to_owned(&self) -> NavClockOwned

Source

pub fn itow_raw(&self) -> u32

GPS time of week, in s

Source

pub fn itow(&self) -> f64

GPS time of week, in s

Source

pub fn clk_bias_raw(&self) -> i32

Receiver clock bias (offset) in s

Source

pub fn clk_bias(&self) -> f64

Receiver clock bias (offset) in s

Source

pub fn clk_drift_raw(&self) -> i32

Clock drift (offset variations) [s/s]

Source

pub fn clk_drift(&self) -> f64

Clock drift (offset variations) [s/s]

Source

pub fn time_acc_raw(&self) -> u32

time accuracy estimate

Source

pub fn time_acc(&self) -> f64

time accuracy estimate

Source

pub fn freq_acc_raw(&self) -> u32

frequency accuracy estimate [s/s]

Source

pub fn freq_acc(&self) -> f64

frequency accuracy estimate [s/s]

Trait Implementations§

Source§

impl Debug for NavClockRef<'_>

Source§

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

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

impl<'a> From<&NavClockRef<'a>> for NavClockOwned

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<NavClockRef<'a>> for NavClockOwned

Source§

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

Converts to this type from the input type.
Source§

impl Serialize for NavClockRef<'_>

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 NavClockRef<'a>

§

impl<'a> RefUnwindSafe for NavClockRef<'a>

§

impl<'a> Send for NavClockRef<'a>

§

impl<'a> Sync for NavClockRef<'a>

§

impl<'a> Unpin for NavClockRef<'a>

§

impl<'a> UnwindSafe for NavClockRef<'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.