[][src]Struct ether_dream::protocol::DacResponse

#[repr(C)]pub struct DacResponse {
    pub response: u8,
    pub command: u8,
    pub dac_status: DacStatus,
}

A response from a DAC.

Fields

response: u8

See the DacResponse associated constants for the possible values for this field.

command: u8

In the case of ACK/NAK responses, this echoes back the command to which the response is sent.

Commands are always sent in order, so this field exists for sanity-checking on the host-side.

dac_status: DacStatus

The current status of the DAC.

Methods

impl DacResponse[src]

pub const ACK: u8[src]

The previous command was accepted.

pub const NAK_FULL: u8[src]

The write command could not be performed because there was not enough buffer space when it was received.

pub const NAK_INVALID: u8[src]

The command contained an invalid command byte or parameters.

pub const NAK_STOP_CONDITION: u8[src]

An emergency-stop condition still exists.

Trait Implementations

impl Clone for DacResponse[src]

impl Copy for DacResponse[src]

impl Debug for DacResponse[src]

impl Eq for DacResponse[src]

impl Hash for DacResponse[src]

impl PartialEq<DacResponse> for DacResponse[src]

impl ReadFromBytes for DacResponse[src]

impl SizeBytes for DacResponse[src]

impl StructuralEq for DacResponse[src]

impl StructuralPartialEq for DacResponse[src]

impl WriteToBytes for DacResponse[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.