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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MpsseSettings
impl Send for MpsseSettings
impl Sync for MpsseSettings
impl Unpin for MpsseSettings
impl UnwindSafe for MpsseSettings
Blanket Implementations
Mutably borrows from an owned value. Read more