Struct libftd2xx::Ft232h[][src]

pub struct Ft232h { /* fields omitted */ }

FT232H device.

Example

Converting from an unknown FTDI device.

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

let mut ftdi = Ftdi::new()?;
let ft232h: Ft232h = Ft232h::try_from(&mut ftdi)?;

Implementations

impl Ft232h[src]

pub unsafe fn with_serial_number_unchecked(
    serial_number: &str
) -> Result<Ft232h, 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::Ft232h;

let mut ft = unsafe { Ft232h::with_serial_number_unchecked("FT5AVX6B")? };

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

Open a Ft232h device and initialize the handle.

Example

use libftd2xx::Ft232h;

Ft232h::with_serial_number("FT59UO4C")?;

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

Open a Ft232h device by its device description.

Example

use libftd2xx::Ft232h;

Ft232h::with_description("Hello")?;

Trait Implementations

impl FtdiCommon for Ft232h[src]

impl FtdiEeprom<ft_eeprom_232h, Eeprom232h> for Ft232h[src]

impl FtdiMpsse for Ft232h[src]

impl Ftx232hMpsse for Ft232h[src]

impl TryFrom<&'_ mut Ftdi> for Ft232h[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.