Struct libftd2xx::Ft4232h[][src]

pub struct Ft4232h { /* fields omitted */ }

FT4232H device.

Example

Converting from an unknown FTDI device.

use libftd2xx::{Ft4232h, Ftdi};
use std::convert::TryFrom;

let mut ftdi = Ftdi::new()?;
let ft4232h: Ft4232h = Ft4232h::try_from(&mut ftdi)?;

Implementations

impl Ft4232h[src]

pub unsafe fn with_serial_number_unchecked(
    serial_number: &str
) -> Result<Ft4232h, FtStatus>
[src]

Open a Ft4232h device and initialize the handle.

Safety

This is unchecked meaning a device type check will not be performed. Methods that require this specific device type may fail in unexpected ways if the wrong device is used.

Example

use libftd2xx::Ft4232h;

let mut ft = unsafe { Ft4232h::with_serial_number_unchecked("FT4PWSEOA")? };

pub fn with_serial_number(
    serial_number: &str
) -> Result<Ft4232h, DeviceTypeError>
[src]

Open a Ft4232h device and initialize the handle.

Example

use libftd2xx::Ft4232h;

Ft4232h::with_serial_number("FT4PWSEOA")?;

pub fn with_description(serial_number: &str) -> Result<Ft4232h, DeviceTypeError>[src]

Open a Ft4232h device by its device description.

Example

use libftd2xx::Ft4232h;

Ft4232h::with_description("FT4232H-56Q MiniModule A")?;

Trait Implementations

impl FtdiCommon for Ft4232h[src]

impl FtdiEeprom<ft_eeprom_4232h, Eeprom4232h> for Ft4232h[src]

impl FtdiMpsse for Ft4232h[src]

impl Ftx232hMpsse for Ft4232h[src]

impl TryFrom<&'_ mut Ftdi> for Ft4232h[src]

type Error = DeviceTypeError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.