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

Modes for clocking bits out of the FTDI device.

This is an argument to the clock_bits_out method.

Variants

MsbPos

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

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.