#[repr(u8)]pub enum BitMode {
Reset = 0,
AsyncBitbang = 1,
Mpsse = 2,
SyncBitbang = 4,
McuHost = 8,
FastSerial = 16,
CbusBitbang = 32,
SyncFifo = 64,
}
Expand description
BitModes for the FTDI ports.
This structure is passed to set_bit_mode
to set the bit mode.
Variants§
Reset = 0
Reset.
AsyncBitbang = 1
Asynchronous bit bang.
Mpsse = 2
MPSSE (FT2232, FT2232H, FT4232H(A) and FT232H devices only)
SyncBitbang = 4
Synchronous Bit Bang (FT232R, FT245R,FT2232, FT2232H, FT4232H and FT232H devices only)
McuHost = 8
MCU Host Bus Emulation Mode (FT2232, FT2232H, FT4232Hand FT232H devices only)
FastSerial = 16
FastOpto-Isolated Serial Mode (FT2232, FT2232H, FT4232H and FT232H devices only)
CbusBitbang = 32
CBUS Bit Bang Mode (FT232R and FT232H devices only)
SyncFifo = 64
Single Channel Synchronous 245 FIFO Mode (FT2232H and FT232H devices only)
Trait Implementations§
impl Copy for BitMode
impl Eq for BitMode
impl StructuralPartialEq for BitMode
Auto Trait Implementations§
impl Freeze for BitMode
impl RefUnwindSafe for BitMode
impl Send for BitMode
impl Sync for BitMode
impl Unpin for BitMode
impl UnwindSafe for BitMode
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