Struct libftd2xx::Ft232h[][src]

pub struct Ft232h { /* fields omitted */ }
Expand description

FT232H device.

Example

Converting from an unknown FTDI device.

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

let ft232h: Ft232h = Ftdi::new()?.try_into()?;

Implementations

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")? };

Open a Ft232h device and initialize the handle.

Example

use libftd2xx::Ft232h;

Ft232h::with_serial_number("FT59UO4C")?;

Open a Ft232h device by its device description.

Example

use libftd2xx::Ft232h;

Ft232h::with_description("Hello")?;

Trait Implementations

Formats the value using the given formatter. Read more

FTDI device type.

Get the FTDI device handle.

Identify device type. Read more

Get device information for an open device. Read more

Returns the D2XX driver version number. Read more

This function sends a reset command to the device. Read more

Set the USB request transfer size. Read more

This function sets the special characters for the device. Read more

This function sets the read and write timeouts for the device. Read more

This method allows the maximum time in milliseconds that a USB request can remain outstandingto be set. Read more

Set the latency timer value. Read more

Get the current value of the latency timer. Read more

This function disables flow control for the device. Read more

This function sets RTS/CTS flow control for the device. Read more

This function sets DTS/DSR flow control for the device. Read more

This function sets XON/XOFF flow control for the device. Read more

Set the baud rate for the device. Read more

Set the data characteristics for the device. Read more

Set the Data Terminal Ready (DTR) control signal. Read more

Clear the Data Terminal Ready (DTR) control signal. Read more

Set the Request to Send (RTS) control signal. Read more

Clear the Request to Send (RTS) control signal. Read more

Enables different chip modes. Read more

Get the instantaneous value of the data bus. Read more

Sets the BREAK condition for the device. Read more

Resets the BREAK condition for the device. Read more

Gets the number of bytes in the receive queue. Read more

Gets the device status including number of characters in the receive queue, number of characters in the transmit queue, and the current event status. Read more

Read data from the device, returning the number of bytes read. Read more

Read data from the device. Read more

Write data to the device. Read more

Write data to the device, returning how many bytes were written. Read more

This function purges the transmit buffers in the device. Read more

This function purges the receive buffers in the device. Read more

This function purges the transmit and receive buffers in the device. Read more

Close an open device. Read more

This is supported on Windows only.

Get the COM port associated with a device. Read more

This is supported on Windows only.

Send a reset command to the port. Read more

This is supported on Windows only.

Send a cycle command to the USB port. Read more

Gets the modem status and line status from the device. Read more

Read a value from an EEPROM location. Read more

Writes a value to an EEPROM location. Read more

Erases the entire contents of the EEPROM, including the user area. Read more

Get the available size of the EEPROM user area in bytes. Read more

Read the contents of the EEPROM user area. Read more

Write to the EEPROM user area. Read more

Read from the FTD2XX device EEPROM. Read more

Program the FTD2XX EEPROM. Read more

Set the clock frequency. Read more

Initialize the MPSSE. Read more

Initializes the MPSSE to default settings. Read more

Synchronize the MPSSE port with the application. Read more

Enable the MPSSE loopback state. Read more

Disable the MPSSE loopback state. Read more

Set the pin direction and state of the lower byte (0-7) GPIO pins on the MPSSE interface. Read more

Get the pin state state of the lower byte (0-7) GPIO pins on the MPSSE interface. Read more

Set the pin direction and state of the upper byte (8-15) GPIO pins on the MPSSE interface. Read more

Get the pin state state of the upper byte (8-15) GPIO pins on the MPSSE interface. Read more

Clock data out. Read more

Clock data in. Read more

Clock data in and out at the same time.

Enable 3 phase data clocking. Read more

Disable 3 phase data clocking. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.