com.serialpundit.serial.vendor.FTprogramData Maven / Gradle / Ivy
Show all versions of sp-tty Show documentation
/*
* This file is part of SerialPundit.
*
* Copyright (C) 2014-2016, Rishi Gupta. All rights reserved.
*
* The SerialPundit is DUAL LICENSED. It is made available under the terms of the GNU Affero
* General Public License (AGPL) v3.0 for non-commercial use and under the terms of a commercial
* license for commercial use of this software.
*
* The SerialPundit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
package com.serialpundit.serial.vendor;
/**
* Represents the FT_PROGRAM_DATA structure declared in ftd2xx.h header file.
*
* @author Rishi Gupta
*/
public final class FTprogramData {
private int[] info;
private String manufacturer;
private String manufacturerID;
private String description;
private String serialNumber;
/**
* Construct and allocates a new FTprogramData object with given details.
*
* @param manufacturer manufacturer of the device.
* @param manufacturerID manufacturer ID of the device vendor.
* @param description description of this device.
* @param serialNumber serial number of this device.
*/
public FTprogramData(int[] info, char[] manufacturer, char[] manufacturerID, char[] description,
char[] serialNumber) {
this.info = info;
this.manufacturer = new String(manufacturer);
this.manufacturerID = new String(manufacturerID);
this.description = new String(description);
this.serialNumber = new String(serialNumber);
}
/**
* Gives the value of Signature1.
*
* @return integer value of Signature1.
*/
public int getSignature1() {
return info[0];
}
/**
* Gives the value of Signature1.
*
* @return integer value of Signature1.
*/
public int getSignature2() {
return info[1];
}
/**
* Gives the value of Signature1.
*
* @return FT_PROGRAM_DATA version.
*/
public int getVersion() {
return info[2];
}
/**
* Gives the value of Vendor Id for this device.
*
* @return USB VendorId for this device.
*/
public int getVendorId() {
return info[3];
}
/**
* Gives the value of Product Id for this device.
*
* @return USB ProductId for this device.
*/
public int getProductId() {
return info[4];
}
/**
* Retrieves the manufacturer string for this FT device.
*
* @return manufacturer string for this FT device.
*/
public String getManufacturer() {
return manufacturer;
}
/**
* Retrieves the manufacturer ID string for this FT device.
*
* @return manufacturer ID string for this FT device.
*/
public String getmanufacturerID() {
return manufacturerID;
}
/**
* Retrieves the description for this FT device.
*
* @return description string for this FT device.
*/
public String getDescription() {
return description;
}
/**
* Retrieves the serial number string for this FT device.
*
* @return serial number string for this FT device.
*/
public String getSerialNumber() {
return serialNumber;
}
/**
* Retrieves the maximum power (0 < MaxPower <= 500) required for this FT device.
*
* @return maximum power value required for this FT device.
*/
public int getMaxPower() {
return info[9];
}
/**
* Retrieves the PnP feature (0 = disabled, 1 = enabled) value for this FT device.
*
* @return 0 if disabled or 1 if enabled.
*/
public int getPnP() {
return info[10];
}
/**
* Finds whether device is self or bus powered (0 = bus powered, 1 = self powered).
*
* @return 0 id bus powered or 1 is self powered.
*/
public int isSelfPowered() {
return info[11];
}
/**
* Finds whether device is able to support remote wake up or not (0 = not capable, 1 = capable).
*
* @return 0 if not capable or 1 if capable.
*/
public int isRemoteWakeup() {
return info[12];
}
/* Rev4 (FT232B) extensions */
/**
* Finds whether device is Rev4 or not (non-zero if Rev4 chip, zero otherwise).
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if Rev4 chip or 0 if chip is not rev4.
*/
public int isRev4() {
return info[13];
}
/**
* Finds whether in endpoint is isochronous or not.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if in endpoint is isochronous.
*/
public int isIsoIn() {
return info[14];
}
/**
* Finds whether out endpoint is isochronous or not.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if out endpoint is isochronous.
*/
public int isIsoOut() {
return info[15];
}
/**
* Finds whether pull down is enabled or not.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnabled() {
return info[16];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnabled() {
return info[17];
}
/**
* Finds whether device uses USB version or not.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return non-zero value if chip uses USB version.
*/
public int hasUSBVersionEnabled() {
return info[18];
}
/**
* Retrieves the USB version for the device.
*
* Mainly applicable for Rev4 (FT232B) extensions.
*
* @return binary coded USB version number (0x0200 means USB 2.0).
*/
public int getUSBVersion() {
return info[19];
}
/* Rev 5 (FT2232) extensions */
/**
* Finds whether device is Rev5 or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if Rev5 chip, zero otherwise.
*/
public int isRev5() {
return info[20];
}
/**
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if in endpoint is isochronous.
*/
public int isIsoInA() {
return info[21];
}
/**
* Finds whether in endpoint is isochronous or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if in endpoint is isochronous.
*/
public int isIsoInB() {
return info[22];
}
/**
* Finds whether out endpoint is isochronous or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if out endpoint is isochronous.
*/
public int isIsoOutA() {
return info[23];
}
/**
* Finds whether out endpoint is isochronous or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if out endpoint is isochronous.
*/
public int isIsoOutB() {
return info[24];
}
/**
* Finds whether pull down is enabled or not.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnabled5() {
return info[25];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnabled5() {
return info[26];
}
/**
* Finds whether device uses USB version or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if chip uses USB version.
*/
public int hasUSBVersionEnabled5() {
return info[27];
}
/**
* Retrieves the USB version for the device.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return binary coded USB version number (0x0200 means USB 2.0).
*/
public int getUSBVersion5() {
return info[28];
}
/**
* Finds whether interface is high current or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is high current.
*/
public int isAIsHighCurrent() {
return info[29];
}
/**
* Finds whether interface is high current or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is high current.
*/
public int isBIsHighCurrent() {
return info[30];
}
/**
* Finds whether interface is 245 FIFO or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is 245 FIFO.
*/
public int isIFAIsFifo() {
return info[31];
}
/**
* Finds whether interface is 245 FIFO CPU target or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is 245 FIFO CPU target.
*/
public int isIFAIsFifoTar() {
return info[32];
}
/**
* Finds whether interface is fast serial or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is Fast serial.
*/
public int isIFAIsFastSer() {
return info[33];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isAIsVCP() {
return info[34];
}
/**
* Finds whether interface is 245 FIFO or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is 245 FIFO.
*/
public int isIFBIsFifo() {
return info[35];
}
/**
* Finds whether interface is 245 FIFO CPU target or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is 245 FIFO CPU target.
*/
public int isIFBIsFifoTar() {
return info[36];
}
/**
* Finds whether interface is fast serial or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is Fast serial.
*/
public int isIFBIsFastSer() {
return info[37];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 5 (FT2232) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isBIsVCP() {
return info[38];
}
/* Rev 6 (FT232R) extensions */
/**
* Finds whether external oscillator is to be used or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return 1 if external oscillator is to be used.
*/
public int useExtOsc() {
return info[39];
}
/**
* Finds whether more current is to be supplied at IC pins or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return 1 if high current is to be supplied.
*/
public int useHighDriveIOs() {
return info[40];
}
/**
* Gives the end point size of this device.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return end pint size.
*/
public int getEndpointSize() {
return info[41];
}
/**
* Finds whether pull down is enabled or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnableR() {
return info[42];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnableR() {
return info[43];
}
/**
* Checks whether polarity if TXD line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if TXD line is inverted.
*/
public int invertTXD() {
return info[44];
}
/**
* Checks whether polarity if RXD line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if RXD line is inverted.
*/
public int invertRXD() {
return info[45];
}
/**
* Checks whether polarity if RTS line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if RTS line is inverted.
*/
public int invertRTS() {
return info[46];
}
/**
* Checks whether polarity if CTS line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if CTS line is inverted.
*/
public int invertCTS() {
return info[47];
}
/**
* Checks whether polarity if DTR line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if DTR line is inverted.
*/
public int invertDTR() {
return info[48];
}
/**
* Checks whether polarity if DSR line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if DSR line is inverted.
*/
public int invertDSR() {
return info[49];
}
/**
* Checks whether polarity if DCD line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if DCD line is inverted.
*/
public int invertDCD() {
return info[50];
}
/**
* Checks whether polarity if RI line is inverted or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if RI line is inverted.
*/
public int invertRI() {
return info[51];
}
/**
* Gives the CBUS 0 configuration value.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return CBUS 0 configuration value.
*/
public int getCbus0() {
return info[52];
}
/**
* Gives the CBUS 1 configuration value.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return CBUS 1 configuration value.
*/
public int getCbus1() {
return info[53];
}
/**
* Gives the CBUS 2 configuration value.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return CBUS 2 configuration value.
*/
public int getCbus2() {
return info[54];
}
/**
* Gives the CBUS 3 configuration value.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return CBUS 3 configuration value.
*/
public int getCbus3() {
return info[55];
}
/**
* Gives the CBUS 4 configuration value.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return CBUS 4 configuration value.
*/
public int getCbus4() {
return info[56];
}
/**
* Finds whether D2XX driver is in use or not.
*
* Mainly applicable for Rev 6 (FT232R) extensions.
*
* @return non-zero value if using D2XX driver.
*/
public int isRIsD2XX() {
return info[57];
}
/**
* Finds whether pull down is enabled or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnable7() {
return info[58];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnable7() {
return info[59];
}
/**
* Finds whether AL pins have slow slew or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if AL pins have slow slew.
*/
public int isALSlowSlew() {
return info[60];
}
/**
* Finds whether if AL pins are Schmitt input or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if AL pins are Schmitt input.
*/
public int isALSchmittInput() {
return info[61];
}
/**
* Retrieves the AL drive current value.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return AL drive current value.
*/
public int getALDriveCurrent() {
return info[62];
}
/**
* Finds whether AL pins have slow slew or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if AH pins have slow slew.
*/
public int isAHSlowSlew() {
return info[63];
}
/**
* Finds whether if AH pins are Schmitt input or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if AH pins are Schmitt input.
*/
public int isAHSchmittInput() {
return info[64];
}
/**
* Retrieves the AH drive current value.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return AH drive current value.
*/
public int getAHDriveCurrent() {
return info[65];
}
/**
* Finds whether BL pins have slow slew or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if BL pins have slow slew.
*/
public int isBLSlowSlew() {
return info[66];
}
/**
* Finds whether if BL pins are Schmitt input or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if BL pins are Schmitt input.
*/
public int isBLSchmittInput() {
return info[67];
}
/**
* Retrieves the BL drive current value.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return BL drive current value.
*/
public int getBLDriveCurrent() {
return info[68];
}
/**
* Finds whether BL pins have slow slew or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if BH pins have slow slew.
*/
public int isBHSlowSlew() {
return info[69];
}
/**
* Finds whether if BH pins are Schmitt input or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if BH pins are Schmitt input.
*/
public int isBHSchmittInput() {
return info[70];
}
/**
* Retrieves the BH drive current value.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return BH drive current value.
*/
public int getBHDriveCurrent() {
return info[71];
}
/**
* Finds whether interface is 245 FIFO or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is 245 FIFO.
*/
public int isIFAIsFifo7() {
return info[72];
}
/**
* Finds whether interface is 245 FIFO CPU target or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is 245 FIFO CPU target.
*/
public int isIFAIsFifoTar7() {
return info[73];
}
/**
* Finds whether interface is fast serial or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is Fast serial.
*/
public int isIFAIsFastSer7() {
return info[74];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isAIsVCP7() {
return info[75];
}
/**
* Finds whether interface is 245 FIFO or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is 245 FIFO.
*/
public int isIFBIsFifo7() {
return info[76];
}
/**
* Finds whether interface is 245 FIFO CPU target or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is 245 FIFO CPU target.
*/
public int isIFBIsFifoTar7() {
return info[77];
}
/**
* Finds whether interface is fast serial or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is Fast serial.
*/
public int isIFBIsFastSer7() {
return info[78];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isBIsVCP7() {
return info[79];
}
/**
* Finds whether power saving is enabled or not.
*
* Mainly applicable for Rev 7 (FT2232H) extensions.
*
* @return non-zero value if using BCBUS7 to save power for self-powered designs.
*/
public int isPowerSaveEnabled() {
return info[80];
}
/* Rev 8 (FT4232H) Extensions */
/**
* Finds whether pull down is enabled or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnabled8() {
return info[81];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnabled8() {
return info[82];
}
/**
* Finds whether A pins have slow slew or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if A pins have slow slew.
*/
public int isASlowSlew() {
return info[83];
}
/**
* Finds whether if A pins are Schmitt input or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if A pins are Schmitt input.
*/
public int isASchmittInput() {
return info[84];
}
/**
* Retrieves the A drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return A drive current value.
*/
public int getADriveCurrent() {
return info[85];
}
/**
* Finds whether B pins have slow slew or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if B pins have slow slew.
*/
public int isBSlowSlew() {
return info[86];
}
/**
* Finds whether if B pins are Schmitt input or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if B pins are Schmitt input.
*/
public int isBSchmittInput() {
return info[87];
}
/**
* Retrieves the B drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return B drive current value.
*/
public int getBDriveCurrent() {
return info[88];
}
/**
* Finds whether C pins have slow slew or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if C pins have slow slew.
*/
public int isCSlowSlew() {
return info[89];
}
/**
* Finds whether if C pins are Schmitt input or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if C pins are Schmitt input.
*/
public int isCSchmittInput() {
return info[90];
}
/**
* Retrieves the C drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return C drive current value.
*/
public int getCDriveCurrent() {
return info[91];
}
/**
* Finds whether D pins have slow slew or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if D pins have slow slew.
*/
public int isDSlowSlew() {
return info[92];
}
/**
* Finds whether if D pins are Schmitt input or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if D pins are Schmitt input.
*/
public int isDSchmittInput() {
return info[93];
}
/**
* Retrieves the D drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return D drive current value.
*/
public int getDDriveCurrent() {
return info[94];
}
/**
* Checks whether port A uses RI as RS485 TXDEN or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if port A uses RI as RS485 TXDEN.
*/
public int isARIIsTXDEN() {
return info[95];
}
/**
* Checks whether port B uses RI as RS485 TXDEN or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if port B uses RI as RS485 TXDEN.
*/
public int isBRIIsTXDEN() {
return info[96];
}
/**
* Checks whether port C uses RI as RS485 TXDEN or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if port C uses RI as RS485 TXDEN.
*/
public int isCRIIsTXDEN() {
return info[97];
}
/**
* Checks whether port D uses RI as RS485 TXDEN or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if port D uses RI as RS485 TXDEN.
*/
public int isDRIIsTXDEN() {
return info[98];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isAIsVCP8() {
return info[99];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isBIsVCP8() {
return info[100];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isCIsVCP8() {
return info[101];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 8 (FT4232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isDIsVCP8() {
return info[102];
}
/* Rev 9 (FT232H) Extensions */
/**
* Finds whether pull down is enabled or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if pull down is enabled.
*/
public int isPullDownEnableH() {
return info[103];
}
/**
* Finds whether serial number is to be used or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if serial number is to be used.
*/
public int isSerNumEnableH() {
return info[104];
}
/**
* Finds whether AC pins have slow slew or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if AC pins have slow slew.
*/
public int isACSlowSlewH() {
return info[105];
}
/**
* Finds whether if AC pins are Schmitt input or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if AC pins are Schmitt input.
*/
public int isACSchmittInputH() {
return info[106];
}
/**
* Retrieves the AC drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return AC drive current value.
*/
public int getACDriveCurrentH() {
return info[107];
}
/**
* Finds whether AD pins have slow slew or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if AD pins have slow slew.
*/
public int isADSlowSlewH() {
return info[108];
}
/**
* Finds whether if AD pins are Schmitt input or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if AD pins are Schmitt input.
*/
public int isADSchmittInputH() {
return info[109];
}
/**
* Retrieves the AD drive current value. Valid values are 4mA, 8mA, 12mA, 16mA.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return AD drive current value.
*/
public int getADDriveCurrentH() {
return info[110];
}
/**
* Gives the CBUS 0 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 0 configuration value.
*/
public int getCbus0H() {
return info[111];
}
/**
* Gives the CBUS 1 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 1 configuration value.
*/
public int getCbus1H() {
return info[112];
}
/**
* Gives the CBUS 2 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 2 configuration value.
*/
public int getCbus2H() {
return info[113];
}
/**
* Gives the CBUS 3 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 3 configuration value.
*/
public int getCbus3H() {
return info[114];
}
/**
* Gives the CBUS 4 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 4 configuration value.
*/
public int getCbus4H() {
return info[115];
}
/**
* Gives the CBUS 5 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 5 configuration value.
*/
public int getCbus5H() {
return info[116];
}
/**
* Gives the CBUS 6 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 6 configuration value.
*/
public int getCbus6H() {
return info[117];
}
/**
* Gives the CBUS 7 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 7 configuration value.
*/
public int getCbus7H() {
return info[118];
}
/**
* Gives the CBUS 8 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 8 configuration value.
*/
public int getCbus8H() {
return info[119];
}
/**
* Gives the CBUS 9 configuration value.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return CBUS 9 configuration value.
*/
public int getCbus9H() {
return info[120];
}
/**
* Finds whether interface is 245 FIFO or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if interface is 245 FIFO.
*/
public int isIsFifoH() {
return info[121];
}
/**
* Finds whether interface is 245 FIFO CPU target or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if interface is 245 FIFO CPU target.
*/
public int isIsFifoTarH() {
return info[122];
}
/**
* Finds whether interface is fast serial or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if interface is Fast serial.
*/
public int isIsFastSerH() {
return info[123];
}
/**
* Finds whether interface is 1248 or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if interface is 1248.
*/
public int isIsFT1248H() {
return info[124];
}
/**
* Retrives clock polarity for 1248 device.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return clock polarity - clock idle high (1) or clock idle low (0).
*/
public int getFT1248CpolH() {
return info[125];
}
/**
* Finds whether data for 1248 is LSB or MSB.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return 1 for LSB, 0 for MSB.
*/
public int isFT1248LsbH() {
return info[126];
}
/**
* Finds flow control for FT1248.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return flow control setting for device.
*/
public int enableFT1248FlowControlH() {
return info[127];
}
/**
* Finds whether interface is to use VCP drivers or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if interface is to use VCP drivers.
*/
public int isIsVCPH() {
return info[128];
}
/**
* Finds whether power saving is enabled or not.
*
* Mainly applicable for Rev 9 (FT232H) extensions.
*
* @return non-zero value if using BCBUS7 to save power for self-powered designs.
*/
public int isPowerSaveEnableH() {
return info[129];
}
}