Struct libftd2xx::Eeprom4232h [−][src]
EEPROM structure for the FT4232H.
This is used by the eeprom_read
and eeprom_program
methods.
Implementations
impl Eeprom4232h
[src]
pub fn header(&self) -> EepromHeader
[src]
Get the EEPROM header.
pub fn set_header(&mut self, header: EepromHeader)
[src]
Set the EEPROM header.
impl Eeprom4232h
[src]
pub fn a_slow_slew(&self) -> bool
[src]
Slow slew for bus A.
true
if the pins on this bus have slow slew.
pub fn set_a_slow_slew(&mut self, value: bool)
[src]
Set slow slew for bus A.
pub fn a_schmitt_input(&self) -> bool
[src]
Schmitt input for bus A.
true
if the pins on this bus are Schmitt input.
pub fn set_a_schmitt_input(&mut self, value: bool)
[src]
Set Schmitt input for bus A.
pub fn a_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
[src]
Drive current for bus A.
This is the drive current for the pins on this bus.
pub fn a_drive_current_unchecked(&self) -> u8
[src]
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.
pub fn set_a_drive_current(&mut self, value: DriveCurrent)
[src]
Set drive current for bus A.
pub fn b_slow_slew(&self) -> bool
[src]
Slow slew for bus B.
true
if the pins on this bus have slow slew.
pub fn set_b_slow_slew(&mut self, value: bool)
[src]
Set slow slew for bus B.
pub fn b_schmitt_input(&self) -> bool
[src]
Schmitt input for bus B.
true
if the pins on this bus are Schmitt input.
pub fn set_b_schmitt_input(&mut self, value: bool)
[src]
Set Schmitt input for bus B.
pub fn b_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
[src]
Drive current for bus B.
This is the drive current for the pins on this bus.
pub fn b_drive_current_unchecked(&self) -> u8
[src]
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.
pub fn set_b_drive_current(&mut self, value: DriveCurrent)
[src]
Set drive current for bus B.
pub fn c_slow_slew(&self) -> bool
[src]
Slow slew for bus C.
true
if the pins on this bus have slow slew.
pub fn set_c_slow_slew(&mut self, value: bool)
[src]
Set slow slew for bus C.
pub fn c_schmitt_input(&self) -> bool
[src]
Schmitt input for bus C.
true
if the pins on this bus are Schmitt input.
pub fn set_c_schmitt_input(&mut self, value: bool)
[src]
Set Schmitt input for bus C.
pub fn c_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
[src]
Drive current for bus C.
This is the drive current for the pins on this bus.
pub fn c_drive_current_unchecked(&self) -> u8
[src]
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.
pub fn set_c_drive_current(&mut self, value: DriveCurrent)
[src]
Set drive current for bus C.
pub fn d_slow_slew(&self) -> bool
[src]
Slow slew for bus D.
true
if the pins on this bus have slow slew.
pub fn set_d_slow_slew(&mut self, value: bool)
[src]
Set slow slew for bus D.
pub fn d_schmitt_input(&self) -> bool
[src]
Schmitt input for bus D.
true
if the pins on this bus are Schmitt input.
pub fn set_d_schmitt_input(&mut self, value: bool)
[src]
Set Schmitt input for bus D.
pub fn d_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
[src]
Drive current for bus D.
This is the drive current for the pins on this bus.
pub fn d_drive_current_unchecked(&self) -> u8
[src]
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.
pub fn set_d_drive_current(&mut self, value: DriveCurrent)
[src]
Set drive current for bus D.
impl Eeprom4232h
[src]
pub fn a_ri_is_tx_data_enable(&self) -> bool
[src]
Use port A as RS485 TX data enable.
pub fn set_a_ri_is_tx_data_enable(&mut self, value: bool)
[src]
Use port A as RS485 TX data enable.
pub fn b_ri_is_tx_data_enable(&self) -> bool
[src]
Use port B as RS485 TX data enable.
pub fn set_b_ri_is_tx_data_enable(&mut self, value: bool)
[src]
Use port B as RS485 TX data enable.
pub fn c_ri_is_tx_data_enable(&self) -> bool
[src]
Use port C as RS485 TX data enable.
pub fn set_c_ri_is_tx_data_enable(&mut self, value: bool)
[src]
Use port C as RS485 TX data enable.
pub fn d_ri_is_tx_data_enable(&self) -> bool
[src]
Use port D as RS485 TX data enable.
pub fn set_d_ri_is_tx_data_enable(&mut self, value: bool)
[src]
Use port D as RS485 TX data enable.
impl Eeprom4232h
[src]
pub fn a_driver_type(&self) -> Result<DriverType, EepromValueError>
[src]
Get the driver type for port A.
pub fn a_driver_type_unchecked(&self) -> u8
[src]
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.
pub fn set_a_driver_type(&mut self, value: DriverType)
[src]
Set the driver type for port A.
pub fn b_driver_type(&self) -> Result<DriverType, EepromValueError>
[src]
Get the driver type for port B.
pub fn b_driver_type_unchecked(&self) -> u8
[src]
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.
pub fn set_b_driver_type(&mut self, value: DriverType)
[src]
Set the driver type for port B.
pub fn c_driver_type(&self) -> Result<DriverType, EepromValueError>
[src]
Get the driver type for port C.
pub fn c_driver_type_unchecked(&self) -> u8
[src]
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.
pub fn set_c_driver_type(&mut self, value: DriverType)
[src]
Set the driver type for port C.
pub fn d_driver_type(&self) -> Result<DriverType, EepromValueError>
[src]
Get the driver type for port D.
pub fn d_driver_type_unchecked(&self) -> u8
[src]
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.
pub fn set_d_driver_type(&mut self, value: DriverType)
[src]
Set the driver type for port D.
Trait Implementations
impl Clone for Eeprom4232h
[src]
fn clone(&self) -> Eeprom4232h
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Eeprom4232h
[src]
impl Debug for Eeprom4232h
[src]
impl Default for Eeprom4232h
[src]
impl From<ft_eeprom_4232h> for Eeprom4232h
[src]
fn from(val: FT_EEPROM_4232H) -> Eeprom4232h
[src]
impl FtdiEeprom<ft_eeprom_4232h, Eeprom4232h> for Ft4232h
[src]
fn eeprom_read(&mut self) -> Result<(Eeprom, EepromStrings), FtStatus>
[src]
fn eeprom_program(
&mut self,
eeprom: Eeprom,
strings: EepromStrings
) -> Result<(), FtStatus>
[src]
&mut self,
eeprom: Eeprom,
strings: EepromStrings
) -> Result<(), FtStatus>
Auto Trait Implementations
impl RefUnwindSafe for Eeprom4232h
[src]
impl Send for Eeprom4232h
[src]
impl Sync for Eeprom4232h
[src]
impl Unpin for Eeprom4232h
[src]
impl UnwindSafe for Eeprom4232h
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,