pub enum Command<'rd, 'wr> {
ReadData(DataShiftOptions, &'rd mut [u8]),
WriteData(DataShiftOptions, &'wr [u8]),
TransactData(DataShiftOptions, &'wr [u8], DataShiftOptions, &'rd mut [u8]),
SetLowGpio(GpioDirection, u8),
GetLowGpio(&'rd mut u8),
SetClockDivisor(u16),
DisableDivBy5,
InvalidCommand,
}
Expand description
MPSSE Command
s are used to configure the device, set or get GPIOs or
perform serial data transfers.
Variants§
ReadData(DataShiftOptions, &'rd mut [u8])
WriteData(DataShiftOptions, &'wr [u8])
TransactData(DataShiftOptions, &'wr [u8], DataShiftOptions, &'rd mut [u8])
SetLowGpio(GpioDirection, u8)
GetLowGpio(&'rd mut u8)
SetClockDivisor(u16)
DisableDivBy5
InvalidCommand
Implementations§
Auto Trait Implementations§
impl<'rd, 'wr> Freeze for Command<'rd, 'wr>
impl<'rd, 'wr> RefUnwindSafe for Command<'rd, 'wr>
impl<'rd, 'wr> Send for Command<'rd, 'wr>
impl<'rd, 'wr> Sync for Command<'rd, 'wr>
impl<'rd, 'wr> Unpin for Command<'rd, 'wr>
impl<'rd, 'wr> !UnwindSafe for Command<'rd, 'wr>
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