Enum ftdi_mpsse::ClockBitsOut
source · [−]#[repr(u8)]
pub enum ClockBitsOut {
MsbPos,
MsbNeg,
LsbPos,
LsbNeg,
}
Expand description
Modes for clocking bits out of the FTDI device.
This is an argument to the clock_bits_out
method.
Variants
MsbPos
Positive clock edge MSB first.
The data is sent MSB first (bit 7 first).
The data will change to the next bit on the rising edge of the CLK pin.
MsbNeg
Negative clock edge MSB first.
The data is sent MSB first (bit 7 first).
The data will change to the next bit on the falling edge of the CLK pin.
LsbPos
Positive clock edge LSB first (bit 0 first).
The first bit in will be the LSB of the first byte and so on.
The data will change to the next bit on the rising edge of the CLK pin.
LsbNeg
Negative clock edge LSB first (bit 0 first).
The first bit in will be the LSB of the first byte and so on.
The data will change to the next bit on the falling edge of the CLK pin.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ClockBitsOut
impl Send for ClockBitsOut
impl Sync for ClockBitsOut
impl Unpin for ClockBitsOut
impl UnwindSafe for ClockBitsOut
Blanket Implementations
Mutably borrows from an owned value. Read more