Struct StatusRecord

Source
pub struct StatusRecord {
Show 42 fields pub header: CIHeader, pub bf_version: u16, pub da_version: u16, pub flags: u16, pub device_id: u16, pub xd_selected: u8, pub vga_t1: f64, pub vga_t2: f64, pub vga_t3: f64, pub vga_t4: f64, pub psu_t: f64, pub die_t: f64, pub tx_t: f64, pub afe0_top_temp: f64, pub afe0_bot_temp: f64, pub afe1_top_temp: f64, pub afe1_bot_temp: f64, pub afe2_top_temp: f64, pub afe2_bot_temp: f64, pub afe3_top_temp: f64, pub afe3_bot_temp: f64, pub link_type: u16, pub uplink_speed: f64, pub downlink_speed: f64, pub link_quality: u16, pub packet_count: u32, pub recv_error: u32, pub resent_packet_count: u32, pub dropped_packet_count: u32, pub unknown_packet_count: u32, pub lost_line_count: u32, pub general_count: u32, pub sonar_alt_ip: u32, pub surface_ip: u32, pub subnet_mask: [u8; 4], pub mac_addr: [u8; 6], pub boot_sts_register: u32, pub boot_sts_register_da: u32, pub fpga_time: u64, pub dip_switch: u16, pub shutdown_status: u16, pub net_adap_found: bool,
}
Expand description

The Status Record. Holds information on the status of the sonar at this particular time.

Fields§

§header: CIHeader

The CIHeader.

§bf_version: u16

BF Version.

§da_version: u16

DA Version.

§flags: u16

Flags.

§device_id: u16

The Sonar ID.

§xd_selected: u8

XD Selected.

§vga_t1: f64

MK2: FPGA PCB temperature.

§vga_t2: f64

MK2: HSC PCB temperature.

§vga_t3: f64

MK2: DA FPGA.

§vga_t4: f64

VGA Transducer temperature.

§psu_t: f64

PSU Temperature.

§die_t: f64

Die temperature.

§tx_t: f64

Transmit temperature.

§afe0_top_temp: f64

AFE0 Top temperature.

§afe0_bot_temp: f64

AFE0 Bottom temperature.

§afe1_top_temp: f64

AFE1 Top temperature.

§afe1_bot_temp: f64

AFE1 Bottom temperature.

§afe2_top_temp: f64

AFE2 Top temperature.

§afe2_bot_temp: f64

AFE2 Bottom temperature.

§afe3_top_temp: f64

AFE3 Top temperature.

§afe3_bot_temp: f64

AFE3 Bottom temperature.

§link_type: u16

Link type (see 0716-SDS-00001-005 (Genesis Log File Format).pdf).

§uplink_speed: f64

Uplink speed.

§downlink_speed: f64

Downlink spee.

§link_quality: u16

Link quality as percentage.

§packet_count: u32

The packet count (tx and rx).

§recv_error: u32

Received error count.

§resent_packet_count: u32

Number of packets resent.

§dropped_packet_count: u32

Number of dropped packets.

§unknown_packet_count: u32

Number of unknown packets - NOT USED.

§lost_line_count: u32

Lost line count.

§general_count: u32

Packet count for all devices.

§sonar_alt_ip: u32

Alternative IP Address.

§surface_ip: u32

Currently connected surface PC IP Address.

§subnet_mask: [u8; 4]

The subnet mask.

§mac_addr: [u8; 6]

Current MAC Address.

§boot_sts_register: u32

INTERNAL USAGE.

§boot_sts_register_da: u32

INTERNAL USAGE.

§fpga_time: u64

Internal FPGA timestamp.

§dip_switch: u16

INTERNAL USAGE.

§shutdown_status: u16

Shutdown reason (0 temperature, 1 out of water, 2 out of water indicator).

§net_adap_found: bool

Adaptor found?

Trait Implementations§

Source§

impl Clone for StatusRecord

Source§

fn clone(&self) -> StatusRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for StatusRecord

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.