Enum libftd2xx::CbusX

source ·
#[repr(u8)]
pub enum CbusX {
Show 22 variants Tristate = 0, TxLed = 1, RxLed = 2, TxRxLed = 3, PowerEnable = 4, Sleep = 5, Drive0 = 6, Drive1 = 7, IoMode = 8, TxDen = 9, Clk24 = 10, Clk12 = 11, Clk6 = 12, BatteryCharger = 13, BatteryChargerN = 14, I2cTxEmpty = 15, I2cRxFull = 16, VbusSense = 17, BitbangWrite = 18, BitbangRead = 19, Timestamp = 20, KeepAwake = 21,
}
Expand description

FT X Series CBUS options.

Variants§

§

Tristate = 0

Tristate.

§

TxLed = 1

TX LED.

§

RxLed = 2

RX LED.

§

TxRxLed = 3

TX and RX LED.

§

PowerEnable = 4

Power enable.

§

Sleep = 5

Sleep.

§

Drive0 = 6

Drive pin to logic 0.

§

Drive1 = 7

Drive pin to logic 1.

§

IoMode = 8

IO Mode doe CBUS bit-bang.

§

TxDen = 9

TX data enable.

§

Clk24 = 10

24MHz clock.

§

Clk12 = 11

12MHz clock.

§

Clk6 = 12

6MHz clock.

§

BatteryCharger = 13

Battery charger detected.

§

BatteryChargerN = 14

Battery charger detected inverted.

§

I2cTxEmpty = 15

I2C Tx empty.

§

I2cRxFull = 16

I2C Rx full.

§

VbusSense = 17

Detect VBUS.

§

BitbangWrite = 18

Bit-bang write strobe.

§

BitbangRead = 19

Bit-bang read strobe.

§

Timestamp = 20

Toggle output when a USB SOF token is received.

§

KeepAwake = 21

No documentation is provided by the source.

Trait Implementations§

source§

impl Clone for CbusX

source§

fn clone(&self) -> CbusX

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CbusX

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for CbusX

source§

fn eq(&self, other: &CbusX) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u8> for CbusX

§

type Error = EepromValueError

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<CbusX, Self::Error>

Performs the conversion.
source§

impl Copy for CbusX

source§

impl Eq for CbusX

source§

impl StructuralPartialEq for CbusX

Auto Trait Implementations§

§

impl RefUnwindSafe for CbusX

§

impl Send for CbusX

§

impl Sync for CbusX

§

impl Unpin for CbusX

§

impl UnwindSafe for CbusX

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.