Enum libftd2xx::ClockDataOut
source · #[repr(u8)]pub enum ClockDataOut {
MsbPos = 16,
MsbNeg = 17,
LsbPos = 24,
LsbNeg = 25,
}
Expand description
Modes for clocking data out of the FTDI device.
This is an argument to the clock_data_out
method.
Variants§
MsbPos = 16
Positive clock edge MSB first.
The data is sent MSB first.
The data will change to the next bit on the rising edge of the CLK pin.
MsbNeg = 17
Negative clock edge MSB first.
The data is sent MSB first.
The data will change to the next bit on the falling edge of the CLK pin.
LsbPos = 24
Positive clock edge LSB 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 = 25
Negative clock edge LSB 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 ClockDataOut
impl Clone for ClockDataOut
source§fn clone(&self) -> ClockDataOut
fn clone(&self) -> ClockDataOut
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 ClockDataOut
impl Debug for ClockDataOut
source§impl PartialEq for ClockDataOut
impl PartialEq for ClockDataOut
source§fn eq(&self, other: &ClockDataOut) -> bool
fn eq(&self, other: &ClockDataOut) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClockDataOut
impl Eq for ClockDataOut
impl StructuralPartialEq for ClockDataOut
Auto Trait Implementations§
impl RefUnwindSafe for ClockDataOut
impl Send for ClockDataOut
impl Sync for ClockDataOut
impl Unpin for ClockDataOut
impl UnwindSafe for ClockDataOut
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