Struct libftd2xx::Eeprom4232h

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

EEPROM structure for the FT4232H.

This is used by the eeprom_read and eeprom_program methods.

Implementations§

source§

impl Eeprom4232h

source

pub fn header(&self) -> EepromHeader

Get the EEPROM header.

source

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

Set the EEPROM header.

source§

impl Eeprom4232h

source

pub fn a_slow_slew(&self) -> bool

Slow slew for bus A.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus A.

source

pub fn a_schmitt_input(&self) -> bool

Schmitt input for bus A.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus A.

source

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

Drive current for bus A.

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

source

pub fn a_drive_current_unchecked(&self) -> u8

Drive current unchecked for bus A.

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_a_drive_current(&mut self, value: DriveCurrent)

Set drive current for bus A.

source

pub fn b_slow_slew(&self) -> bool

Slow slew for bus B.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus B.

source

pub fn b_schmitt_input(&self) -> bool

Schmitt input for bus B.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus B.

source

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

Drive current for bus B.

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

source

pub fn b_drive_current_unchecked(&self) -> u8

Drive current unchecked for bus B.

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_b_drive_current(&mut self, value: DriveCurrent)

Set drive current for bus B.

source

pub fn c_slow_slew(&self) -> bool

Slow slew for bus C.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus C.

source

pub fn c_schmitt_input(&self) -> bool

Schmitt input for bus C.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus C.

source

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

Drive current for bus C.

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

source

pub fn c_drive_current_unchecked(&self) -> u8

Drive current unchecked for bus C.

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_c_drive_current(&mut self, value: DriveCurrent)

Set drive current for bus C.

source

pub fn d_slow_slew(&self) -> bool

Slow slew for bus D.

true if the pins on this bus have slow slew.

source

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

Set slow slew for bus D.

source

pub fn d_schmitt_input(&self) -> bool

Schmitt input for bus D.

true if the pins on this bus are Schmitt input.

source

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

Set Schmitt input for bus D.

source

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

Drive current for bus D.

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

source

pub fn d_drive_current_unchecked(&self) -> u8

Drive current unchecked for bus D.

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_d_drive_current(&mut self, value: DriveCurrent)

Set drive current for bus D.

source§

impl Eeprom4232h

source

pub fn a_ri_is_tx_data_enable(&self) -> bool

Use port A as RS485 TX data enable.

source

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

Use port A as RS485 TX data enable.

source

pub fn b_ri_is_tx_data_enable(&self) -> bool

Use port B as RS485 TX data enable.

source

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

Use port B as RS485 TX data enable.

source

pub fn c_ri_is_tx_data_enable(&self) -> bool

Use port C as RS485 TX data enable.

source

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

Use port C as RS485 TX data enable.

source

pub fn d_ri_is_tx_data_enable(&self) -> bool

Use port D as RS485 TX data enable.

source

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

Use port D as RS485 TX data enable.

source§

impl Eeprom4232h

source

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

Get the driver type for port A.

source

pub fn a_driver_type_unchecked(&self) -> u8

Get the unchecked driver type for port A.

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

source

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

Set the driver type for port A.

source

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

Get the driver type for port B.

source

pub fn b_driver_type_unchecked(&self) -> u8

Get the unchecked driver type for port B.

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

source

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

Set the driver type for port B.

source

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

Get the driver type for port C.

source

pub fn c_driver_type_unchecked(&self) -> u8

Get the unchecked driver type for port C.

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

source

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

Set the driver type for port C.

source

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

Get the driver type for port D.

source

pub fn d_driver_type_unchecked(&self) -> u8

Get the unchecked driver type for port D.

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

source

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

Set the driver type for port D.

Trait Implementations§

source§

impl Clone for Eeprom4232h

source§

fn clone(&self) -> Eeprom4232h

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 Eeprom4232h

source§

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

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

impl Default for Eeprom4232h

source§

fn default() -> Self

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

impl From<Eeprom4232h> for FT_EEPROM_4232H

source§

fn from(val: Eeprom4232h) -> FT_EEPROM_4232H

Converts to this type from the input type.
source§

impl From<ft_eeprom_4232h> for Eeprom4232h

source§

fn from(val: FT_EEPROM_4232H) -> Eeprom4232h

Converts to this type from the input type.
source§

impl FtdiEeprom<ft_eeprom_4232h, Eeprom4232h> for Ft4232h

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 Eeprom4232h

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.