Struct libftd2xx::MpsseSettings[][src]

pub struct MpsseSettings {
    pub reset: bool,
    pub in_transfer_size: u32,
    pub read_timeout: Duration,
    pub write_timeout: Duration,
    pub latency_timer: Duration,
    pub mask: u8,
    pub clock_frequency: Option<u32>,
}

Initialization settings for the MPSSE.

Used by initialize_mpsse.

Fields

reset: bool

Reset the MPSSE on initialization.

This calls reset if true.

in_transfer_size: u32

USB in transfer size in bytes.

This gets passed to set_usb_parameters.

read_timeout: Duration

Read timeout.

This gets passed along with write_timeout to set_timeouts.

write_timeout: Duration

Write timeout.

This gets passed along with read_timeout to set_timeouts.

latency_timer: Duration

Latency timer.

This gets passed to set_latency_timer.

mask: u8

Bitmode mask.

  • A bit value of 0 sets the corresponding pin to an input.
  • A bit value of 1 sets the corresponding pin to an output.

This gets passed to set_bit_mode.

clock_frequency: Option<u32>

Clock frequency.

If not None this will call set_clock to set the clock frequency.

Trait Implementations

impl Clone for MpsseSettings[src]

impl Copy for MpsseSettings[src]

impl Debug for MpsseSettings[src]

impl Default for MpsseSettings[src]

impl Eq for MpsseSettings[src]

impl PartialEq<MpsseSettings> for MpsseSettings[src]

impl StructuralEq for MpsseSettings[src]

impl StructuralPartialEq for MpsseSettings[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.