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
impl Eeprom232h
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.
sourcepub fn ft1248_cpol(&self) -> ClockPolarity
pub fn ft1248_cpol(&self) -> ClockPolarity
FT1248 clock polarity.
sourcepub fn set_ft1248_cpol(&mut self, value: ClockPolarity)
pub fn set_ft1248_cpol(&mut self, value: ClockPolarity)
Set FT1248 clock polarity.
sourcepub fn ft1248_byteorder(&self) -> ByteOrder
pub fn ft1248_byteorder(&self) -> ByteOrder
FT1248 byte order.
sourcepub fn set_ft1248_byteorder(&mut self, value: ByteOrder)
pub fn set_ft1248_byteorder(&mut self, value: ByteOrder)
Set FT1248 byte order.
sourcepub fn ft1248_flow_control(&self) -> bool
pub fn ft1248_flow_control(&self) -> bool
FT1248 flow control enable.
sourcepub fn set_ft1248_flow_control(&mut self, value: bool)
pub fn set_ft1248_flow_control(&mut self, value: bool)
Set FT1248 flow control enable.
sourcepub fn set_is_fifo(&mut self, value: bool)
pub fn set_is_fifo(&mut self, value: bool)
Set FT245 FIFO interface mode.
sourcepub fn is_fifo_target(&self) -> bool
pub fn is_fifo_target(&self) -> bool
FT245 FIFO CPU target mode.
sourcepub fn set_is_fifo_target(&mut self, value: bool)
pub fn set_is_fifo_target(&mut self, value: bool)
Set FT245 FIFO CPU target mode.
sourcepub fn is_fast_serial(&self) -> bool
pub fn is_fast_serial(&self) -> bool
Fast serial interface mode.
sourcepub fn set_is_fast_serial(&mut self, value: bool)
pub fn set_is_fast_serial(&mut self, value: bool)
Set Fast serial interface mode.
sourcepub fn set_is_ft1248(&mut self, value: bool)
pub fn set_is_ft1248(&mut self, value: bool)
Set FT1248 interface mode.
sourcepub fn power_save_enable(&self) -> bool
pub fn power_save_enable(&self) -> bool
Power save enable.
Use a pin to save power for self-powered designs.
sourcepub fn set_power_save_enable(&mut self, value: bool)
pub fn set_power_save_enable(&mut self, value: bool)
Set power save enable.
source§impl Eeprom232h
impl Eeprom232h
sourcepub fn ad_slow_slew(&self) -> bool
pub fn ad_slow_slew(&self) -> bool
Slow slew for bus AD.
true
if the pins on this bus have slow slew.
sourcepub fn set_ad_slow_slew(&mut self, value: bool)
pub fn set_ad_slow_slew(&mut self, value: bool)
Set slow slew for bus AD.
sourcepub fn ad_schmitt_input(&self) -> bool
pub fn ad_schmitt_input(&self) -> bool
Schmitt input for bus AD.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_ad_schmitt_input(&mut self, value: bool)
pub fn set_ad_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus AD.
sourcepub fn ad_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn ad_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_ad_drive_current(&mut self, value: DriveCurrent)
pub fn set_ad_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus AD.
sourcepub fn ac_slow_slew(&self) -> bool
pub fn ac_slow_slew(&self) -> bool
Slow slew for bus AC.
true
if the pins on this bus have slow slew.
sourcepub fn set_ac_slow_slew(&mut self, value: bool)
pub fn set_ac_slow_slew(&mut self, value: bool)
Set slow slew for bus AC.
sourcepub fn ac_schmitt_input(&self) -> bool
pub fn ac_schmitt_input(&self) -> bool
Schmitt input for bus AC.
true
if the pins on this bus are Schmitt input.
sourcepub fn set_ac_schmitt_input(&mut self, value: bool)
pub fn set_ac_schmitt_input(&mut self, value: bool)
Set Schmitt input for bus AC.
sourcepub fn ac_drive_current(&self) -> Result<DriveCurrent, EepromValueError>
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.
sourcepub fn ac_drive_current_unchecked(&self) -> u8
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.
sourcepub fn set_ac_drive_current(&mut self, value: DriveCurrent)
pub fn set_ac_drive_current(&mut self, value: DriveCurrent)
Set drive current for bus AC.
source§impl Eeprom232h
impl Eeprom232h
sourcepub fn cbus0_unchecked(&self) -> u8
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.
sourcepub fn cbus0(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus0(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus0 pin.
sourcepub fn cbus1_unchecked(&self) -> u8
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.
sourcepub fn cbus1(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus1(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus1 pin.
sourcepub fn cbus2_unchecked(&self) -> u8
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.
sourcepub fn cbus2(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus2(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus2 pin.
sourcepub fn cbus3_unchecked(&self) -> u8
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.
sourcepub fn cbus3(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus3(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus3 pin.
sourcepub fn cbus4_unchecked(&self) -> u8
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.
sourcepub fn cbus4(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus4(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus4 pin.
sourcepub fn cbus5_unchecked(&self) -> u8
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.
sourcepub fn cbus5(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus5(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus5 pin.
sourcepub fn cbus6_unchecked(&self) -> u8
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.
sourcepub fn cbus6(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus6(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus6 pin.
sourcepub fn cbus7_unchecked(&self) -> u8
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.
sourcepub fn cbus7(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus7(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus7 pin.
sourcepub fn cbus8_unchecked(&self) -> u8
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.
sourcepub fn cbus8(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus8(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus8 pin.
sourcepub fn cbus9_unchecked(&self) -> u8
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.
sourcepub fn cbus9(&self) -> Result<Cbus232h, EepromValueError>
pub fn cbus9(&self) -> Result<Cbus232h, EepromValueError>
Get the value of the Cbus9 pin.
source§impl Eeprom232h
impl Eeprom232h
sourcepub fn driver_type(&self) -> Result<DriverType, EepromValueError>
pub fn driver_type(&self) -> Result<DriverType, EepromValueError>
Get the device driver type.
sourcepub fn driver_type_unchecked(&self) -> u8
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.
sourcepub fn set_driver_type(&mut self, value: DriverType)
pub fn set_driver_type(&mut self, value: DriverType)
Set the device driver type.
Trait Implementations§
source§impl Clone for Eeprom232h
impl Clone for Eeprom232h
source§fn clone(&self) -> Eeprom232h
fn clone(&self) -> Eeprom232h
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more