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
impl Eeprom4232h
sourcepub fn header(&self) -> EepromHeader
pub fn header(&self) -> EepromHeader
Get the EEPROM header.
sourcepub fn set_header(&mut self, header: EepromHeader)
pub fn set_header(&mut self, header: EepromHeader)
Set the EEPROM header.
source§impl Eeprom4232h
impl Eeprom4232h
sourcepub fn a_slow_slew(&self) -> bool
pub fn a_slow_slew(&self) -> bool
Slow slew for bus A.
true
if the pins on this bus have slow slew.
sourcepub fn set_a_slow_slew(&mut self, value: bool)
pub fn set_a_slow_slew(&mut self, value: bool)
Set slow slew for bus A.
sourcepub fn a_schmitt_input(&self) -> bool
pub fn a_schmitt_input(&self) -> bool
Schmitt input for bus A.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_a_schmitt_input(&mut self, value: bool)
pub fn set_a_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus A.
sourcepub fn a_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn a_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_a_drive_current(&mut self, value: DriveCurrent)
pub fn set_a_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus A.
sourcepub fn b_slow_slew(&self) -> bool
pub fn b_slow_slew(&self) -> bool
Slow slew for bus B.
true
if the pins on this bus have slow slew.
sourcepub fn set_b_slow_slew(&mut self, value: bool)
pub fn set_b_slow_slew(&mut self, value: bool)
Set slow slew for bus B.
sourcepub fn b_schmitt_input(&self) -> bool
pub fn b_schmitt_input(&self) -> bool
Schmitt input for bus B.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_b_schmitt_input(&mut self, value: bool)
pub fn set_b_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus B.
sourcepub fn b_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn b_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_b_drive_current(&mut self, value: DriveCurrent)
pub fn set_b_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus B.
sourcepub fn c_slow_slew(&self) -> bool
pub fn c_slow_slew(&self) -> bool
Slow slew for bus C.
true
if the pins on this bus have slow slew.
sourcepub fn set_c_slow_slew(&mut self, value: bool)
pub fn set_c_slow_slew(&mut self, value: bool)
Set slow slew for bus C.
sourcepub fn c_schmitt_input(&self) -> bool
pub fn c_schmitt_input(&self) -> bool
Schmitt input for bus C.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_c_schmitt_input(&mut self, value: bool)
pub fn set_c_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus C.
sourcepub fn c_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn c_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_c_drive_current(&mut self, value: DriveCurrent)
pub fn set_c_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus C.
sourcepub fn d_slow_slew(&self) -> bool
pub fn d_slow_slew(&self) -> bool
Slow slew for bus D.
true
if the pins on this bus have slow slew.
sourcepub fn set_d_slow_slew(&mut self, value: bool)
pub fn set_d_slow_slew(&mut self, value: bool)
Set slow slew for bus D.
sourcepub fn d_schmitt_input(&self) -> bool
pub fn d_schmitt_input(&self) -> bool
Schmitt input for bus D.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_d_schmitt_input(&mut self, value: bool)
pub fn set_d_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus D.
sourcepub fn d_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn d_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_d_drive_current(&mut self, value: DriveCurrent)
pub fn set_d_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus D.
source§impl Eeprom4232h
impl Eeprom4232h
sourcepub fn a_ri_is_tx_data_enable(&self) -> bool
pub fn a_ri_is_tx_data_enable(&self) -> bool
Use port A as RS485 TX data enable.
sourcepub fn set_a_ri_is_tx_data_enable(&mut self, value: bool)
pub fn set_a_ri_is_tx_data_enable(&mut self, value: bool)
Use port A as RS485 TX data enable.
sourcepub fn b_ri_is_tx_data_enable(&self) -> bool
pub fn b_ri_is_tx_data_enable(&self) -> bool
Use port B as RS485 TX data enable.
sourcepub fn set_b_ri_is_tx_data_enable(&mut self, value: bool)
pub fn set_b_ri_is_tx_data_enable(&mut self, value: bool)
Use port B as RS485 TX data enable.
sourcepub fn c_ri_is_tx_data_enable(&self) -> bool
pub fn c_ri_is_tx_data_enable(&self) -> bool
Use port C as RS485 TX data enable.
sourcepub fn set_c_ri_is_tx_data_enable(&mut self, value: bool)
pub fn set_c_ri_is_tx_data_enable(&mut self, value: bool)
Use port C as RS485 TX data enable.
sourcepub fn d_ri_is_tx_data_enable(&self) -> bool
pub fn d_ri_is_tx_data_enable(&self) -> bool
Use port D as RS485 TX data enable.
sourcepub fn set_d_ri_is_tx_data_enable(&mut self, value: bool)
pub fn set_d_ri_is_tx_data_enable(&mut self, value: bool)
Use port D as RS485 TX data enable.
source§impl Eeprom4232h
impl Eeprom4232h
sourcepub fn a_driver_type(&self) -> Result<DriverType, EepromValueError>
pub fn a_driver_type(&self) -> Result<DriverType, EepromValueError>
Get the driver type for port A.
sourcepub fn a_driver_type_unchecked(&self) -> u8
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.
sourcepub fn set_a_driver_type(&mut self, value: DriverType)
pub fn set_a_driver_type(&mut self, value: DriverType)
Set the driver type for port A.
sourcepub fn b_driver_type(&self) -> Result<DriverType, EepromValueError>
pub fn b_driver_type(&self) -> Result<DriverType, EepromValueError>
Get the driver type for port B.
sourcepub fn b_driver_type_unchecked(&self) -> u8
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.
sourcepub fn set_b_driver_type(&mut self, value: DriverType)
pub fn set_b_driver_type(&mut self, value: DriverType)
Set the driver type for port B.
sourcepub fn c_driver_type(&self) -> Result<DriverType, EepromValueError>
pub fn c_driver_type(&self) -> Result<DriverType, EepromValueError>
Get the driver type for port C.
sourcepub fn c_driver_type_unchecked(&self) -> u8
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.
sourcepub fn set_c_driver_type(&mut self, value: DriverType)
pub fn set_c_driver_type(&mut self, value: DriverType)
Set the driver type for port C.
sourcepub fn d_driver_type(&self) -> Result<DriverType, EepromValueError>
pub fn d_driver_type(&self) -> Result<DriverType, EepromValueError>
Get the driver type for port D.
sourcepub fn d_driver_type_unchecked(&self) -> u8
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.
sourcepub fn set_d_driver_type(&mut self, value: DriverType)
pub fn set_d_driver_type(&mut self, value: DriverType)
Set the driver type for port D.
Trait Implementations§
source§impl Clone for Eeprom4232h
impl Clone for Eeprom4232h
source§fn clone(&self) -> Eeprom4232h
fn clone(&self) -> Eeprom4232h
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more