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