Struct libftd2xx::Eeprom232h

source ·
pub struct Eeprom232h(/* private fields */);
Expand description

EEPROM structure for the FT232H.

This is used by the eeprom_read and eeprom_program methods.

Implementations§

source§

impl Eeprom232h

source

pub fn header(&self) -> EepromHeader

Get the EEPROM header.

source

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

Set the EEPROM header.

source

pub fn ft1248_cpol(&self) -> ClockPolarity

FT1248 clock polarity.

source

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

Set FT1248 clock polarity.

source

pub fn ft1248_byteorder(&self) -> ByteOrder

FT1248 byte order.

source

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

Set FT1248 byte order.

source

pub fn ft1248_flow_control(&self) -> bool

FT1248 flow control enable.

source

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

Set FT1248 flow control enable.

source

pub fn is_fifo(&self) -> bool

FT245 FIFO interface mode.

source

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

Set FT245 FIFO interface mode.

source

pub fn is_fifo_target(&self) -> bool

FT245 FIFO CPU target mode.

source

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

Set FT245 FIFO CPU target mode.

source

pub fn is_fast_serial(&self) -> bool

Fast serial interface mode.

source

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

Set Fast serial interface mode.

source

pub fn is_ft1248(&self) -> bool

FT1248 interface mode.

source

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

Set FT1248 interface mode.

source

pub fn power_save_enable(&self) -> bool

Power save enable.

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

source

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

Set power save enable.

source§

impl Eeprom232h

source

pub fn ad_slow_slew(&self) -> bool

Slow slew for bus AD.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus AD.

source

pub fn ad_schmitt_input(&self) -> bool

Schmitt input for bus AD.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus AD.

source

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

Drive current for bus AD.

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

source

pub fn ad_drive_current_unchecked(&self) -> u8

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.

source

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

Set drive current for bus AD.

source

pub fn ac_slow_slew(&self) -> bool

Slow slew for bus AC.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus AC.

source

pub fn ac_schmitt_input(&self) -> bool

Schmitt input for bus AC.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus AC.

source

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

Drive current for bus AC.

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

source

pub fn ac_drive_current_unchecked(&self) -> u8

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.

source

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

Set drive current for bus AC.

source§

impl Eeprom232h

source

pub fn cbus0_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus0 pin.

source

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

Get the value of the Cbus0 pin.

source

pub fn cbus1_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus1 pin.

source

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

Get the value of the Cbus1 pin.

source

pub fn cbus2_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus2 pin.

source

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

Get the value of the Cbus2 pin.

source

pub fn cbus3_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus3 pin.

source

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

Get the value of the Cbus3 pin.

source

pub fn cbus4_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus4 pin.

source

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

Get the value of the Cbus4 pin.

source

pub fn cbus5_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus5 pin.

source

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

Get the value of the Cbus5 pin.

source

pub fn cbus6_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus6 pin.

source

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

Get the value of the Cbus6 pin.

source

pub fn cbus7_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus7 pin.

source

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

Get the value of the Cbus7 pin.

source

pub fn cbus8_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus8 pin.

source

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

Get the value of the Cbus8 pin.

source

pub fn cbus9_unchecked(&self) -> u8

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.

source

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

Get the value of the Cbus9 pin.

source

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

Get the value of the Cbus9 pin.

source§

impl Eeprom232h

source

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

Get the device driver type.

source

pub fn driver_type_unchecked(&self) -> u8

Get the unchecked device driver type.

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

source

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

Set the device driver type.

Trait Implementations§

source§

impl Clone for Eeprom232h

source§

fn clone(&self) -> Eeprom232h

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 Eeprom232h

source§

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

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

impl Default for Eeprom232h

source§

fn default() -> Self

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

impl From<Eeprom232h> for FT_EEPROM_232H

source§

fn from(val: Eeprom232h) -> FT_EEPROM_232H

Converts to this type from the input type.
source§

impl From<ft_eeprom_232h> for Eeprom232h

source§

fn from(val: FT_EEPROM_232H) -> Eeprom232h

Converts to this type from the input type.
source§

impl FtdiEeprom<ft_eeprom_232h, Eeprom232h> for Ft232h

source§

fn eeprom_read(&mut self) -> Result<(Eeprom, EepromStrings), FtStatus>

Read from the FTD2XX device EEPROM. Read more
source§

fn eeprom_program( &mut self, eeprom: Eeprom, strings: EepromStrings ) -> Result<(), FtStatus>

Program the FTD2XX EEPROM. Read more
source§

impl Copy for Eeprom232h

Auto Trait Implementations§

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.