#[non_exhaustive]#[repr(u8)]pub enum MpsseCmd {
Show 16 variants
SetDataBitsLowbyte = 128,
GetDataBitsLowbyte = 129,
SetDataBitsHighbyte = 130,
GetDataBitsHighbyte = 131,
EnableLoopback = 132,
DisableLoopback = 133,
SetClockFrequency = 134,
SendImmediate = 135,
WaitOnIOHigh = 136,
WaitOnIOLow = 137,
DisableClockDivide = 138,
EnableClockDivide = 139,
Enable3PhaseClocking = 140,
Disable3PhaseClocking = 141,
EnableAdaptiveClocking = 150,
DisableAdaptiveClocking = 151,
}
Expand description
MPSSE opcodes.
Exported for use by mpsse
macro. May also be used for manual command array construction.
Data clocking MPSSE commands are broken out into separate enums for API ergonomics:
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SetDataBitsLowbyte = 128
Used by set_gpio_lower
.
GetDataBitsLowbyte = 129
Used by gpio_lower
.
SetDataBitsHighbyte = 130
Used by set_gpio_upper
.
GetDataBitsHighbyte = 131
Used by gpio_upper
.
EnableLoopback = 132
Used by enable_loopback
.
DisableLoopback = 133
Used by disable_loopback
.
SetClockFrequency = 134
Used by set_clock
.
SendImmediate = 135
Used by send_immediate
.
WaitOnIOHigh = 136
Used by wait_on_io_high
.
WaitOnIOLow = 137
Used by wait_on_io_low
.
DisableClockDivide = 138
Used by set_clock
.
EnableClockDivide = 139
Used by set_clock
.
Enable3PhaseClocking = 140
Used by enable_3phase_data_clocking
.
Disable3PhaseClocking = 141
Used by disable_3phase_data_clocking
.
EnableAdaptiveClocking = 150
Used by disable_adaptive_data_clocking
.
DisableAdaptiveClocking = 151
Used by enable_adaptive_data_clocking
.
Trait Implementations§
source§impl PartialEq for MpsseCmd
impl PartialEq for MpsseCmd
impl Copy for MpsseCmd
impl Eq for MpsseCmd
impl StructuralPartialEq for MpsseCmd
Auto Trait Implementations§
impl RefUnwindSafe for MpsseCmd
impl Send for MpsseCmd
impl Sync for MpsseCmd
impl Unpin for MpsseCmd
impl UnwindSafe for MpsseCmd
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