[−][src]Struct ether_dream::dac::Dac
A simple abstraction around a single Ether Dream DAC.
This type monitors the multiple state machines described within the protocol and provides access to information about the Ether Dream hardware and software implementations.
Fields
hw_revision: u16
This 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 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 maximum number of points that the DAC may buffer at once.
max_point_rate: u32
The maximum rate at which the DAC may process buffered points.
status: Status
A more rust-esque version of the ether_dream::protocol::DacState
.
The DAC sends its status with each DacBroadcast
and DacResponse
.
Methods
impl Dac
[src]
pub fn update_status(&mut self, status: &DacStatus) -> Result<(), ProtocolError>
[src]
Update the inner status given a new protocol representation.
Trait Implementations
impl Clone for Dac
[src]
impl Copy for Dac
[src]
impl Debug for Dac
[src]
impl Eq for Dac
[src]
impl Hash for Dac
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Dac> for Dac
[src]
impl StructuralEq for Dac
[src]
impl StructuralPartialEq for Dac
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dac
impl Send for Dac
impl Sync for Dac
impl Unpin for Dac
impl UnwindSafe for Dac
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,