ft_program_data

Struct ft_program_data 

Source
#[repr(C)]
pub struct ft_program_data {
Show 130 fields pub Signature1: DWORD, pub Signature2: DWORD, pub Version: DWORD, pub VendorId: WORD, pub ProductId: WORD, pub Manufacturer: *mut c_char, pub ManufacturerId: *mut c_char, pub Description: *mut c_char, pub SerialNumber: *mut c_char, pub MaxPower: WORD, pub PnP: WORD, pub SelfPowered: WORD, pub RemoteWakeup: WORD, pub Rev4: UCHAR, pub IsoIn: UCHAR, pub IsoOut: UCHAR, pub PullDownEnable: UCHAR, pub SerNumEnable: UCHAR, pub USBVersionEnable: UCHAR, pub USBVersion: WORD, pub Rev5: UCHAR, pub IsoInA: UCHAR, pub IsoInB: UCHAR, pub IsoOutA: UCHAR, pub IsoOutB: UCHAR, pub PullDownEnable5: UCHAR, pub SerNumEnable5: UCHAR, pub USBVersionEnable5: UCHAR, pub USBVersion5: WORD, pub AIsHighCurrent: UCHAR, pub BIsHighCurrent: UCHAR, pub IFAIsFifo: UCHAR, pub IFAIsFifoTar: UCHAR, pub IFAIsFastSer: UCHAR, pub AIsVCP: UCHAR, pub IFBIsFifo: UCHAR, pub IFBIsFifoTar: UCHAR, pub IFBIsFastSer: UCHAR, pub BIsVCP: UCHAR, pub UseExtOsc: UCHAR, pub HighDriveIOs: UCHAR, pub EndpointSize: UCHAR, pub PullDownEnableR: UCHAR, pub SerNumEnableR: UCHAR, pub InvertTXD: UCHAR, pub InvertRXD: UCHAR, pub InvertRTS: UCHAR, pub InvertCTS: UCHAR, pub InvertDTR: UCHAR, pub InvertDSR: UCHAR, pub InvertDCD: UCHAR, pub InvertRI: UCHAR, pub Cbus0: UCHAR, pub Cbus1: UCHAR, pub Cbus2: UCHAR, pub Cbus3: UCHAR, pub Cbus4: UCHAR, pub RIsD2XX: UCHAR, pub PullDownEnable7: UCHAR, pub SerNumEnable7: UCHAR, pub ALSlowSlew: UCHAR, pub ALSchmittInput: UCHAR, pub ALDriveCurrent: UCHAR, pub AHSlowSlew: UCHAR, pub AHSchmittInput: UCHAR, pub AHDriveCurrent: UCHAR, pub BLSlowSlew: UCHAR, pub BLSchmittInput: UCHAR, pub BLDriveCurrent: UCHAR, pub BHSlowSlew: UCHAR, pub BHSchmittInput: UCHAR, pub BHDriveCurrent: UCHAR, pub IFAIsFifo7: UCHAR, pub IFAIsFifoTar7: UCHAR, pub IFAIsFastSer7: UCHAR, pub AIsVCP7: UCHAR, pub IFBIsFifo7: UCHAR, pub IFBIsFifoTar7: UCHAR, pub IFBIsFastSer7: UCHAR, pub BIsVCP7: UCHAR, pub PowerSaveEnable: UCHAR, pub PullDownEnable8: UCHAR, pub SerNumEnable8: UCHAR, pub ASlowSlew: UCHAR, pub ASchmittInput: UCHAR, pub ADriveCurrent: UCHAR, pub BSlowSlew: UCHAR, pub BSchmittInput: UCHAR, pub BDriveCurrent: UCHAR, pub CSlowSlew: UCHAR, pub CSchmittInput: UCHAR, pub CDriveCurrent: UCHAR, pub DSlowSlew: UCHAR, pub DSchmittInput: UCHAR, pub DDriveCurrent: UCHAR, pub ARIIsTXDEN: UCHAR, pub BRIIsTXDEN: UCHAR, pub CRIIsTXDEN: UCHAR, pub DRIIsTXDEN: UCHAR, pub AIsVCP8: UCHAR, pub BIsVCP8: UCHAR, pub CIsVCP8: UCHAR, pub DIsVCP8: UCHAR, pub PullDownEnableH: UCHAR, pub SerNumEnableH: UCHAR, pub ACSlowSlewH: UCHAR, pub ACSchmittInputH: UCHAR, pub ACDriveCurrentH: UCHAR, pub ADSlowSlewH: UCHAR, pub ADSchmittInputH: UCHAR, pub ADDriveCurrentH: UCHAR, pub Cbus0H: UCHAR, pub Cbus1H: UCHAR, pub Cbus2H: UCHAR, pub Cbus3H: UCHAR, pub Cbus4H: UCHAR, pub Cbus5H: UCHAR, pub Cbus6H: UCHAR, pub Cbus7H: UCHAR, pub Cbus8H: UCHAR, pub Cbus9H: UCHAR, pub IsFifoH: UCHAR, pub IsFifoTarH: UCHAR, pub IsFastSerH: UCHAR, pub IsFT1248H: UCHAR, pub FT1248CpolH: UCHAR, pub FT1248LsbH: UCHAR, pub FT1248FlowControlH: UCHAR, pub IsVCPH: UCHAR, pub PowerSaveEnableH: UCHAR,
}
Expand description

Structure to hold program data for FT_EE_Program, FT_EE_ProgramEx, FT_EE_Read and FT_EE_ReadEx functions. @see FT_EE_Read @see FT_EE_ReadEx @see FT_EE_Program @see FT_EE_ProgramEx

Fields§

§Signature1: DWORD§Signature2: DWORD

Header - must be 0x00000000

§Version: DWORD

Header - must be 0xffffffff

§VendorId: WORD

Header - FT_PROGRAM_DATA version

§ProductId: WORD

0x0403

§Manufacturer: *mut c_char

0x6001

§ManufacturerId: *mut c_char

“FTDI”

§Description: *mut c_char

“FT”

§SerialNumber: *mut c_char

“USB HS Serial Converter”

§MaxPower: WORD

“FT000001” if fixed, or NULL

§PnP: WORD

0 < MaxPower <= 500

§SelfPowered: WORD

0 = disabled, 1 = enabled

§RemoteWakeup: WORD

0 = bus powered, 1 = self powered

§Rev4: UCHAR

0 = not capable, 1 = capable Rev4 (FT232B) extensions

§IsoIn: UCHAR

non-zero if Rev4 chip, zero otherwise

§IsoOut: UCHAR

non-zero if in endpoint is isochronous

§PullDownEnable: UCHAR

non-zero if out endpoint is isochronous

§SerNumEnable: UCHAR

non-zero if pull down enabled

§USBVersionEnable: UCHAR

non-zero if serial number to be used

§USBVersion: WORD

non-zero if chip uses USBVersion

§Rev5: UCHAR

BCD (0x0200 => USB2) Rev 5 (FT2232) extensions

§IsoInA: UCHAR

non-zero if Rev5 chip, zero otherwise

§IsoInB: UCHAR

non-zero if in endpoint is isochronous

§IsoOutA: UCHAR

non-zero if in endpoint is isochronous

§IsoOutB: UCHAR

non-zero if out endpoint is isochronous

§PullDownEnable5: UCHAR

non-zero if out endpoint is isochronous

§SerNumEnable5: UCHAR

non-zero if pull down enabled

§USBVersionEnable5: UCHAR

non-zero if serial number to be used

§USBVersion5: WORD

non-zero if chip uses USBVersion

§AIsHighCurrent: UCHAR

BCD (0x0200 => USB2)

§BIsHighCurrent: UCHAR

non-zero if interface is high current

§IFAIsFifo: UCHAR

non-zero if interface is high current

§IFAIsFifoTar: UCHAR

non-zero if interface is 245 FIFO

§IFAIsFastSer: UCHAR

non-zero if interface is 245 FIFO CPU target

§AIsVCP: UCHAR

non-zero if interface is Fast serial

§IFBIsFifo: UCHAR

non-zero if interface is to use VCP drivers

§IFBIsFifoTar: UCHAR

non-zero if interface is 245 FIFO

§IFBIsFastSer: UCHAR

non-zero if interface is 245 FIFO CPU target

§BIsVCP: UCHAR

non-zero if interface is Fast serial

§UseExtOsc: UCHAR

non-zero if interface is to use VCP drivers Rev 6 (FT232R) extensions

§HighDriveIOs: UCHAR

Use External Oscillator

§EndpointSize: UCHAR

High Drive I/Os

§PullDownEnableR: UCHAR

Endpoint size

§SerNumEnableR: UCHAR

non-zero if pull down enabled

§InvertTXD: UCHAR

non-zero if serial number to be used

§InvertRXD: UCHAR

non-zero if invert TXD

§InvertRTS: UCHAR

non-zero if invert RXD

§InvertCTS: UCHAR

non-zero if invert RTS

§InvertDTR: UCHAR

non-zero if invert CTS

§InvertDSR: UCHAR

non-zero if invert DTR

§InvertDCD: UCHAR

non-zero if invert DSR

§InvertRI: UCHAR

non-zero if invert DCD

§Cbus0: UCHAR

non-zero if invert RI

§Cbus1: UCHAR

Cbus Mux control

§Cbus2: UCHAR

Cbus Mux control

§Cbus3: UCHAR

Cbus Mux control

§Cbus4: UCHAR

Cbus Mux control

§RIsD2XX: UCHAR

Cbus Mux control

§PullDownEnable7: UCHAR

non-zero if using D2XX driver Rev 7 (FT2232H) Extensions

§SerNumEnable7: UCHAR

non-zero if pull down enabled

§ALSlowSlew: UCHAR

non-zero if serial number to be used

§ALSchmittInput: UCHAR

non-zero if AL pins have slow slew

§ALDriveCurrent: UCHAR

non-zero if AL pins are Schmitt input

§AHSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§AHSchmittInput: UCHAR

non-zero if AH pins have slow slew

§AHDriveCurrent: UCHAR

non-zero if AH pins are Schmitt input

§BLSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§BLSchmittInput: UCHAR

non-zero if BL pins have slow slew

§BLDriveCurrent: UCHAR

non-zero if BL pins are Schmitt input

§BHSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§BHSchmittInput: UCHAR

non-zero if BH pins have slow slew

§BHDriveCurrent: UCHAR

non-zero if BH pins are Schmitt input

§IFAIsFifo7: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§IFAIsFifoTar7: UCHAR

non-zero if interface is 245 FIFO

§IFAIsFastSer7: UCHAR

non-zero if interface is 245 FIFO CPU target

§AIsVCP7: UCHAR

non-zero if interface is Fast serial

§IFBIsFifo7: UCHAR

non-zero if interface is to use VCP drivers

§IFBIsFifoTar7: UCHAR

non-zero if interface is 245 FIFO

§IFBIsFastSer7: UCHAR

non-zero if interface is 245 FIFO CPU target

§BIsVCP7: UCHAR

non-zero if interface is Fast serial

§PowerSaveEnable: UCHAR

non-zero if interface is to use VCP drivers

§PullDownEnable8: UCHAR

non-zero if using BCBUS7 to save power for self-powered designs Rev 8 (FT4232H) Extensions

§SerNumEnable8: UCHAR

non-zero if pull down enabled

§ASlowSlew: UCHAR

non-zero if serial number to be used

§ASchmittInput: UCHAR

non-zero if A pins have slow slew

§ADriveCurrent: UCHAR

non-zero if A pins are Schmitt input

§BSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§BSchmittInput: UCHAR

non-zero if B pins have slow slew

§BDriveCurrent: UCHAR

non-zero if B pins are Schmitt input

§CSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§CSchmittInput: UCHAR

non-zero if C pins have slow slew

§CDriveCurrent: UCHAR

non-zero if C pins are Schmitt input

§DSlowSlew: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§DSchmittInput: UCHAR

non-zero if D pins have slow slew

§DDriveCurrent: UCHAR

non-zero if D pins are Schmitt input

§ARIIsTXDEN: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§BRIIsTXDEN: UCHAR

non-zero if port A uses RI as RS485 TXDEN

§CRIIsTXDEN: UCHAR

non-zero if port B uses RI as RS485 TXDEN

§DRIIsTXDEN: UCHAR

non-zero if port C uses RI as RS485 TXDEN

§AIsVCP8: UCHAR

non-zero if port D uses RI as RS485 TXDEN

§BIsVCP8: UCHAR

non-zero if interface is to use VCP drivers

§CIsVCP8: UCHAR

non-zero if interface is to use VCP drivers

§DIsVCP8: UCHAR

non-zero if interface is to use VCP drivers

§PullDownEnableH: UCHAR

non-zero if interface is to use VCP drivers Rev 9 (FT232H) Extensions

§SerNumEnableH: UCHAR

non-zero if pull down enabled

§ACSlowSlewH: UCHAR

non-zero if serial number to be used

§ACSchmittInputH: UCHAR

non-zero if AC pins have slow slew

§ACDriveCurrentH: UCHAR

non-zero if AC pins are Schmitt input

§ADSlowSlewH: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§ADSchmittInputH: UCHAR

non-zero if AD pins have slow slew

§ADDriveCurrentH: UCHAR

non-zero if AD pins are Schmitt input

§Cbus0H: UCHAR

valid values are 4mA, 8mA, 12mA, 16mA

§Cbus1H: UCHAR

Cbus Mux control

§Cbus2H: UCHAR

Cbus Mux control

§Cbus3H: UCHAR

Cbus Mux control

§Cbus4H: UCHAR

Cbus Mux control

§Cbus5H: UCHAR

Cbus Mux control

§Cbus6H: UCHAR

Cbus Mux control

§Cbus7H: UCHAR

Cbus Mux control

§Cbus8H: UCHAR

Cbus Mux control

§Cbus9H: UCHAR

Cbus Mux control

§IsFifoH: UCHAR

Cbus Mux control

§IsFifoTarH: UCHAR

non-zero if interface is 245 FIFO

§IsFastSerH: UCHAR

non-zero if interface is 245 FIFO CPU target

§IsFT1248H: UCHAR

non-zero if interface is Fast serial

§FT1248CpolH: UCHAR

non-zero if interface is FT1248

§FT1248LsbH: UCHAR

FT1248 clock polarity - clock idle high (1) or clock idle low (0)

§FT1248FlowControlH: UCHAR

FT1248 data is LSB (1) or MSB (0)

§IsVCPH: UCHAR

FT1248 flow control enable

§PowerSaveEnableH: UCHAR

non-zero if interface is to use VCP drivers

Trait Implementations§

Source§

impl Clone for ft_program_data

Source§

fn clone(&self) -> ft_program_data

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ft_program_data

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ft_program_data

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.