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>,
}
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.