Enum libftd2xx::ClockBitsIn[][src]

#[repr(u8)]pub enum ClockBitsIn {
    MsbPos,
    MsbNeg,
    LsbPos,
    LsbNeg,
}

Modes for clocking data bits into the FTDI device.

This is an argument to the clock_bits_in method.

Variants

MsbPos

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

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

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

Negative clock edge LSB first.

The data will be shifted down so that thefirst 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

impl Clone for ClockBitsIn[src]

impl Copy for ClockBitsIn[src]

impl Debug for ClockBitsIn[src]

impl Eq for ClockBitsIn[src]

impl PartialEq<ClockBitsIn> for ClockBitsIn[src]

impl StructuralEq for ClockBitsIn[src]

impl StructuralPartialEq for ClockBitsIn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.