Enum libftd2xx::ClockBitsOut
source · #[repr(u8)]pub enum ClockBitsOut {
MsbPos = 18,
MsbNeg = 19,
LsbPos = 26,
LsbNeg = 27,
}
Expand description
Modes for clocking bits out of the FTDI device.
This is an argument to the clock_bits_out
method.
Variants§
MsbPos = 18
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 = 19
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 = 26
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 = 27
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§
source§impl Clone for ClockBitsOut
impl Clone for ClockBitsOut
source§fn clone(&self) -> ClockBitsOut
fn clone(&self) -> ClockBitsOut
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 ClockBitsOut
impl Debug for ClockBitsOut
source§impl PartialEq for ClockBitsOut
impl PartialEq for ClockBitsOut
source§fn eq(&self, other: &ClockBitsOut) -> bool
fn eq(&self, other: &ClockBitsOut) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClockBitsOut
impl Eq for ClockBitsOut
impl StructuralPartialEq for ClockBitsOut
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§
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