Enum libftd2xx::ClockBitsIn
source · #[repr(u8)]pub enum ClockBitsIn {
MsbPos = 34,
MsbNeg = 38,
LsbPos = 42,
LsbNeg = 46,
}
Expand description
Modes for clocking data bits into the FTDI device.
This is an argument to the clock_bits_in
method.
Variants§
MsbPos = 34
Positive clock edge MSB first.
The data will be shifted up so that the first bit in may not be in bit 7 but from 6 downwards depending on the number of bits to shift (i.e. a length of 1 bit will have the data bit sampled in bit 0 of the byte sent back to the PC).
The data will be sampled on the rising edge of the CLK pin.
MsbNeg = 38
Negative clock edge MSB first.
The data will be shifted up so that the first bit in may not be in bit 7 but from 6 downwards depending on the number of bits to shift (i.e. a length of 1 bit will have the data bit sampled in bit 0 of the byte sent back to the PC).
The data will be sampled on the falling edge of the CLK pin.
LsbPos = 42
Positive clock edge LSB first.
The data will be shifted down so that the first bit in may not be in bit 0 but from 1 upwards depending on the number of bits to shift (i.e. a length of 1 bit will have the data bit sampled in bit 7 of the byte sent back to the PC).
The data will be sampled on the rising edge of the CLK pin.
LsbNeg = 46
Negative clock edge LSB first.
The data will be shifted down so that the first bit in may not be in bit 0 but from 1 upwards depending on the number of bits to shift (i.e. a length of 1 bit will have the data bit sampled in bit 7 of the byte sent back to the PC).
The data will be sampled on the falling edge of the CLK pin.
Trait Implementations§
source§impl Clone for ClockBitsIn
impl Clone for ClockBitsIn
source§fn clone(&self) -> ClockBitsIn
fn clone(&self) -> ClockBitsIn
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClockBitsIn
impl Debug for ClockBitsIn
source§impl PartialEq for ClockBitsIn
impl PartialEq for ClockBitsIn
source§fn eq(&self, other: &ClockBitsIn) -> bool
fn eq(&self, other: &ClockBitsIn) -> bool
self
and other
values to be equal, and is used
by ==
.