[][src]Struct ether_dream::protocol::DacBroadcast

#[repr(C)]pub struct DacBroadcast {
    pub mac_address: [u8; 6],
    pub hw_revision: u16,
    pub sw_revision: u16,
    pub buffer_capacity: u16,
    pub max_point_rate: u32,
    pub dac_status: DacStatus,
}

Regardless of the data source being used, each DAC broadcasts a status/ID datagram over UDP to its local network's broadcast address once per second.

Fields

mac_address: [u8; 6]

The unique hardware identifier for the DAC.

hw_revision: u16

This field is undocumented in the official protocol but seems to represent a version number for the hardware in use by the DAC.

sw_revision: u16

This field is undocumented in the official protocol but seems to represent the version of the protocol implementation. As of writing this, this is hardcoded as 2 in the original source.

buffer_capacity: u16

The DAC's maximum buffer capacity for storing points that are yet to be converted to output.

As of writing this, this is hardcoded to 1800 in the original DAC source code.

max_point_rate: u32

The DAC's maximum point rate.

As of writing this, this is hardcoded to 100_000 in the original DAC source code.

dac_status: DacStatus

The current status of the DAC.

Trait Implementations

impl Clone for DacBroadcast[src]

impl Copy for DacBroadcast[src]

impl Debug for DacBroadcast[src]

impl Eq for DacBroadcast[src]

impl Hash for DacBroadcast[src]

impl PartialEq<DacBroadcast> for DacBroadcast[src]

impl ReadFromBytes for DacBroadcast[src]

impl SizeBytes for DacBroadcast[src]

impl StructuralEq for DacBroadcast[src]

impl StructuralPartialEq for DacBroadcast[src]

impl WriteToBytes for DacBroadcast[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.