[][src]Enum mpsse::command::Command

pub enum Command {
    ReadDataShiftBits {
        options: DataShiftOptions,
        length: u8,
    },
    ReadDataShiftBytes {
        options: DataShiftOptions,
        length: u16,
    },
    WriteDataShiftBits {
        options: DataShiftOptions,
        bits: u8,
        length: u8,
    },
    WriteDataShiftBytes {
        options: DataShiftOptions,
        bytes: Vec<u8>,
    },
    SetBits {
        range: PinRange,
        value: PinValueArray,
        direction: PinDirectionArray,
    },
    ReadBits {
        range: PinRange,
    },
    SetLoopback {
        enable: bool,
    },
    SetClockDivisor {
        divisor: u16,
    },
    WaitForIo {
        value: PinValue,
    },
}

Variants

ReadDataShiftBits

Fields of ReadDataShiftBits

options: DataShiftOptionslength: u8
ReadDataShiftBytes

Fields of ReadDataShiftBytes

options: DataShiftOptionslength: u16
WriteDataShiftBits

Fields of WriteDataShiftBits

options: DataShiftOptionsbits: u8length: u8
WriteDataShiftBytes

Fields of WriteDataShiftBytes

options: DataShiftOptionsbytes: Vec<u8>
SetBits

Fields of SetBits

range: PinRangevalue: PinValueArraydirection: PinDirectionArray
ReadBits

Fields of ReadBits

range: PinRange
SetLoopback

Fields of SetLoopback

enable: bool
SetClockDivisor

Fields of SetClockDivisor

divisor: u16
WaitForIo

Fields of WaitForIo

value: PinValue

Implementations

impl Command[src]

Trait Implementations

impl Debug for Command[src]

impl Into<Vec<u8, Global>> for Command[src]

impl IntoIterator for Command[src]

type Item = u8

The type of the elements being iterated over.

type IntoIter = IntoIter<u8>

Which kind of iterator are we turning this into?

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, 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.