#[repr(C, packed(1))]pub struct PositionPacket {Show 15 fields
pub reserved_head: [u8; 187],
pub top_board_temperature: u8,
pub bottom_board_temperature: u8,
pub last_adc_calibration_temperature: u8,
pub last_adc_calibration_temperature_change: u16,
pub seconds_since_last_adc_calibration: u32,
pub last_adc_calibration_reason: LastAdcCalibrationReason,
pub adc_calibration_bitmask: u8,
pub toh: u32,
pub pps_status: PpsStatus,
pub thermal_status: ThermalStatus,
pub last_shutdown_temperature: u8,
pub temperature_of_unit_at_power_up: u8,
pub nmea: [u8; 128],
pub reserved_tail: [u8; 178],
}Fields§
§reserved_head: [u8; 187]§top_board_temperature: u8§bottom_board_temperature: u8§last_adc_calibration_temperature: u8§last_adc_calibration_temperature_change: u16§seconds_since_last_adc_calibration: u32§last_adc_calibration_reason: LastAdcCalibrationReason§adc_calibration_bitmask: u8§toh: u32§pps_status: PpsStatus§thermal_status: ThermalStatus§last_shutdown_temperature: u8§temperature_of_unit_at_power_up: u8§nmea: [u8; 128]§reserved_tail: [u8; 178]Implementations§
Source§impl PositionPacket
impl PositionPacket
Sourcepub fn from_pcap(packet: &Packet<'_>) -> Result<Self>
pub fn from_pcap(packet: &Packet<'_>) -> Result<Self>
Construct packet from pcap::Packet.
Sourcepub fn from_buffer(buffer: [u8; 512]) -> Self
pub fn from_buffer(buffer: [u8; 512]) -> Self
Construct packet from binary buffer.
Sourcepub fn from_slice(buffer: &[u8]) -> Result<&Self>
pub fn from_slice(buffer: &[u8]) -> Result<&Self>
Construct packet from slice of bytes. Fail if the slice size is not correct.
pub fn calibration_in_progress(&self) -> bool
pub fn meet_delta_temperature(&self) -> bool
pub fn meet_periodic_elapsed_time_limit(&self) -> bool
Trait Implementations§
Source§impl Clone for PositionPacket
impl Clone for PositionPacket
Source§fn clone(&self) -> PositionPacket
fn clone(&self) -> PositionPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PositionPacket
impl Debug for PositionPacket
Source§impl Hash for PositionPacket
impl Hash for PositionPacket
Source§impl PartialEq for PositionPacket
impl PartialEq for PositionPacket
impl Copy for PositionPacket
impl Eq for PositionPacket
impl StructuralPartialEq for PositionPacket
Auto Trait Implementations§
impl Freeze for PositionPacket
impl RefUnwindSafe for PositionPacket
impl Send for PositionPacket
impl Sync for PositionPacket
impl Unpin for PositionPacket
impl UnwindSafe for PositionPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more