Struct libftd2xx::EepromHeader[][src]

pub struct EepromHeader(_);
Expand description

FTDI EEPROM header common to all FTDI devices.

Implementations

Set the FTDI device type.

FTDI USB device vendor ID.

This is typically 0x0403.

Set the FTDI USB device vendor ID.

FTDI USB product ID.

Typical FTDI product IDs:

  • 0x6001 FT232AM/FT232BM/FT232R
  • 0x6010 FT2232C/FT2232D/FT2232H
  • 0x6011 FT4232/FT4232H
  • 0x6014 FT232H
  • 0x6015 FT230X/FT231X/FT234X

Set the FTDI USB product ID.

Serial Number Enable.

true if the serial number is to be used.

The documentation is unclear what exactly this means.

Set Serial Number Enable.

Maximum bus current.

The unit for this value is milliamps, and the value range is 0-500 mA.

Set maximum bus current in milliamps.

Values greater than 500 mA (500u16) will result in panic.

Device power source.

  • true if the device is self-powered (not powered by USB bus).
  • false if the device is powered by the USB bus.

Set device power source.

  • true if the device is self-powered (not powered by USB bus).
  • false if the device is powered by the USB bus.

Remote wakeup capabilities.

USB remote wakeup is the ability for the device to resume the PC from USB suspend (sleep) state.

  • true if the device is capable of remote wakeup.
  • false if the device is not capable of remote wakeup.

Set remote wakeup capabilities.

USB remote wakeup is the ability for the device to resume the PC from USB suspend (sleep) state.

  • true if the device is capable of remote wakeup.
  • false if the device is not capable of remote wakeup.

Pull down in suspend mode.

  • true if pull-down in suspend is enabled.
  • false if pull-down in suspend is disabled.

Set pull down in suspend mode.

  • true if pull-down in suspend is enabled.
  • false if pull-down in suspend is disabled.

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

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

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)

recently added

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.