Struct libftd2xx::MpsseSettings
source · 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.
Settings can be written to the device with the appropriate
implementation of init
method.
Fields§
§reset: bool
Reset the MPSSE on initialization.
in_transfer_size: u32
USB in transfer size in bytes.
read_timeout: Duration
Read timeout.
write_timeout: Duration
Write timeout.
latency_timer: Duration
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.
clock_frequency: Option<u32>
Clock frequency.
If None
, then no frequency changes will be applied.
Trait Implementations§
source§impl Clone for MpsseSettings
impl Clone for MpsseSettings
source§fn clone(&self) -> MpsseSettings
fn clone(&self) -> MpsseSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MpsseSettings
impl Debug for MpsseSettings
source§impl Default for MpsseSettings
impl Default for MpsseSettings
source§fn default() -> MpsseSettings
fn default() -> MpsseSettings
Returns the “default value” for a type. Read more
source§impl PartialEq for MpsseSettings
impl PartialEq for MpsseSettings
source§fn eq(&self, other: &MpsseSettings) -> bool
fn eq(&self, other: &MpsseSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MpsseSettings
impl Eq for MpsseSettings
impl StructuralPartialEq for MpsseSettings
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more