Struct libftd2xx::Eeprom232h[][src]

pub struct Eeprom232h(_);

EEPROM structure for the FT232H.

This is used by the eeprom_read and eeprom_program methods.

Implementations

impl Eeprom232h[src]

pub fn header(&self) -> EepromHeader[src]

Get the EEPROM header.

pub fn set_header(&mut self, header: EepromHeader)[src]

Set the EEPROM header.

pub fn ft1248_cpol(&self) -> ClockPolarity[src]

FT1248 clock polarity.

pub fn set_ft1248_cpol(&mut self, value: ClockPolarity)[src]

Set FT1248 clock polarity.

pub fn ft1248_byteorder(&self) -> ByteOrder[src]

FT1248 byte order.

pub fn set_ft1248_byteorder(&mut self, value: ByteOrder)[src]

Set FT1248 byte order.

pub fn ft1248_flow_control(&self) -> bool[src]

FT1248 flow control enable.

pub fn set_ft1248_flow_control(&mut self, value: bool)[src]

Set FT1248 flow control enable.

pub fn is_fifo(&self) -> bool[src]

FT245 FIFO interface mode.

pub fn set_is_fifo(&mut self, value: bool)[src]

Set FT245 FIFO interface mode.

pub fn is_fifo_target(&self) -> bool[src]

FT245 FIFO CPU target mode.

pub fn set_is_fifo_target(&mut self, value: bool)[src]

Set FT245 FIFO CPU target mode.

pub fn is_fast_serial(&self) -> bool[src]

Fast serial interface mode.

pub fn set_is_fast_serial(&mut self, value: bool)[src]

Set Fast serial interface mode.

pub fn is_ft1248(&self) -> bool[src]

FT1248 interface mode.

pub fn set_is_ft1248(&mut self, value: bool)[src]

Set FT1248 interface mode.

pub fn power_save_enable(&self) -> bool[src]

Power save enable.

Use a pin to save power for self-powered designs.

pub fn set_power_save_enable(&mut self, value: bool)[src]

Set power save enable.

impl Eeprom232h[src]

pub fn ad_slow_slew(&self) -> bool[src]

Slow slew for bus AD.

true if the pins on this bus have slow slew.

pub fn set_ad_slow_slew(&mut self, value: bool)[src]

Set slow slew for bus AD.

pub fn ad_schmitt_input(&self) -> bool[src]

Schmitt input for bus AD.

true if the pins on this bus are Schmitt input.

pub fn set_ad_schmitt_input(&mut self, value: bool)[src]

Set Schmitt input for bus AD.

pub fn ad_drive_current(&self) -> Result<DriveCurrent, EepromValueError>[src]

Drive current for bus AD.

This is the drive current for the pins on this bus.

pub fn ad_drive_current_unchecked(&self) -> u8[src]

Drive current unchecked for bus AD.

Valid values are 4mA, 8mA, 12mA, or 16mA, represented by 4u8, 8u8, 12u8, or 16u8 respectively.

This is the unchecked raw value retrived from the EEPROM and it may not be a valid value.

pub fn set_ad_drive_current(&mut self, value: DriveCurrent)[src]

Set drive current for bus AD.

pub fn ac_slow_slew(&self) -> bool[src]

Slow slew for bus AC.

true if the pins on this bus have slow slew.

pub fn set_ac_slow_slew(&mut self, value: bool)[src]

Set slow slew for bus AC.

pub fn ac_schmitt_input(&self) -> bool[src]

Schmitt input for bus AC.

true if the pins on this bus are Schmitt input.

pub fn set_ac_schmitt_input(&mut self, value: bool)[src]

Set Schmitt input for bus AC.

pub fn ac_drive_current(&self) -> Result<DriveCurrent, EepromValueError>[src]

Drive current for bus AC.

This is the drive current for the pins on this bus.

pub fn ac_drive_current_unchecked(&self) -> u8[src]

Drive current unchecked for bus AC.

Valid values are 4mA, 8mA, 12mA, or 16mA, represented by 4u8, 8u8, 12u8, or 16u8 respectively.

This is the unchecked raw value retrived from the EEPROM and it may not be a valid value.

pub fn set_ac_drive_current(&mut self, value: DriveCurrent)[src]

Set drive current for bus AC.

impl Eeprom232h[src]

pub fn cbus0_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus0 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus0(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus0 pin.

pub fn set_cbus0(&mut self, value: Cbus232h)[src]

Get the value of the Cbus0 pin.

pub fn cbus1_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus1 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus1(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus1 pin.

pub fn set_cbus1(&mut self, value: Cbus232h)[src]

Get the value of the Cbus1 pin.

pub fn cbus2_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus2 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus2(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus2 pin.

pub fn set_cbus2(&mut self, value: Cbus232h)[src]

Get the value of the Cbus2 pin.

pub fn cbus3_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus3 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus3(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus3 pin.

pub fn set_cbus3(&mut self, value: Cbus232h)[src]

Get the value of the Cbus3 pin.

pub fn cbus4_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus4 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus4(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus4 pin.

pub fn set_cbus4(&mut self, value: Cbus232h)[src]

Get the value of the Cbus4 pin.

pub fn cbus5_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus5 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus5(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus5 pin.

pub fn set_cbus5(&mut self, value: Cbus232h)[src]

Get the value of the Cbus5 pin.

pub fn cbus6_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus6 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus6(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus6 pin.

pub fn set_cbus6(&mut self, value: Cbus232h)[src]

Get the value of the Cbus6 pin.

pub fn cbus7_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus7 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus7(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus7 pin.

pub fn set_cbus7(&mut self, value: Cbus232h)[src]

Get the value of the Cbus7 pin.

pub fn cbus8_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus8 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus8(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus8 pin.

pub fn set_cbus8(&mut self, value: Cbus232h)[src]

Get the value of the Cbus8 pin.

pub fn cbus9_unchecked(&self) -> u8[src]

Get the unchecked value of the Cbus9 pin.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn cbus9(&self) -> Result<Cbus232h, EepromValueError>[src]

Get the value of the Cbus9 pin.

pub fn set_cbus9(&mut self, value: Cbus232h)[src]

Get the value of the Cbus9 pin.

impl Eeprom232h[src]

pub fn driver_type(&self) -> Result<DriverType, EepromValueError>[src]

Get the device driver type.

pub fn driver_type_unchecked(&self) -> u8[src]

Get the unchecked device driver type.

This is the unchecked raw value retrieved from the EEPROM and it may not be a valid value.

pub fn set_driver_type(&mut self, value: DriverType)[src]

Set the device driver type.

Trait Implementations

impl Clone for Eeprom232h[src]

impl Copy for Eeprom232h[src]

impl Debug for Eeprom232h[src]

impl Default for Eeprom232h[src]

impl From<ft_eeprom_232h> for Eeprom232h[src]

impl FtdiEeprom<ft_eeprom_232h, Eeprom232h> for Ft232h[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.