Home
FTDI pdf AN 233 Java D2xx for Android API User Manual
Contents
1. 48 9 18 49 9 19 yd ye ge deere ere reer er ere er terre tre 49 9 20 SBetBIEMOtlG 49 9 21 50 9 22 SOLBFGONKOLE ies r rere rer reer reer rrer reer tere re rer rrr re errer tree rere rere rrr 50 9 23 setBreakOn 51 9 24 SetChal 51 9 25 setDataCharacteristics 2 anoo coco c c c o 51 9 26 setEventNotifcation essere esee eese enne annee annuam 52 9 27 getEventStatlis 55 s v wkukRi EE RAREERE EERVEERERRFEEEFAWERFRERCFAEERREREEKREEEE 52 9 28 SetFIOWLOHNLU Oli ics enes su eua RA cussus eu uas 53 9 29 setLatencyTIHUQE 22 isoxusausscsesexssuXe ssuasasesezssssesswass seges sseseRassguxeds 53 9 30 getLatelcyTIIIBE
2. 53 9 31 SeIDtL iseinsansRauaRERRRRERESRRRIRERRSREXRERASEERRZR RASEN SERRSRRRRSRZRARRRSERRSRRRR REA 54 9 32 clrDir 1 errr eer rere unu xu nianu Eu x RR ERR RR ROC COD ODORE ERO EOD RODEO ERR RO 54 9 33 SeIRES 1 5 1355 52533383 ARXSRRERRRRZRRESAREAZARRARESRASESRANARRRSRRRSARRRRARARRERARRSRREARE 54 9 34 CIFR S 54 9 35 GC PromEraSe 55 9 36 CPDFOMRE A Pernt errr errrerr rere reer rrr rer rrr 55 9 37 eepr mWrite rere terre rrr err cre 56 9 38 56 9 39 eepromWFEItG WOFU iris nes 56 9 40 eepromGetUserAreaSize 57 9 41 eepromReadUserArea 57 9 42 eepromWriteUserArea 57 10 EEPRO
3. Future Technology Devices International Ltd Java D2xx for Android API User Manual Document Reference No FT_000796 Version 1 0 Issue Date 2013 02 05 This document provides the application programming interface API for the Java D2xx for Android library Future Technology Devices International Limited FTDI Unit 1 2 Seaward Place Glasgow G41 1HH United Kingdom Tel 44 0 141 429 2777 Fax 44 0 141 429 2758 E Mail Support supporti ftdichip com Web http www ftdichip com Copyright 2013Future Technology Devices International Limited Use of FTDI devices in life support and or safety applications is entirely at the user s risk and the user agrees to defend indemnify and hold harmless FTDI from any and all damages claims suits or expense resulting from such use 772 FTDI Java D2xx for Android API User Manual Chip Document Reference HG ET D00736 a Clearance No FTDI 328 Table of Contents 1 NUEVA ERN UNE 6 1 1 Acronyms and 6 2 7 2 1 Android tl ol ele lg eeeerrrrrerrrrrrrrrr rrr rrr rrr rer rc rere er rrr rr rrr rrr errr errr rr re 7 2 2 PFerenulsites ii sisinse Esa us
4. 7 D2xx Library Packages e ee eere enne enn nnn nnn 9 2 1 Package Coni DO au sasssiu vazas usse sS as 9 3 2 Class Hierarchy 10 4 Methods 2 11 4 1 21 4 2 1 21 4 3 getDeviceInfoListDetail 22 22 4 5 22 4 6 5 23 4 7 getVIDPID 43 siusxussusxuequsu essusvesevksguZussvwEAVESRERFRERS 23 A B ISFIDEVICE uisssssaxsaas nA RRRIARERRRERRAESRRNRRANRAREIRARERSRSSRAERRARRRRESARERARESRR 24 4 9 openByDescription with DriverParameters 24 4 1
5. SYNC FIFO static byte FT BITMODE CBUS BITBANG Bit Mode bits Reset RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE 2232 FT2232H FT4232H and FT232H devices only MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE SYNC BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE MCU HOST Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT BITMODE CBUS BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT SYNC FIFO static byte FT BITMODE FAST SERIAL Bit Mode bits Reset RESET Copyright 2013Future Technology Devices International Limited 11 static byte static byte static byte Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance 328 Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE 2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_SYNC_BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MCU_HOST Fast Opto lsolated
6. DCD static byte FT_EVENT_LINE_STATUS Event bits Rx Char Event FT_EVENT_RXCHAR Modem Status Event EVENT STATUS Line Status Event FT EVENT LINE STATUS Removed Event FT EVENT REMOVED static byte FT EVENT MODEM STATUS Event bits Rx Char Event EVENT RXCHAR Modem Status Event EVENT STATUS Line Status Event EVENT LINE STATUS Removed Event FT EVENT REMOVED static byte FT EVENT REMOVED Event bits Rx Char Event EVENT RXCHAR Modem Status Event EVENT STATUS Copyright 2013Future Technology Devices International Limited 16 static static static statie static static static static byte byte byte byte short short short short FTDI Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Line Status Event EVENT LINE STATUS Removed Event FT EVENT REMOVED FT EVENT RXCHAR Event bits Rx Char Event EVENT RXCHAR Modem Status Event EVENT STATUS Line Status Event EVENT LINE STATUS Removed Event FT EVENT REMOVED FT FE Line status bits OE Plz lel Jee FE FT_FE FT FT_FLAGS_HI_SPEED Device info list flags Device Open Flag FT_FLAGS_OPENED Device Hi Speed Flag FLAGS HI SPEED FT FLAGS OPENED Device info list flag
7. This method writes data to the device from the Java application buffer The device must be open to write data to it This method will wait until USB request sent is complete and then report how many bytes were written Parameters data A data buffer containing the bytes to write to the device Returns The number of bytes successfully written to the device 9 15 resetDevice Definition public boolean resetDevice Summary This method sends a vendor command to the device to cause a reset and flush any data from the device buffers Returns Return true mean success 9 16 restartInTask Definition public void restartInTask Summary Restarts the driver s IN thread following a successful call to stopInTask Remarks This function is used to restart the driver s IN task read after it has been stopped by a call to stopInTask 9 17 stopInTask Definition public void stopInTask Summary This method stops the driver s IN thread and prevents USB IN requests being issued to the device No data will be received from the device if the IN thread is stopped Remarks Used to put the driver s IN task read into a wait state It can be used in situations where data is being received continuously so that the device can be purged without more data being received It is used together with restartInTask which sets the IN task running again Copyright 2013Future Technology Devices International Limited 48
8. Default Parameteres Buffer Size 16k Max Transfer Size 16k Number Buffer 16 Read Timeout 5000 ms 8 2 Methods Method Summary Methods Modifier and Type int int int Int Boolean Boolean Boolean Boolean Method and Description getBufferNumber This method will return Buffer number for Rx in user space application getMaxBufferSize This method will return Rx buffer size of user space application getMaxTransferSize This method will return Max Transfer size for Rx in the user space application getReadTimeout This method will return timeout values to be used for read operations setBufferNumber int number This method will set the Buffer number for Rx in the user space application setMaxBufferSize int size This method will set the Max Buffer size to process Rx data in the user space application setMaxTransferSize int size This method will set the Max Transfer size to process Rx data in the user space application setReadTimeout int timeout This method specifies the timeout values to be used for read operations Copyright 2013Future Technology Devices International Limited 37 Java 2 for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 8 2 1 getBufferNumber Definition public int getBufferNumber Summary This returns the Buffer number for Rx in user space application Returns The current number of the
9. Document Reference No FT_000796 Clearance No FTDI 328 FT2232H Driver Strength Constant variable byte Constant Value FT2232H Driver Strength 4mA DRIVER_4mA FT2232H Driver Strength 8mA DRIVER 8mA FT2232H Driver Strength 12mA DRIVER 12 FT2232H Driver Strength 16mA DRIVER 16mA Copyright 2013Future Technology Devices International Limited 74 FTDI Chip 10 6 Class FT_EEPROM_4232H public class FT_EEPROM_4232H extends EEPROM EEPROM data structure on the 4232H 10 6 1 Constructor Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDIZ 328 Constructors Constructor and Description FT_EEPROM_4232H 10 6 2Fields Field Summary Fields Modifier and Type Field and Description Drive Option AH pins drive current Driver Option Interface AH Load D2XX Driver Option Interface AH Load RI_RS485 Driver Option Interface AH Load Virtual Com Port Hardware Option Interface AH uses RI as RS485 TXDEN Drive Option AH pins have Schmitt input Drive Option AH pins have slow slew Drive Option AL pins drive current Driver Option Interface AL Load D2XX Driver Option Interface AL Load RI_RS485 Driver Option Interface AL Load Virtual Com Port Hardware Option Interface AL uses RI as RS485 TXDEN Drive Option AL pins have Schmitt input Drive Option AL pins have slow
10. 2013Future Technology Devices International Limited 29 5 5 1 5 2 5 3 5 4 5 5 5 6 5 7 FTDI Chip FieldsinD2xxManager Class Data Bits lt byte gt FT_DATA_BITS_7 7 FT_DATA_BITS_8 8 Stop Bits lt byte gt FT STOP BITS 1 0 5 5 2 2 Parity Bits lt byte gt FT_PARITY_NONE FT_PARITY_ODD FT_PARITY_EVEN FT_PARITY_MARK FT_PARITY_SPACE tou i te tl BRWNFO Flow Control Bits lt short gt FT_FLOW_NONE 0x0000 FT_FLOW_RTS_CTS 0x0100 FT_FLOW_DTR_DSR 0x0200 FT_FLOW_XON_XOFF 0x0400 Purge Flags lt byte gt FT_PURGE_RX 1 FT_PURGE_TX 2 Modem StatusBits lt byte gt FT CTS 0x10 FT DSR 0x20 FT RI 0x40 FT_DCD 0x80 Line Status Bits lt byte gt FT 0x02 FT PE 0x04 FT FE 0x08 FT_BI 0x10 Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Copyright 2013Future Technology Devices International Limited 30 5 8 5 9 c FTDI Chip Event Bits lt byte gt Rx Char Event FT_EVENT_RXCHAR 0x01 Modem Status Event EVENT MODEM STATUS 0x02 Line Status Event FT EVENT LINE STATUS 0x04 Removed Event FT EVENT REMOVED 0x08 Device Information List Flags byte Device Open Flag FT FLAGS OPENED 1 Device Hi Speed Flag FT_FLAGS_HI_SPEED 2 5 10 Device Type lt int gt bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT_DEVICE_232B 0 bvdDevice
11. 328 Field Detail DeviceType public short DeviceType Hardware Option Invert RTS Signal publicjava lang String Manufacturer String Descriptor Manufacturer String publicjava lang String Product String Descriptor Product String SerialNumber publicjava lang StringSerialNumber String Descriptor Serial Number String VendorId public short VendorId Device Descriptor Vendor ID ProductId public short ProductId Device Descriptor Product ID SerNumEnable public boolean SerNumEnable Device Descriptor Serial Number Enabled MaxPower public short MaxPower Config Descriptor Max USB Power Value between 0 and 500 SelfPowered public boolean SelfPowered Config Descriptor Self Powered Mode RemoteWakeup public boolean RemoteWakeup String Descriptor Remote Wakeup Enabled PullDownEnable public boolean PullDownEnable Hardware Option Pull Down In Suspend Enabled Copyright 2013Future Technology Devices International Limited 59 4 LJ d A EN me FTDI Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance No FTDIZ 328 10 2 Class FT_EEPROM_232R public class FT_EEPROM_232R extends FT EEPROM EEPROM data structure on the 232R 10 2 1Constructor Constructor Summary Constructors Constructor and Description FT_EEPROM_232
12. A Java class library supporting USB Host is available and applicable to Android v3 2 or any later series This library requires no special root access privileges 2 2 Prerequisites The following is required to install the FTDI D2xx driver e An Android device recommended o A BSP supporting Android USB Host API corresponding to AOSP 3 2 or later o Acontemporary Android device running v3 2 or a later OS with USB Host or OTG interface FTDI testing was conducted using a Google Nexus 7 e FTDI chip based module to test the FTDI D2xx driver NOTE To develop an application using the FTDI D2xx driver for Android the development machine must have the Eclipse IDE and an up to date version of Android SDK including the ADB program and Android ADT Plugin installed The installation and configuration of these tools is not included in this document For more information please see http developer Android com sdk index html Copyright 2013Future Technology Devices International Limited 7 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 The Android device should also have USB Debugging enabled to allow access using the ADB utility To accomplish this navigate to Settings gt Applications gt Development and check the USB debugging option summary of the required configuration is provided in the diagram below Development Machine Android Device E
13. CBUS Option on the X Series Copyright 2013Future Technology Devices International Limited 91 Chip 10 8 6 CBUS Fields Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 FT X SeriesCBUS Option CBUS Constant Variable int Constant Value Tri State TRISTATE 0 RXLED RXLED 1 TXLED TXLED 2 TX amp RX LED TXRXLED 3 Power Enable PWREN 4 SLEEP SLEEP 5 Driver 0 DRIVER 0 6 Driver 1 DRIVER 1 7 GPIO Mode GPIO MODE 8 TXDEN TXDEN 9 24M Hz Clock Output CLK24MHz 10 12M Hz Clock Output CLK12MHz 11 6M Hz Clock Output CLK6MHz 12 BCD Charge 1 1 13 BCDCharge2 BCD Charge2 14 I2C 12 _ 15 12 RXF 2 RXF 16 VBUS Sense VBUS Sense 17 Bit Bang WR BitBang WR 18 Bit Bang RD BitBang RD 19 Time Stamp Time Stamp 20 Keep Awake Keep Awake 21 Copyright 2013Future Technology Devices International Limited 92 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 11 Appendix A References http developer Android com index html http www ftdichip com Copyright 2013Future Technology Devices International Limited 93 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No F
14. DEVICE 245 bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 Copyright 2013Future Technology Devices International Limited 15 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 bvdDevice 0x0900 FT_DEVICE_232H bvdDevice 0x1000 DEVICE X SERIES static int FT DEVICE UNKNOWN Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 DEVICE 2328 bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown FT DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 2328 bvdDevice 0x0600 DEVICE 245 bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232H bvdDevice 0x1000 FT DEVICE X SERIES static int FT DEVICE X SERIES Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT DEVICE 232B bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 2328 bvdDevice 0x0600 DEVICE 245R bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 FT DEVICE 232 bvdDevice 0x1000 DEVICE X SERIES static byte FT DSR Modem status bits CTS FT CIS DSR FT_DSR
15. FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 18 stoppedInTask Definition public boolean stoppedInTask Summary This method return the running status of the driver s IN thread Remarks This function is used to query the driver s IN task status Returns Return true if the driver s IN task is paused false indicates that driver s IN task is not running 9 19 setBaudrate Definition public boolean setBaudRate intbaudRate Summary This method sends a vendor command to the device to change the baud rate generator value Note that the baud rate is only meaningful when the device is in UART or bit bang mode Parameters baudRate The baud rate value to set for the device This must be a value gt 184 baud The maximum baud rate for full speed devices is 3Mbaud for hi speed devices it is 12Mbaud Returns Return true mean success 9 20 setBitMode Definition public boolean setBitMode byte mask byte bitMode Summary Allows the device to use alternative interface modes such as bit bang MPSSE and CPU target mode Note that not all modes are available on all devices please consult the device data sheet for more information Remark For a description of available bit modes for the FT232R see the application note Bit Bang Modes for the FT232R and FT245R For a description of available bit modes for the FT2232 see the applicati
16. The event status negative for error Copyright 2013Future Technology Devices International Limited 52 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 28 setFlowControl Definition public boolean setFlowControl short flowControl bytexon byte xoff Summary Specifies the flow control method that the device should use to prevent data loss Parameters flowControl Valid flow control values are FT_FLOW_NONE FT_FLOW_RTS_CTS FT_FLOW_DTR_DSR or FT_FLOW_XON_XOFF xon Specifies the character to use for XOn if FT_FLOW_XON_XOFF is enabled xoff Specifies the character to use for XOff if FT_FLOW_XON_XOFF is enabled Returns Return true mean success 9 29 setLatencyTimer Definition public boolean setLatencyTimer byte latency Summary This method allows the latency timer value for the device to be specified The latency timer is the mechanism that returns short packets to the USB host The default value is 16ms Parameters In the FT8U232AM and FT8U245AM devices the receive buffer timeout that is used to remove remaining data from the receive buffer is fixed at 16 ms In other FTDI devices this timeout is programmable and can be set at 1 ms intervals between 2ms and 255 ms This allows the device to be better optimized for protocols requiring faster response times from short data packets Remarks latency The new value to use for the latenc
17. obtaining a value of D2xx device manager getLibraryVersion This method returns the D2XX library version number getVIDPID This retrieves the current VID and PID combination from within the internal device list table isFtDevice UsbDevice dev This queries if a plugged in USB device is a valid FT_Device openByDescription Context parentContext java lang String description This designates the device with the specified description openByDescription Context parentContext java lang String description D2xxManager DriverParameters params This designates the device with the specified description and allows for configuration of driver parameters openByIndex Context parentContext int index This designates the device at the specified index openByIndex Context parentContext int index D2xxManager DriverParameters params This designates the device at the specified index and allows for configuration of driver parameters openByLocation Context parentContext int location This designates the device at the specified location openByLocation Context parentContext int location D2xxManager DriverParameters params This designates the device at the specified location and allows for configuration of driver parameters openBySerialNumber Context parentContext java lang String serialNumber This designates the device with the specified serial number openBySerialNumber Context parentContext java lang String serialNumber D2xxMan
18. 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 232 bvdDevice 0 0600 DEVICE 245 bvdDevice 0x0700 DEVICE 2232H bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232 bvdDevice 0x1000 DEVICE X SERIES FT DEVICE 232H Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 DEVICE 2328 bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown FT DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 232 bvdDevice 0x0600 DEVICE 245 bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 Copyright 2013Future Technology Devices International Limited 14 static int static int static int static int FTDI Ch ip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 bvdDevice 0x0900 FT_DEVICE_232H bvdDevice 0x1000 FT DEVICE X SERIES FT DEVICE 232R Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 DEVICE 2328 bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown FT DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 2328 bvdDevice 0x0600 DEVICE 245
19. 0x0200 and iSerialNumber 0 FT_DEVICE_8U232AM 1 Unknown FT_DEVICE_UNKNOWN 3 bvdDevice 0x0500 FT_DEVICE_2232 4 bvdDevice 0x0600 FT_DEVICE_232R 5 bvdDevice 0x0600 FT_DEVICE_245R 5 bvdDevice 0x0700 FT_DEVICE_2232H 6 bvdDevice 0x0800 FT_DEVICE_4232H 7 bvdDevice 0x0900 FT_DEVICE_232H 8 bvdDevice 0x1000 FT DEVICE X SERIES 9 Java 2 for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Copyright 2013Future Technology Devices International Limited 31 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 5 11 Bit Mode Bits lt byte gt Reset FT_BITMODE_RESET 0x00 Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG 0x01 MPSSE FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MPSSE 0x02 Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_SYNC_BITBANG 0x04 MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MCU_HOST 0x08 Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H FT232H devices only BITMODE FAST SERIAL 0x10 CBUS Bit Bang Mode FT232R and FT232H devices only FT_BITMODE_CBUS_BITBANG 0x20 Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT_BITMODE_SYNC_FIFO 0x40 5 12 Break On Bits lt int gt
20. 2n52a5saann5RRSRRRSRRESRAERARRERARSREERSSSESRRRSARERRREARARARS 45 L 0 1 DT 3 BARRE 45 DUI OS ooi Rennes een se see een seen erie ee cree errr 45 read with three parameters 46 read with two parameters cessere nenne nean nnn anna 46 Read with one 46 Copyright 2013Future Technology Devices International Limited 2 774 FTDI Java D2xx for Android API User Manual E N Chip Document Reference COUDE Clearance No FTDI 328 9 11 47 9 12 write with two 47 9 13 write with three 47 9 14 write with one parameter 48 9 15 resetDeVICG s ioassasanansARSRRERRERRESRRRRZRNSRERRARAZSRANRSARSARRRSRESRRERARESARERSRESAR 48 9 16 48 9 17
21. 70 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Drive Option AL pins have drive current boolean AL_SchmittInput Drive Option AL pins have schmitt input boolean AL_SlowSlew Drive Option AL pins have slow slew boolean B_FastSerial Hardware Option Interface B Fast Serial boolean B_FIFO Hardware Option Interface B 245 FIFO boolean B_FIFOTarget Hardware Option Interface B 245 FIFO CPU Target boolean B_LoadD2XX Driver Option Interface B Load D2XX Port boolean B_LoadVCP Driver Option Interface B Load Vitrual Com Port boolean B_UART Hardware Option Interface B 245 UART byte BH_DriveCurrent Drive Option BH pins have drive current boolean BH_SchmittInput Drive Option BH pins have schmitt input boolean BH_SlowSlew Drive Option BH pins have slow slew byte BL_DriveCurrent Drive Option BL pins have drive current boolean BL_SchmittInput Drive Option BL pins have schmitt input boolean BL_SlowSlew Drive Option BL pins have slow slew boolean PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power for self powered designs TPRDRV Field Detail public boolean AL_SlowSlew Drive Option AL pins have slow slew AL_SchmittInput public boolean AL_SchmittInput Drive Option AL pins have schmitt input AL_DriveCurrent public byte AL_DriveCurrent Drive Option AL
22. DriverParameters 37 8 1 CONSEPUCIOF 5 ssscssssssssansennenseanmeenssatsessssassstssassesarssse scene 37 8 2 5 37 8 2 1 getBufferNumber rua sua sea sea sea sea 38 8 2 2 setBufferNu umlb6t 2r Pie eden 38 8 2 3 getMaxTratsferSIze 38 8 2 4 setMaxTransfetrSize irc ead ewe 38 8 2 5 getMaxBufferSize REDIERE ERR ls 39 8 2 6 SCtMaXBurrerSiZe et ta ee 39 8 2 7 getReadTimeout cies EGER 39 8 2 8 setReadTimeout 39 9 FT usce uia iain a iiw dd ea ca w Hc 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 ClOSE e 43 getDeviceInfo 43 getLineStatls iiesisanuaussanksEsRRSEREERERESKESRRSRSSXEEREREYRRAN ARRARRRRREXZRNRRSANE 43 getModemitatls cio ooo o opo a GO OPOOGO ORODODO EOD ORE 43 getOueueStatis
23. EEPROM address to write the new data to data The data WORD to write to the EEPROM at the address specified Returns Return true mean success Copyright 2013Future Technology Devices International Limited 56 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 40 eepromGetUserAreaSize Definition public int eepromGetUserAreaSize Summary Retrieves the amount of additional space available in the device EEPROM This space the user area can be used to store application specific data Returns The number of unused EEPROM bytes available to the user Negative value for error 9 41 eepromReadUserArea Definition public byte eepromReadUserArea int length Summary Retrieves the contents of the device EEPROM user area The number of bytes returned matches the user area size returned from eepromGetUserAreaSize Parameters length The length of word is read Returns An array of bytes containing the user area data from the device EEPROM NULL for error 9 42 eepromWriteUserArea Definition public int eepromWriteUserArea byte data Summary Writes data to the device EEPROM user area Once written the data can be retrieved with a call to eepromReadUserArea int Parameters data The data to be written to the device EEPROM user area The data is truncated if the size of data is greater than the space available in the user
24. FT4232H Device PID 0x6010 FT2232 FT2232H Device PID 0x6001 232AM FT232B or FT232R PID 0x6006 Direct Driver Recovery PID PID OxFAC1 USB Instruments PS40M10 PID OxFAC2 USB Instruments DS1M12 PID OxFAC3 USB Instruments DS100M10 PID OxFAC4 USB Instruments DS60M10 PID OxFAC5 USB Instruments EasySYNC LA100 PID OxFAC6 USB2 F 7x01 CANPIus Adapter PID 0x6012 ES001H PID 0x1025 Macraigor customer request PID 0x0001 Keith Support Request 8 10 04 PID 0x6017 Additional VID PID To use this driver with other VID and PID combinations the SetVIDPID function is a pre requisite openByIndex Context int com ftdi j2xx D2xxManager DriverParameters openByLocation Context int com ftdi j2xx D2xxManager DriverParameters openBySerialNumber Context java lang String com ftdi j2xx D2xxManager DriverParameters openByDescription Context java lang String com ftdi j2xx D2xxManager DriverParameters createDeviceInfoList Context Parameters vendorld The vendor ID that the driver aligns with productId The product ID that the driver aligns with Returns If success return true 4 7 getVIDPID Definition public int getVIDPID Summary This retrieves the current VID and PID combination from within the internal device list table The VID and PID can be matched using setVIDPID int int Returns 2 element array containing the VID in the first element and the PID in th
25. FTDI Java D2xx for Android API User Manual Version 1 0 SSN Chip Document Reference No FT_000796 Clearance No FTDI 328 9 26 setEventNotifcation Definition public boolean setEventNotification long Mask Summary This method specifies events for the java driver to signal that they have occurred Once the event mask has been set Remarks An application uses this function to setup conditions which allow a thread to block until one of the conditions is met Typically an application will create an event call this function and then block on the event When the conditions are met the event is set and the application thread unblocked mask is a bit map that describes the events the application is interested in If one of the event conditions is met the event is set If FT EVENT RXCHAR is set in mask the event will be set when a character has been received by the device If FT_EVENT_MODEM_STATUS is set in mask the event will be set when a change in the modem signals has been detected by the device If FT_EVENT_LINE_STATUS is set in mask the event will be set when a change in the line status has been detected by the device Parameters mask Specifies the events to wait on This is a bit mask of FT_EVENT_RXCHAR FT_EVENT_MODEM_STATUS and FT_EVENT_LINE_STATUS Returns Return the event number 9 27 getEventStatus Definition public long getEventStatus Summary This method retrieves the event status Returns
26. Hardware Option CBus4 Mux Control boolean ExternalOscillator Hardware Option External Oscillator Caution Setting this bit without an external oscillator fitted to your design renders the device unusable boolean HighIO Drive Option High Current IO boolean InvertCTS Hardware Option Invert CTS signal boolean InvertDCD Hardware Option Invert DCD signal boolean InvertDSR Hardware Option Invert DSR signal boolean InvertDTR Hardware Option Invert DTR signal boolean InvertRI Hardware Option Invert RI signal Copyright 2013Future Technology Devices International Limited 64 777 FTDI Java D2xx for Android API User Manual Version 1 0 LSS Chip Document Reference No FT_000796 Clearance No FTDI 328 boolean InvertRTS Hardware Option Invert RTS signal boolean InvertRXD Hardware Option Invert RXD signal boolean InvertTXD Hardware Option Invert TXD signal boolean LoadVCP Driver Option Load Virtual Com Port Field Detail public boolean HighIO Drive Option High Current IO ExternalOscillator public boolean ExternalOscillator Hardware Option External Oscillator Caution Setting this bit without an external oscillator fitted to your design renders the device unusable InvertTXD public boolean InvertTXD Hardware Option Invert TXD signal public boolean InvertRXD Hardware Option Invert RXD signal InvertRTS public boolean Invert
27. International Limited 44 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 5 getQueueStatus Definition public int getQueueStatus Summary Retrieves the number of bytes available to read from the driver Rx buffer Returns The number of bytes available in the driver Rx buffer A call to read byte int requesting up to this number of bytes will return with the data immediately Returns negative number for error 9 6 isOpen Definition public boolean isOpen Summary Returns the open status of the device Returns Returns true if the device is open false otherwise 9 7 purge Definition public boolean purge byte flags Summary Discards any data form the specified driver buffer and also flushes data from the device Parameters flags Specifies the queue to purge flags is a bit mask of FT_PURGE_RX and FT_PURGE_TX Returns Return true mean SUCCESS Copyright 2013Future Technology Devices International Limited 45 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 8 read with three parameters Definition public int read byte data int length long wait_ms Summary This method reads data from the device in to the Java application buffer The device must be open to read data from it This method allows user to specify a custom read timeout value in
28. SET DATA request UART break on condition FIDI_BREAK OFF UART break off condition FTDI_ BREAK ON static int BREAK OFF static int BREAK ON L Method Summary Methods Modifier and Type int int int D2xxManager FtDeviceInfoListNode Copyright 2013Future Technology Devices International Limited Method and Description addUsbDevice UsbDevice dev This method analyze the dev passed in if it s a FTDI device add it to manageable device list createDeviceInfoList Context parentContext This method builds an internal device information list and returns the number of D2XX devices connected to the system getDeviceInfoList int numDevs D2xxManager FtDeviceInfoListNode deviceList This method returns the device list created with a prior call to createDeviceInfoList Context getDeviceInfoListDetail int index This method returns information for a single device from the internal device list created by a previous call to createDeviceInfoList Context 19 Chip static D2xxManager static int int boolean FT Device FT Device FT Device Device FT Device FT Device FT Device FT Device FT Device FT Device boolean Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance 328 getInstance Context parentContext This method initialises an application
29. TXDEN 9 30M Hz Clock Output CLK30MHz 10 15M HzClock Output CLK15MHz 11 7 5M Hz Clock Output CLK7 5MHz 12 Copyright 2013Future Technology Devices International Limited 85 FTDI Chip 10 8 Class Series public class FT_EEPROM_X_Series extends EEPROM EEPROM data structure on the X Series 10 8 1 Constructor Constructors Constructor and Description FT EEPROM X Series 10 8 2Fields Field Summary Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance 328 Battery Charge Detect option Force CBus Power Enable Fields Modifier and Type Field and Description short A_DeviceTypeValue boolean A_LoadD2XX Driver Option Load D2XX boolean A_LoadVCP Driver Option Load Virtual Com Port byte AC_DriveCurrent Drive Option AC pins drive current boolean AC_SchmittInput Drive Option AC pins have Schmitt input boolean AC_SlowSlew Drive Option AC pins have slow slew byte AD_DriveCurrent Drive Option AD pins drive current boolean AD_SchmittInput Drive Option AD pins have Schmitt input boolean AD_SlowSlew Drive Option AD pins have slow slew boolean BCDDisableSleep Battery Charge Detect option Disable Sleep boolean BCDEnable Battery Charge Detect option Enable boolean BCDForceCBusPWREN byte CBusO Hardware Option CBusO Mux Control byte 1 Hardware Option CBusi Mux Control byt
30. area Returns if write success will return length of data else 0 Copyright 2013Future Technology Devices International Limited 57 Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance 328 10EEPROM Information 10 1 Class FT_EEPROM EEPROM data structure on the 232A 232B 10 1 1Constructor Constructor Summary Constructors Constructor and Description FT_EEPROM 10 1 2Fields Field Summary Fields Modifier and Type Short java lang String Short java lang String Short boolean boolean boolean java lang String boolean Short Field and Description DeviceType Hardware Option Invert RTS Signal Manufacturer String Descriptor Manufacturer String MaxPower Configure Descriptor Max USB Power Value between 0 and 500 Product String Descriptor Product String ProductId Device Descriptor Product ID PullDownEnable Hardware Option Pull Down In Suspend Enabled RemoteWakeup String Descriptor Remote Wakeup Enabled SelfPowered Configure Descriptor Self Powered Mode SerialNumber String Descriptor Serial Number String SerNumEnable Device Descriptor Serial Number Enabled VendorId Device Descriptor Vendor ID Copyright 2013Future Technology Devices International Limited 58 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI
31. care to assure it is accurate this information is subject to customer confirmation and FTDI disclaims all liability for system designs and for any applications assistance provided by FTDI Use of FTDI devices in life support and or safety applications is entirely at the user s risk and the user agrees to defend indemnify and hold harmless FTDI from any and all damages claims suits or expense resulting from such use This document is subject to change without notice No freedom to use patents or other intellectual property rights is implied by the publication of this document Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder Future Technology Devices International Ltd Unit 1 2 Seaward Place Centurion Business Park Glasgow G41 1HH United Kingdom Scotland Registered Company Number SC136640 Copyright 2013Future Technology Devices International Limited 96 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Copyright 2013Future Technology Devices International Limited 96
32. devices which are open in other processes The Flags parameter of FT FLAGS OPENED indicates that the device is open with the other fields being unpopulated Parameters numDevs The number of devices represented in the device information list deviceList An array of FtDeviceInfoListNode That contains information on all available devices after a successful call Returns The number of devices represented in the device information list as returned from the getDevicelnfoList int com ftdi j2xx D2xxManager FtDeviceInfoListNode call Copyright 2013Future Technology Devices International Limited 21 7724 FTDI Java D2xx for Android API User Manual Version 1 0 SSN Chip Document Reference No FT_000796 Clearance No FTDI 328 4 3 getDeviceInfoListDetail Definition public D2xxManager FtDeviceInfoListNode getDeviceInfoListDetail int index Summary This method returns information for a single device from the internal device list created by a previous call to createDevicelnfoList Context The flags element of the FtDeviceInfoListNode object is a bit mask of FLAGS OPENED FT FLAGS HI SPEED NOTE This function is to be called after calling createDeviceInfoList Context The device info list is not updated where changes are made to the connected devices until createDeviceInfoList Context is called again The index value is zero based Parameters index An index of the information pertai
33. milliseconds unit Parameters data A data buffer containing the bytes read from the device length The number of bytes that the application is requesting to be read from the device wait_ms A custom wait timeout value in ms Returns The number of bytes successfully read from the device 9 9 read with two parameters Definition public int read byte data int length Summary This method reads data from the device in to the Java application buffer The device must be open to read data from it Parameters data A data buffer containing the bytes read from the device length The number of bytes that the application is requesting to be read from the device Returns The number of bytes successfully read from the device 9 10 Read with one parameter Definition public int read byte data Summary Reads data from the device in to the Java application buffer The device must be open to read data from it Will attempt to read data length bytes from the device Parameters data A data buffer containing the bytes read from the device Returns The number of bytes successfully read from the device Copyright 2013Future Technology Devices International Limited 46 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 11 readBufferFull Definition public boolean readBufferFull Summary This method return if the Rx buffer wa
34. pins have driver current Copyright 2013Future Technology Devices International Limited 71 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public boolean AH_SlowSlew Drive Option AH pins have slow slew public boolean AH_SchmittInput Drive Option AH pins have schmitt input AH_DriveCurrent public byte AH_DriveCurrent Drive Option AH pins have driver current BL_SlowSlew public boolean BL_SlowSlew Drive Option BL pins have slow slew BL_SchmittInput public boolean BL_SchmittInput Drive Option BL pins have schmitt input BL_DriveCurrent public byte BL_DriveCurrent Drive Option BL pins have driver current BH_SlowSlew public boolean BH_SlowSlew Drive Option BH pins have slow slew BH_SchmittInput public boolean BH_SchmittInput Drive Option BH pins have schmitt input BH_DriveCurrent public byte BH_DriveCurrent Drive Option BH pins have driver current public boolean A_UART Hardware Option Interface A 245 UART public boolean B_UART Hardware Option Interface B 245 UART Copyright 2013Future Technology Devices International Limited 72 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public boolean A_FIFO Hardware Option Interface A 245 FIFO public
35. slew byte AH_DriveCurrent boolean AH_LoadD2XX boolean AH_LoadRI_RS485 boolean AH_LoadVCP boolean AH_RI_TXDEN boolean AH_SchmittInput boolean AH_SlowSlew byte AL_DriveCurrent boolean AL LoadD2XX boolean AL LoadRI RS485 boolean AL LoadVCP boolean AL RI TXDEN boolean AL SchmittInput boolean AL SlowSlew byte BH DriveCurrent Drive Option BH pins drive current Copyright 2013Future Technology Devices International Limited 75 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 BH_LoadD2XX Driver Option Interface BH Load D2XX BH_LoadRI_RS485 Driver Option Interface BH Load RI_RS485 boolean BH LoadVCP Driver Option Interface BH Load Virtual Com Port boolean BH RI TXDEN Hardware Option Interface BH uses RI as RS485 TXDEN boolean BH SchmittInput Drive Option BH pins have Schmitt input boolean SlowSlew Drive Option BH pins have slow slew byte BL DriveCurrent Drive Option BL pins Drive Current boolean BL LoadD2XX Driver Option Interface BL Load D2XX boolean BL LoadRI 5485 Driver Option Interface BL Load RI RS485 boolean BL LoadVCP Driver Option Interface BL Load Virtual Com Port boolean BL RI TXDEN Hardware Option Interface BL uses RI as RS485 TXDEN boolean BL SchmittInput Drive Option BL pins have Schmitt input boolean BL SlowSlew Drive Option BL pins have slow slew int TPRDRV Driver Option Rise and fall time
36. 0 openByDescription without DriverParameters 24 4 11 openByIndex with DriverParameters 25 4 12 openByIndex without 25 4 13 openByLocation with 25 4 14 openByLocation without DriverParameters 26 4 15 openBySerialNumber with DriverParameters 26 4 16 openBySerialNumber without DriverParameters 27 4 17 openByUSBDevice with DriverParameters 27 4 18 openByUSBDevice without DriverParameters 28 4 19 Sample iusssusasnsasnsRASSRRRERRAESRRERRRERSRERESRESSRRERRREYRRRSSSRARARSRATERARRESARESRRE AER 29 5 FieldsinD2xxManager 30 5 1 Data Bits Dyte 30 5 2 SlOp BIte c DVEIG 30 Parity Bitsc assisasssssesas susazcs zszss scussasesezssaxesezesusesesazenssd 30 5 4 Flow Control Bits short eee eese eene nnne enne 30 Copyright 2013Future Technology Devices International Limited 1 _4 y m FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No
37. 00796 Clearance No FTDI 328 10 2 3 Nested Class public static final class FT_EEPROM_232R CBUS extends java lang Object CBus Option on the FT232R Nested Class Summary Nested Classes Modifier and Type Class and Description static class FT_EEPROM_232R CBUS CBus Option on the FT232R 10 2 4CBUS Fields FT 232R CBus Option CBus Constant Variable int Constant Value TXDEN TXDEN 0 PWRON PWRON 1 RXLED RXLED 2 TXLED TXLED 3 TXRXLED TXRXLED 4 SLEEP SLEEP 5 48M Clock Hz CLK48MHz 6 24M Clock Hz CLK24MHz 7 12M Clock Hz CLK12MHz 8 6M Clock Hz CLK6MHz 9 IO_MODE IO_MODE 10 BIT_BANG_WR BIT_BANG_WR 11 BIT_BANG_RD BIT_BANG_RD 12 Copyright 2013Future Technology Devices International Limited 63 Chip 10 3 Class FT_EEPROM_245R public class FT_EEPROM_245R extends EEPROM EEPROM data structure on the 245R 10 3 1Constructor Constructor Summary Constructors Constructor and Description FT_EEPROM_245R 10 3 2Fields Field Summary Fields Modifier and Type Field and Description byte CBusO Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance No FTDIZ 328 Hardware Option CBusO Mux Control byte 51 Hardware Option 51 Mux Control byte CBus2 Hardware Option CBus2 Mux Control byte CBus3 Hardware Option CBus3 Mux Control byte CBus4
38. 248ClockPolarity public boolean FT1248ClockPolarity FT1248 Option FT1248 clock polarity true clock idle high false clock idle low FT1248LSB public boolean FT1248LSB FT1248 Option FT1248 LSB true LSB false MSB FT1248FlowControl public boolean FT1248FlowControl FT1248 Option FT1248 Flow Control InvertTXD public boolean InvertTXD Hardware Option Invert TXD signal public boolean InvertRXD Hardware Option Invert RXD signal InvertRTS public boolean InvertRTS Hardware Option Invert RTS signal InvertCTS public boolean InvertCTS Hardware Option Invert CTS signal InvertDTR public boolean InvertDTR Hardware Option Invert DTR signal public boolean InvertDSR Hardware Option Invert DSR signal Copyright 2013Future Technology Devices International Limited 89 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public boolean InvertDCD Hardware Option Invert DCD signal public boolean InvertRI Hardware Option Invert RI signal I2CSlaveAddress public int I2CSlaveAddress 12 Option Slave Address I2CDeviceID public int I2CDeviceID I2C Option I2C Device ID I2CDisableSchmitt public boolean I2CDisableSchmitt I2C Option Disable Schmitt trigger AD SlowSlew public boolean SlowSlew Drive Option AD pins have slow slew
39. AD SchmittInput public boolean AD SchmittInput Drive Option AD pins have Schmitt input AD DriveCurrent public byte AD DriveCurrent Drive Option AD pins drive current public boolean SlowSlew Drive Option AC pins have slow slew public boolean SchmittInput Drive Option AC pins have Schmitt input AC DriveCurrent public byte AC DriveCurrent Drive Option AC pins drive current Copyright 2013Future Technology Devices International Limited 90 Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 RS485EchoSuppress public boolean RS485EchoSuppress Hardware Option RS485 Echo Suppression PowerSaveEnable public boolean PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power for self powered designs 10 8 3Nested Class Driver Strength public static final class X Series DRIVE STRENGTH extends java lang Object The driver strength on the X Series 10 8 4 Driver Length Fields FT X Series Driver Strength Constant variable byte Constant Value FT X Series Driver Strength 4mA DRIVER 4mA 0 FT X Series Driver Strength 8mA DRIVER 8mA 1 FT X Series Driver Strength DRIVER 12mA 2 12mA FT X Series Driver Strength DRIVER 16 3 16mA 10 8 5 Nested Class CBUS public static final class FT EEPROM X Series CBUS extends java lang Object
40. FT DATA BITS 7 8 DATA BITS 8 FT DCD Modem status bits CIS DSR FT_DSR Copyright 2013Future Technology Devices International Limited 13 static int static int static int static int FTDI Ch ip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 DCD FT_DCD FT_DEVICE_2232 Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT_DEVICE_232B bvdDevice 0x0200 and iSerialNumber 0 FT_DEVICE_8U232AM Unknown FT_DEVICE_UNKNOWN bvdDevice 0x0500 FT_DEVICE_2232 bvdDevice 0x0600 FT_DEVICE_232R bvdDevice 0x0600 FT_DEVICE_245R bvdDevice 0x0700 FT_DEVICE_2232H bvdDevice 0x0800 FT_DEVICE_4232H bvdDevice 0x0900 FT_DEVICE_232H bvdDevice 0x1000 FT DEVICE X SERIES FT DEVICE 2232H Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT DEVICE 232B bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 2328 bvdDevice 0x0600 DEVICE 245R bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232 bvdDevice 0x1000 DEVICE X SERIES FT DEVICE 232B Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT DEVICE 232B bvdDevice
41. FT_000796 Clearance No FTDI 328 5 9 P rge FlagS lt DV Ce gt 30 5 6 Modem StatusBits byte 30 5 7 Line Status Bits lt byte gt sicsiisiscsssiviscosdictsaewiicteaesdivivassdivivawsdinios 30 5 8 Event E E RR 31 5 9 Device Information List lt gt 31 5 10 Device lt Int 31 5 11 Bit Mode Bits byte 32 5 12 Break On Bits IDE 2 oec ee suekexaeuesuxvxen x exe zaustevenex eux eue suede 32 6 D2xxManager FtDeviceListNode 33 AMI T 33 6 2 35 7 2 2 36 7 1 Constructor serres dermato sd 36 8 D2xxManager
42. L tw admin1 ftdichip com http www ftdichip com Distributor and Sales Representatives Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Branch Office Hillsboro Oregon USA 7130 SW Fir Loop Tigard OR 97223 8160 USA Tel 1 503 547 0988 Fax 1 503 547 0987 E Mail Sales us sales ftdichip com E Mail Support us support ftdichip com E Mail General Enquiries us admin ftdichip com Web Site URL http www ftdichip com Branch Office Shanghai China Room 408 317 Road Shanghai 200051 China Tel 86 2162351596 Fax 86 2162351595 E mail Sales E mail Support E mail General Enquiries Web Site URL cn sales ftdichip com cn support ftdichip com cn admin ftdichip com http www ftdichip com Please visit the Sales Network page of the FIDI Web site for the contact details of our distributor s and sales representative s in your country System and equipment manufacturers and designers are responsible to ensure that their systems and any Future Technology Devices International Ltd FTDI devices incorporated in their systems meet all applicable safety regulatory and system level performance requirements All application related information in this document including application descriptions suggested FTDI devices and other materials is provided for reference only While FTDI has taken
43. M 58 10 1 Class FT EEPROM sisindiran aaa aaa 58 Copyright 2013Future Technology Devices International Limited 3 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 10 1 1 5 a 58 1 2 48 e AE EDE a AEE 58 10 2 Class FT_EEPROM_232R 10 2 1 CONMSTFUCTOM a xx nme 60 10 2 2 been 60 10 2 3 5 866 ane Dee tase 63 10 2 4 Fields ciere ave seen 63 10 3 Class EEPROM 245R 64 10 521 6 T 64 10 3 2 rn e CR 64 10 3 3 Nested Class OM E A RE 67 10 3 4 inde es het 67 10 4 Class FT_EEPROM_2232D 68 10 41 COMSERUCTOM fies cad emer e
44. Mux Control public byte CBus6 Hardware Option CBus6 Mux Control public byte CBus7 Hardware Option CBus7 Mux Control public byte CBus8 Hardware Option CBus8 Mux Control public byte CBus9 Copyright 2013Future Technology Devices International Limited 82 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Hardware Option CBus9 Mux Control UART public boolean UART Hardware Option UART public boolean FIFO Hardware Option 245 FIFO FIFOTarget public boolean FIFOTarget Hardware Option 245 FIFO CPU Target public boolean FastSerial Hardware Option Fast Serial FT1248 public boolean FT1248 Hardware Option FT1248 FT1248ClockPolarity public boolean FT1248ClockPolarity FT1248 Option FT1248 clock polarity true clock idle high false clock idle low FT1248LSB public boolean FT1248LSB FT1248 Option FT1248 LSB true LSB false MSB FT1248FlowControl public boolean FT1248FlowControl FT1248 Option FT1248 Flow Control PowerSaveEnable public boolean PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power for self powered designs LoadVCP public boolean LoadVCP Driver Option Load Virtual Com Port LoadD2XX public boolean LoadD2XX Driver Option Load D2XX Copyright 2013Future Technology Devices Inter
45. R 10 2 2Fields Field Summary Fields Modifier and Type byte byte byte byte byte boolean boolean boolean boolean boolean boolean Field and Description CBusO Hardware Option CBusO Mux Control 1 Hardware Option CBusi Mux Control CBus2 Hardware Option CBus2 Mux Control CBus3 Hardware Option CBus3 Mux Control CBus4 Hardware Option CBus4 Mux Control ExternalOscillator Hardware Option External Oscillator Caution Setting this bit without an external oscillator fitted to your design will render the device unusable HighIO Drive Option High Current IO InvertCTS Hardware Option Invert CTS signal InvertDCD Hardware Option Invert DCD signal InvertDSR Hardware Option Invert DSR signal InvertDTR Hardware Option Invert DTR signal Copyright 2013Future Technology Devices International Limited 60 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT 000796 Clearance 328 InvertRI Hardware Option Invert RI signal boolean InvertRTS Hardware Option Invert RTS signal boolean InvertRXD Hardware Option Invert RXD signal boolean InvertTXD Hardware Option Invert TXD signal boolean LoadVCP Driver Option Load Virtual Com Port Field Detail public boolean HighIO Drive Option High Current IO ExternalOscillator public boolean ExternalOscillator Hardware Option External Osc
46. RTS Hardware Option Invert RTS signal InvertCTS public boolean InvertCTS Hardware Option Invert CTS signal InvertDTR public boolean InvertDTR Hardware Option Invert DTR signal public boolean InvertDSR Hardware Option Invert DSR signal Copyright 2013Future Technology Devices International Limited 65 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 _ public boolean InvertDCD Hardware Option Invert DCD signal public boolean InvertRI Hardware Option Invert RI signal public byte CBusO Hardware Option CBusO Mux Control public byte 1 Hardware Option CBusi Mux Control public byte CBus2 Hardware Option CBus2 Mux Control public byte CBus3 Hardware Option CBus3 Mux Control public byte CBus4 Hardware Option CBus4 Mux Control LoadVCP public boolean LoadVCP Driver Option Load Virtual Com Port Copyright 2013Future Technology Devices International Limited 66 Chip 10 3 3 Nested Class public static final class FT_EEPROM_245R CBUS extends java lang Object CBus Option on the FT245H Nested Class Summary Nested Classes Modifier and Type Class and Description static class FT_EEPROM_245R CBUS CBus Option on the FT245R 10 3 4 CBUS Fields Java 2 for Android API User Manual Version 1 0 Document
47. Reference No FT_000796 Clearance No FTDI 328 FT 245R CBUS Option CBUS Constant Variable int Constant Value TXDEN TXDEN 0 PWRON PWRON 1 RXLED RXLED 2 TXLED TXLED 3 TXRXLED TXRXLED 4 SLEEP SLEEP 5 48M Clock Hz CLK48MHz 6 24M Clock Hz CLK24MHz 7 12M Clock Hz CLK12MHz 8 6M Clock Hz CLK6MHz 9 IO MODE IO MODE 10 BIT BANG WR BIT BANG WR 11 BIT BANG RD BANG RD 12 Copyright 2013Future Technology Devices International Limited 67 FTDI LJ d A Chip 10 4 Class FT_EEPROM_2232D public class FT_EEPROM_2232D extends FT_EEPROM EEPROM data structure on the 2232D 10 4 1 Constructor Constructors Constructor and Description FT_EEPROM_2232D 10 4 2Fields Field Summary Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDIZ 328 Hardware Option Interface A Fast Serial Hardware Option Interface A 245 FIFO Hardware Option Interface A 245 FIFO CPU Target Drive Option Interface A High Current IO Driver Option Interface A Load Virtual Com Port Hardware Option Interface B Fast Serial Hardware Option Interface B 245 FIFO Hardware Option Interface B 245 FIFO CPU Target Drive Option Interface B High Current IO Driver Option Interface B Load Virtual Com Port Fields Modifier and Type Field and Description boolean A_FastSe
48. Rx buffer 8 2 2 setBufferNumber Definition public boolean setBufferNumber int number Summary This method sets the Buffer number for Rx in the user space application The default is a minimum of 2 and a maximum of 16 Parameters number Specifies the value to Buffer Number Returns If success return true 8 2 3 getMaxTransferSize Definition public int getMaxTransferSize Summary This method will return Max Transfer size for Rx in the user space application Returns The current size of Rx Max Transfer 8 2 4 setMaxTransferSize Definition public boolean setMaxTransferSize int size Summary This method will set the Max Transfer size to process Rx data in the user space application The default is 16384 Max is 16384 Min is 64 Parameters size Specifies the value of the Max Transfer size Returns If success return true Copyright 2013Future Technology Devices International Limited 38 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 8 2 5 getMaxBufferSize Definition public int getMaxBufferSize Summary This method will return Rx buffer size of user space application Returns The current size of Rx buffer 8 2 6 setMaxBufferSize Definition public boolean setMaxBufferSize int size Summary This method will set the Max Buffer size to process Rx data in the user space application The default
49. Serial Mode FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_FAST_SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT_BITMODE_CBUS_BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT_BITMODE_SYNC_FIFO FT_BITMODE_MCU_HOST Bit Mode bits Reset FT_BITMODE_RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE 2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE SYNC BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE MCU HOST Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT BITMODE CBUS BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT BITMODE SYNC FIFO FT MPSSE Bit Mode bits Reset RESET Asynchronous Bit Bang FT BITMODE ASYNC MPSSE FT2232 FT2232H FT4232H and FT232H devices only MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only BITMODE SYNC BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only BITMODE HOST Fast Opto Isolated Serial Mode FT2232 F
50. Summary Methods Modifier and Type Method and Description void close Closes a device opened with a previous call to D2xxManager openByIndex Context int com ftdi j2xx D2xxManager DriverParameters D2xxManager openBySerialNumber Context java lang String com ftdi j2xx D2xxManager DriverParameters D2xxManager openByDescription Context java lang String com ftdi j2xx D2xxManager DriverParameters or D2xxManager openByLocation Context int com ftdi j2xx D2xxManager DriverParameters boolean cirDtr Allows the DTR modem control line to be manually de asserted boolean cirRts Allows the RTS modem control line to be manually de asserted boolean eepromErase Erases the device EEPROM int eepromGetUserAreaSize Retrieves the amount of additional space available in the device EEPROM FT_EEPROM eepromRead Reads the entire device EEPROM and decodes its settings in to fields in a object Remarks FT_EEPROM For FT_232A FT_232B FT EEPROM 2232H For FT 2232H FT EEPROM 2232D For FT 2232 FT EEPROM 4232H For FT 4232H FT EEPROM 232R For 232R FT EEPROM 245R For FT 245R FT EEPROM 232H For 232H FT EEPROM X For FT X Series byte eepromReadUserArea int length Retrieves the contents of the device EEPROM user area Copyright 2013Future Technology Devices International Limited 40 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Doc
51. T2232H FT4232H and FT232H devices only FT BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT BITMODE CBUS BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT BITMODE SYNC FIFO FT BITMODE RESET Bit Mode bits Reset FT BITMODE RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT SYNC MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE HOST Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only Copyright 2013Future Technology Devices International Limited 12 static byte static byte static byte static byte static byte static byte FTDI Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 FT_BITMODE_CBUS_BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT_BITMODE_SYNC_FIFO FT_BITMODE_SYNC_BITBANG Bit Mode bits Reset FT_BITMODE_RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE 2232 FT2232H FT4232H and FT232H devices only FT_BITMODE
52. TDI 328 12 Appendix B List of figures Figure 1 Android Development Configuration 8 Copyright 2013Future Technology Devices International Limited 94 Java 2 for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 13 Appendix Revision History Document Title Android D2xx API User Manual Document Reference No FT_000796 Clearance No FTDI 328 Drivers Page http www ftdichip com Drivers D2XX htm Document Feedback Send Feedback Revision Changes Date 1 0 Initial Release for beta test 2011 01 04 Copyright 2013Future Technology Devices International Limited 95 FTDI Chip 14 Contact Information Head Office Glasgow UK Future Technology Devices International Limited Unit 1 2 Seaward Place Centurion Business Park Glasgow G411HH United Kingdom Tel 44 0 141 429 2777 Fax 44 0 141 429 2758 E mail Sales E mail Support E mail General Enquiries Web Site URL Web Shop URL salesi ftdichip com support1 ftdichip com admini ftdichip com http www ftdichip com http www ftdichip com Branch Office Taipei Taiwan 2F No 516 Sec 1 NeiHu Road Taipei 114 Taiwan R O C Tel 886 0 2 87913570 Fax 886 0 2 8791 3576 E mail Sales E mail Support tw salesi1 ftdichip com tw support1 ftdichip com E mail General Enquiries Web Site UR
53. U RU 85 10 8 Class FT EEPROM X 86 8 MCap 86 10 8 2 Fields 86 10 8 3 Nested Class Driver Strength eee 91 10 8 4 Driver Length Fields sis erret i a dr rds 91 10 0 5 Nested Class CBUS iiio uer ann ce ene adres NE 91 Copyright 2013Future Technology Devices International Limited 4 v 7 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 92 11 Appendix A 93 12 Appendix B List of figures 94 13 Appendix C Revision 95 14 Contact 96 Copyright 2013Future Technology Devices International Limited 5 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 1 Preface The D2xx interface is a proprietary interface specifically for FTDI devices This document provides an explanation of the functions available to application developers via the D2xx library The software code examples used i
54. UART break on condition FTDI_BREAK_OFF 0x0000 UART break off condition FTDI_BREAK_ON 0x4000 Copyright 2013Future Technology Devices International Limited 32 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 6 D2xxManager FtDeviceListNode Information about a connected FTDI device The D2xxManager getDeviceInfoListDetail int returns one of these structures the D2xxManager getDevicelnfoList int com ftdi j2xx D2xxManager FtDeviceInfoListNode method returns an array of these structures 6 1 Fields Modifier and Type Field and Description short bcdDevice Indicate USB specification release number BCD int breakOnParam Indicate breakOnParam variable to representation UART break status Default value is 0x0008 Device set break on via Device setBreakOn method String description Description string for FT device if available int flags Indicates if device is already open D2xxManager FT FLAGS OPENED or supports hi speed D2xxManager FT FLAGS HI SPEED int handle Reserve int id Reserve byte iSerialNumber The iSerialNumber field on the USB Device Descriptor short lineStatus Indicate lineStatus variable to representation UART line status Device can get line status via FT_Device getLineStatus method int location The location number for FT device if available short modemStatus Indicat
55. _MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_SYNC_BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MCU_HOST Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT BITMODE CBUS BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT BITMODE SYNC FIFO BITMODE SYNC FIFO Bit Mode bits Reset BITMODE RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE FT2232 FT2232H FT4232H and FT232H devices only FT MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only SYNC BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE HOST Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only FT BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT SYNC FIFO FECTS Modem status bits CTS FT_CTS DSR FT_DSR RI RI DCD DCD FT DATA BITS 7 Data bits 7 FT DATA BITS 7 8 DATA BITS 8 FT DATA BITS 8 Data bits 7
56. ager DriverParameters params This designates the device with the specified serial number for use and allows for configuration of driver parameters openByUsbDevice Context parentContext UsbDevice dev This designates the device from the specified USB Device object openByUsbDevice Context parentContext UsbDevice dev D2xxManager DriverParameters params This designates the device from the specified USB Device object and allows for configuration of driver parameters setVIDPID int vendorld int productId This allows a custom VID and PID combination within the internal device list table Copyright 2013Future Technology Devices International Limited 20 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 1 createDeviceInfoList Definition public int createDeviceInfoList Context parentContext Summary This method builds an internal device information list and returns the number of D2XX devices connected to the system The list contains information about both unopened and opened devices Device information may be retrieved via the getDeviceInfoList int com ftdi j2xx D2xxManager FtDeviceInfoListNode or getDeviceInfoListDetail int methods Remarks An application can use this function to ascertain the number of devices attached to the system The application allocates space for the device information list and retrieves the list using getDevicelnfoLi
57. also removes data from the device int read byte data Reads data from the device into the Java application buffer int read byte data int length Reads data from the device into the Java application buffer boolean readBufferFull Returns if the Rx buffer was full with data if true Rx would be pending until the data is read by user boolean resetDevice Sends a vendor command to the device to cause a reset and removes any data from the device buffers void restartInTask Restarts the driver s IN thread following a successful call to stopInTask Remarks This function restarts the driver s IN task read after it has been stopped by a call to stopInTask Copyright 2013Future Technology Devices International Limited 41 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 boolean setBaudRate int baudRate Sends a vendor command to the device to change the baud rate generator value boolean setBitMode byte mask byte bitMode Uses an alternative interface mode such as bit bang MPSSE and CPU target mode boolean setBreakOff Resets the BREAK condition on the device UART boolean setBreakOn Generates a BREAK condition on the device UART boolean setChars byte eventChar byte eventCharEnable byte errorChar byte errorCharEnable Specifies the event character and error replacement characters for the device boolean setDataCharact
58. boolean B_FIFO Hardware Option Interface B 245 FIFO A_FIFOTarget public boolean A_FIFOTarget Hardware Option Interface A 245 FIFO CPU Target B_FIFOTarget public boolean B_FIFOTarget Hardware Option Interface B 245 FIFO CPU Target A_FastSerial public boolean A_FastSerial Hardware Option Interface A Fast Serial B_FastSerial public boolean B_FastSerial Hardware Option Interface B Fast Serial PowerSaveEnable public boolean PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power for self powered designs A_LoadVCP public boolean A_LoadVCP Driver Option Interface A Load virtual Com Port B_LoadVCP public boolean B_LoadVCP Driver Option Interface B Load virtual Com Port A_LoadD2XX public boolean A LoadD2XX Driver Option Interface Load D2XX Port B_LoadD2XX public boolean B LoadD2XX Driver Option Interface B Load D2XX Port Copyright 2013Future Technology Devices International Limited 73 TPRDRV public int TPRDRV Driver Option Rise and fall times of the USB signal lines 10 5 3Nested Class public static final class FT EEPROM 2232H DRIVE STRENGTH extendsjava lang Object The driver strength on the 2232H Constructor Summary Constructors Constructor and Description FT_EEPROM_2232H DRIVE_STRENGTH 10 5 4 Driver Length Fields FTDI Java D2xx for Android API User Manual Version 1 0 Ch j
59. bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232H bvdDevice 0x1000 FT DEVICE X SERIES FT DEVICE 245R Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT DEVICE 232B bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 2328 bvdDevice 0x0600 DEVICE 245R bvdDevice 0x0700 DEVICE 2232 bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232 bvdDevice 0x1000 DEVICE X SERIES FT DEVICE 4232H Device Type bvdDevice 0x0200 or 0x0400 and iSerialNumber 0 FT DEVICE 2328 bvdDevice 0x0200 and iSerialNumber 0 DEVICE 8U232AM Unknown DEVICE UNKNOWN bvdDevice 0x0500 DEVICE 2232 bvdDevice 0x0600 DEVICE 232 bvdDevice 0 0600 DEVICE 245 bvdDevice 0x0700 FT DEVICE 2232H bvdDevice 0x0800 DEVICE 4232 bvdDevice 0x0900 DEVICE 232 bvdDevice 0x1000 DEVICE X SERIES DEVICE 80232 Device bvdDevice 0x0200 0x0400 iSerialNumber 0 FT_DEVICE_232B bvdDevice 0x0200 and iSerialNumber 0 FT_DEVICE_8U232AM Unknown FT_DEVICE_UNKNOWN bvdDevice 0x0500 FT_DEVICE_2232 bvdDevice 0x0600 FT_DEVICE_232R bvdDevice 0x0600
60. c FT Device openByDescription Context parentContext java lang String description Summary This designates the device with the specified description Parameters parentContext The calling activity must pass the application Context into this function description Description of the device Returns A FT Device object containing the device object NULL for error Copyright 2013Future Technology Devices International Limited 24 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 11 openByIndex with DriverParameters Definition public FT Device openByIndex Context parentContext int index D2xxManager DriverParameters params Summary This designates the device at the specified index and allows for configuration of driver parameters Parameters parentContext The calling activity must pass the application Context into this function index The index of the device which is O based DriverParameters Parameters to configure max transfer size buffer size Rx timeout and number of buffers Buffer size the default is 16k Max is 16k Min is 64 Packet size the default is 16384 Max is 16384 Min is 64 Buffer Number the default is 16 Max is 16 Min is 2 Returns A FT Device object containing the device object NULL for error 4 12 openByIndex without DriverParameters Definition public FT Device openByIndex Context pa
61. clipse IDE with ADT Plugin ADB USB Host Capability Connection Android SDK over USB USB Debugging Enabled Android ADB Utility Wi Fi LAN Enabled Figure 1 Android Development Configuration Copyright 2013Future Technology Devices International Limited 8 FTDI Chip 3 D2xx Library Packages 3 1 Package com ftdi j2xx Class Summary Class D2xxManager D2xxManager DriverParameters D2xxManager FtDeviceInfoListNode FT_Device FT_EEPROM FT_EEPROM_2232D FT_EEPROM_2232H FT_EEPROM_2232H DRIVE_STRENGTH FT_EEPROM_232H FT_EEPROM_232H CBUS FT_EEPROM_232H DRIVE_STRENGTH FT_EEPROM_232R FT_EEPROM_232R CBUS FT_EEPROM_245R FT_EEPROM_245R CBUS FT_EEPROM_4232H FT_EEPROM_4232H DRIVE_STRENGTH FT EEPROM X Series FT EEPROM X Series CBUS FT EEPROM X Series DRIVE STRENGTH Exception Summary Exception Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance No FTDIZ 328 Description Description A management class for connected FTDI devices A class for read parameters Information about a connected FTDI device A device class providing different APIs for a host to communicate and operate different FT devices EEPROM data structure of the 232A 232B EEPROM data structure on the 2232D EEPROM data structure on the 2232H The driver strength of the 2232H EEPROM data structure on the 232H CBus Option of the FT232H The driver strength on the 232H EEPROM data structure
62. cription byte AL_DriveCurrent Drive Option AL pins drive current boolean AL_SchmittInput Drive Option AL pins have Schmitt input boolean AL_SlowSlew Drive Option AL pins have slow slew byte BL_DriveCurrent Drive Option BL pins drive current boolean BL_SchmittInput Drive Option BL pins have Schmitt input boolean BL_SlowSlew Drive Option BL pins have slow slew byte CBusO Hardware Option CBusO Mux Control byte 1 1 byte CBus2 Hardware Option CBus2 Mux Control byte CBus3 Hardware Option CBus3 Mux Control byte CBus4 Hardware Option CBus4 Mux Control byte CBus5 Hardware Option CBus5 Mux Control byte CBus6 Hardware Option CBus6 Mux Control byte CBus7 Hardware Option CBus7 Mux Control byte CBus8 Copyright 2013Future Technology Devices International Limited 80 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Hardware Option CBus8 Mux Control byte CBus9 Hardware Option CBus9 Mux Control boolean FastSerial Hardware Option Fast Serial boolean FIFO Hardware Option 245 FIFO boolean FIFOTarget Hardware Option 245 FIFO CPU Target boolean FT1248 Hardware Option FT1248 boolean FT1248ClockPolarity FT1248 Option FT1248 clock polarity true clock idle high false clock idle low boolean FT1248FlowControl FT1248 Option FT1248 Flow Co
63. e CBus2 Hardware Option CBus2 Mux Control byte CBus3 Copyright 2013Future Technology Devices International Limited 86 byte byte byte boolean boolean boolean int boolean int boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean FTDI Chip Java D2xx for Android API User Manual Hardware Option CBus3 Mux Control CBus4 Hardware Option CBus4 Mux Control CBus5 Hardware Option CBus5 Mux Control CBus6 Hardware Option CBus6 Mux Control FT1248ClockPolarity Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 FT1248 Option FT1248 clock polarity true clock idle high false clock idle low FT1248FlowControl FT1248 Option FT1248 Flow Control FT1248LSB FT1248 Option FT1248 LSB true LSB false MSB 2 2 Option 2 Device ID I2CDisableSchmitt 2 Option Disable Schmitt trigger I2CSlaveAddress I2C Option Slave Address InvertCTS Hardware Option Invert CTS signal InvertDCD Hardware Option Invert DCD signal InvertDSR Hardware Option Invert DSR signal InvertDTR Hardware Option Invert DTR signal InvertRI Hardware Option Invert RI signal InvertRTS Hardware Option Invert RTS signal InvertRXD Hardware Option Invert RXD signal InvertTXD Hardware Option Invert TXD signal PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power
64. e modemStatus variable to representation UART modem status Device can get modem status via FT_Device getModemStatus method String serialNumber Serial number string for FT device if available Copyright 2013Future Technology Devices International Limited 33 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 int type Identifies this device in the FTDI family such as D2xxManager FT_DEVICE_232R or D2xxManager FT_DEVICE_X_SERIES Field Detail public int flags Indicates if device is already open D2xxManager FT FLAGS OPENED or supports hi speed D2xxManager FT FLAGS HI SPEED bcdDevice public short bcdDevice Indicate USB specification release number BCD public int type Identifies this device in the FTDI family such as D2xxManager FT DEVICE 232R or D2xxManager FT DEVICE X SERIES iSerialNumber public byte iSerialNumber iSerialNumber field on the USB Device Descriptor Index of string descriptor for the serial number public int id Reserve public int location location number for FT device if available Uniquely identifies the device and interface This may change if another USB device is added to or removed from the computer Device can be open via D2xxManager openByLocation Context int com ftdi j2xx D2xxManager DriverParameters method public java lang String serialNumber Serial n
65. e second element Copyright 2013Future Technology Devices International Limited 23 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 8 isFtDevice Definition public boolean isFtDevice UsbDevice dev Summary This queries if a plugged in USB device is a valid FT_Device Parameters dev The UsbDevice get from ACTION_USB_DEVICE_ATTACHED broadcast Returns If the plugged in USB device is ascertained to be a valid FT device the query returns a true value 4 9 openByDescription with DriverParameters Definition public Device openByDescription Context parentContext java lang String description D2xxManager DriverParameters params Summary This designates the device with the specified description and allows for configuration of driver parameters Parameters parentContext The calling activity must pass the application Context into this function description Description of the device DriverParameters Parameters to configure max transfer size buffer size Rx timeout and number of buffers Buffer size the default is 16k Max is 16k Min is 64 Packet size the default is 16384 Max is 16384 Min is 64 Buffer Number the default is 16 Max is 16 Min is 2 Returns FT Device object containing the device object NULL if there is an error 4 10 openByDescription without DriverParameters Definition publi
66. ean AH RI TXDEN Hardware Option Interface AH uses RI as RS485 TXDEN BL RI TXDEN public boolean BL RI TXDEN Hardware Option Interface BL uses RI as RS485 TXDEN Copyright 2013Future Technology Devices International Limited 77 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 BH_RI_TXDEN publicboolean BH_RI_TXDEN Hardware Option Interface BH uses RI as RS485 TXDEN AL_LoadVCP public boolean AL_LoadVCP Driver Option Interface AL Load VirtualCom Port AL_LoadD2XX public boolean AL LoadD2XX Driver Option Interface AL Load D2XX AL LoadRI RS485 public boolean AL LoadRI RS485 Driver Option Interface AL Load RI RS485 AH LoadVCP public boolean AH LoadVCP Driver Option Interface AH Load VirtualCom Port LoadD2XX public boolean LoadD2XX Driver Option Interface AH Load D2XX LoadRI RS485 public boolean LoadRI RS485 Driver Option Interface AH Load RI RS485 BL LoadVCP public boolean BL LoadVCP Driver Option Interface BL Load VirtualCom Port BL LoadD2XX public boolean BL LoadD2XX Driver Option Interface BL Load D2XX BL LoadRI RS485 public boolean BL LoadRI RS485 Driver Option Interface BL Load RI RS485 BH LoadVCP public boolean BH LoadVCP Driver Option Interface BH Load VirtualCom Port Copyright 2013Future Technolog
67. ee vee aa wa 68 10 4 2 Fields Hi wel eos ee eae E eed ae ee ea Ra 68 10 5 Class FT 2232H 70 10 51 adeptum 70 RENI 70 10 5 3 Nested Class t ner order OEN ESERE RUE RO 74 10 5 4 Driver Length Fields er me at e ee eco rre sac V Cr vc aa ee 74 10 6 Class FT EEPROM 4232H 75 106 1 E Conde TIU TIU TII 75 10 6 2 Fields xxx RR 75 10 6 9 Nested Class o eL beni tui vereda vta e e PH UR o RN REN E RUPEM din 79 10 6 4 Driver Length Fields eere eren en eia cer e e mn Rer obe 79 10 7 Class EEPROM 232H 10 7 1 COnSLrUCEOE ern ek EDU ORI pee D a dU don OPE 80 10 7 2 iicet at px ands EUR EFE 80 10 7 3 Nested Class Driver Strength eee eee eee 84 10 7 4 Driver Length Fields iiic repete et eret de elds 84 10 7 5 Nested Class CBBUS o De d da 84 10 7 6 Fields coiere peri eet rcu tex KR d Y ER E
68. eristics byte dataBits byte stopBits byte parity Dictates the data format that the device uses boolean setDtr Allows the DTR modem control line to be manually asserted boolean setEventNotification long Mask Specifies events for the java driver to signal that they have occurred boolean setFlowControl short flowControl byte xon byte xoff Specifies the flow control method that the device should use to prevent data loss boolean setLatencyTimer byte latency Allows the latency timer value for the device to be specified boolean setRts Allows the RTS modem control line to be manually asserted void stopInTask Stops the driver s IN thread and prevents USB IN requests being issued to the device boolean stoppedInTask Return the running status of starts the driver s IN thread int write byte data Writes data to the device from the Java application buffer int write byte data int length Writes data to the device from the Java application buffer Copyright 2013Future Technology Devices International Limited 42 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 1 close Definition public void close Summary Closes a device opened with a previous call to D2xxManager openByIndex Context int com ftdi j2xx D2xxManager DriverParameters D2xxManager openBySerialNumber Context java lang String com ftdi j2xx D2xxManager DriverParame
69. for self powered designs RS485EchoSuppress Hardware Option RS485 Echo Suppression Copyright 2013Future Technology Devices International Limited 87 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Field Detail A_DeviceTypeValue public short A_DeviceTypeValue A_LoadVCP public boolean A_LoadVCP Driver Option Load Virtual Com Port A LoadD2XX public boolean A LoadD2XX Driver Option Load D2XX BCDEnable public boolean BCDEnable Battery Charge Detect option Enable BCDForceCBusPWREN public boolean BCDForceCBusPWREN Battery Charge Detect option Force CBus Power Enable BCDDisableSleep public boolean BCDDisableSleep Battery Charge Detect option Disable Sleep public byte CBusO Hardware Option CBusO Mux Control public byte 1 Hardware Option 51 Mux Control public byte CBus2 Hardware Option CBus2 Mux Control public byte CBus3 Hardware Option CBus3 Mux Control public byte CBus4 Hardware Option CBus4 Mux Control Copyright 2013Future Technology Devices International Limited 88 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public byte CBus5 Hardware Option CBus5 Mux Control public byte CBus6 Hardware Option CBus6 Mux Control FT1
70. illator Caution Setting this bit without an external oscillator fitted to your design renders the device unusable InvertTXD public boolean InvertTXD Hardware Option Invert TXD signal public boolean InvertRXD Hardware Option Inverted RXD signal InvertRTS public boolean InvertRTS Hardware Option Invert RTS signal InvertCTS public boolean InvertCTS Hardware Option Invert CTS signal InvertDTR public boolean InvertDTR Hardware Option Invert DTR signal Copyright 2013Future Technology Devices International Limited 61 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public boolean InvertDSR Hardware Option Invert DSR signal public boolean InvertDCD Hardware Option Invert DCD signal public boolean InvertRI Hardware Option Invert RI signal public byte CBusO Hardware Option CBusO Mux Control public byte 1 Hardware Option CBusi Mux Control public byte CBus2 Hardware Option CBus2 Mux Control public byte CBus3 Hardware Option CBus3 Mux Control public byte CBus4 Hardware Option CBus4 Mux Control LoadVCP public boolean LoadVCP Driver Option Load Virtual Com Port Copyright 2013Future Technology Devices International Limited 62 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_0
71. ining the parsed EEPROM settings for the device NULL for error EEPROM can be cast to the actual device type Copyright 2013Future Technology Devices International Limited 55 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 37 eepromWrite Definition public short eepromWrite FT_EEPROM eeData Summary This method encodes the settings from a FT_EEPROM object and writes them to the device EEPROM Remarks FT_EEPROM For FT_232A FT_232B FT_EEPROM_2232H For FT_2232H FT_EEPROM_2232D For FT_2232 FT_EEPROM_4232H For FT_4232H FT_EEPROM_232R For FT 232R EEPROM 245R For 245R 232H For FT 232H EEPROM X For X Series Parameters eeData A FT EEPROM object containing the EEPROM settings to be written to the device FT can be cast to the actual device type Returns Return 0 mean SUCCESS 9 38 eepromReadWord Definition public int eepromReadWord short offset Summary Reads a WORD from the device EEPROM at the specified address Parameters address The EEPROM address to read from Returns The EEPROM data WORD read from the specified address Negative value for error 9 39 eepromWriteWord Definition public boolean eepromWriteWord short address short data Summary Writes a WORD to the device EEPROM at the specified address Parameters address The
72. ion O 0 0 O O O O O Oo Copyright 2013Future Technology Devices International Limited 10 Java 2 for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDIZ 328 4 Methods on D2xxManager A management class for connected FTDI devices Use getInstance to get a copy of D2xxManager use createDeviceInfoList method to scan current connected FTDI devices then open target device via a suitable open API The functions listed in this section are used to manage FT devices Field Summary Fields Modifier and Type Field and Description static byte FT BI Line status bits FT BESRTSEE BI FT BI static byte FT BITMODE BITBANG Bit Mode bits Reset BITMODE RESET Asynchronous Bit Bang FT_BITMODE_ASYNC_BITBANG MPSSE 2232 FT2232H FT4232H and FT232H devices only FT_BITMODE_MPSSE Synchronous Bit Bang FT232R FT245R FT2232 FT2232H FT4232H and FT232H devices only BITMODE SYNC BITBANG MCU Host Bus Emulation Mode FT2232 FT2232H FT4232H and FT232H devices only FT BITMODE Fast Opto Isolated Serial Mode FT2232 FT2232H FT4232H and FT232H devices only BITMODE FAST SERIAL CBUS Bit Bang Mode FT232R and FT232H devices only BITMODE BITBANG Single Channel Synchronous 245 FIFO Mode FT2232H and FT232H devices only FT
73. ion Interface A Load virtual Com Port B_LoadVCP public boolean B_LoadVCP Copyright 2013Future Technology Devices International Limited 69 Chip Driver Option Interface B Load virtual Com Port A_LoadD2XX public boolean A LoadD2XX Driver Option Interface A Load D2XX B_LoadD2XX public boolean B LoadD2XX Driver Option Interface B Load D2XX 10 5 Class FT EEPROM 2232H public class EEPROM 2232H extends FT EEPROM EEPROM data structure on the 2232H 10 5 1 Constructor Constructors Constructor and Description FT EEPROM 2232H 10 5 2Fields Field Summary Fields Modifier and Type boolean A_FastSerial Field and Description Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Hardware Option Interface A Fast Serial boolean A_FIFO Hardware Option Interface A 245 FIFO boolean A_FIFOTarget Hardware Option Interface A 245 FIFO CPU Target boolean A_LoadD2XX Driver Option Interface A Load D2XX Port boolean A_LoadVCP Driver Option Interface A Load Vitrual Com Port boolean A_UART Hardware Option Interface A 245 UART byte AH_DriveCurrent Drive Option AH pins have drive current boolean AH_SchmittInput Drive Option AH pins have schmitt input boolean AH_SlowSlew Drive Option AH pins have slow slew byte AL_DriveCurrent Copyright 2013Future Technology Devices International Limited
74. is 16k Max is 16K Min is 64 Parameters size Specifies the value to Max BufferSize Returns If success return true 8 2 7 getReadTimeout Definition public int getReadTimeout Summary This method will return timeout values to be used for read operations Returns The current value ms of read timeout 8 2 8 setReadTimeout Definition public boolean setReadTimeout int timeout Summary This method specifies the timeout values to be used for read operations Default timeout values are 5000 mS which is interpreted as infinite in this case read calls will block until all of the requested data has been received Parameters readTimeout The value in mS to apply to read operations Default is 5000 mS Returns If success return true Copyright 2013Future Technology Devices International Limited 39 Java 2 for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 9 FT_Device The FT_Device class provides APIs for the host to communicate and operate FTDI devices A typical use case would follow the below sequence 1 Use getInstance to get a copy of D2xxManager 2 Use createDevicelnfoList method to scan current connected FTDI devices 3 Open target device to get FT_Device instance via a suitable open API Constructors Constructor and Description FT_Device Context parentContext UsbManager usbManager UsbDevice UsbInterface i Method
75. mber Parameters parentContext The calling activity must pass the application Context into this function serialNumber The serial number of the device Returns A FT_Device object containing the device object NULL for error 4 17 openByUSBDevice with DriverParameters Definition public FT Device openByUsbDevice Context parentContext UsbDevice dev D2xxManager DriverParameters params Summary This designates the device from the specified USB Device object and allows for configuration of driver parameters Parameters parentContext The calling activity must pass the application Context into this function dev The USB Device object as an FT Device DriverParameters Parameters to configure max transfer size buffer size Rx timeout and number of buffers Buffer size the default is 16k Max is 16k Min is 64 Packet size the default is 16384 Max is 16384 Min is 64 Buffer Number the default is 16 Max is 16 Min is 2 Returns A FT Device object containing the device object NULL for error Copyright 2013Future Technology Devices International Limited 27 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 18 openByUSBDevice without DriverParameters Definition public FT Device openByUsbDevice Context parentContext UsbDevicedev Summary This designates the device from the specified USB Device object Parameter
76. n public boolean setRts Summary Allows the RTS modem control line to be manually asserted Note that this method is only meaningful when the device is in UART mode Returns Return true mean success 9 34 clrRts Definition public boolean clrRts Summary Allows the RTS modem control line to be manually de asserted Note that this method is only meaningful when the device is in UART mode Returns Return true mean success Copyright 2013Future Technology Devices International Limited 54 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 35 eepromErase Definition public boolean eepromErase Summary Erases the device EEPROM After erasing all values read will be OxFFFF NOTE The FT232R FT245R and X Series devices cannot have their EEPROMs erased as the EEPROM is internal to the device Returns Returns true on success false otherwise 9 36 eepromRead Definition public EEPROM eepromRead Summary This method reads the entire device EEPROM and decodes its settings in to fields in a FT_EEPROM object Remarks FT_EEPROM For FT_232A FT_232B FT_EEPROM_2232H For FT_2232H FT_EEPROM_2232D For FT_2232 FI EEPROM 4232H For FT_4232H EEPROM 232R For FT 2328 EEPROM 245R For 245R FT_EEPROM_232H For FT 232H EEPROM X For FT X Series Returns A FT EEPROM object conta
77. n the examples in this manual are not guaranteed nor are they supported by FTDI 1 1 Acronyms and Abbreviations Terms Description 2 FTDI s proprietary direct user space driver interface running on top of Android USB Host API OS Operating System USB Universal Serial Bus BSP Board Supporting Package WORD 16 bits data Break A signal in the UART protocol API Application Programming Interface OTG On The Go SDK Software Development Kit ADT Android Development Tools IDE Integrated Development Environment ADB Android Debug Bridge EEPROM Electrically Erasable Programmable Read Only Memory CBUS CBUS GPIO Pin WiFi Wireless Fidelity LAN Local Area Network MCU Microcontroller Unit SYNC Synchronous ASYNC Asynchronous MPSSE Multi Protocol Synchronous Serial Engine FIFO First In First Out CTS Clear To Send RTS Request To Send Copyright 2013Future Technology Devices International Limited 6 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 2 Introduction FTDI provides a proprietary Android D2xx library for easy communication with its FTxxxx devices The D2xx API is an Android operating system library supported by FTDI 2 1 Android Support The API listed in this document is a D2xx solution to application scenarios supporting the Google Android 05
78. national Limited 35 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 7 D2xxManager D2xxException A class for handling D2xx exceptions and the printing of error messages 7 1 Constructor Constructor and Description D2xxManager D2xxException A constructor handling exception without any parameters D2xxManager D2xxException java lang String ftStatusMsg A constructor handling exception with string parameters Constructor Detail D2xxManager D2xxException public D2xxManager D2xxException A constructor handling exception without any parameters D2xxManager D2xxException public D2xxManager D2xxException java lang String ftStatusMsg A constructor handling exception with string parameters Copyright 2013Future Technology Devices International Limited 36 FTDI Chip Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDIZ 328 8 D2xxManager DriverParameters A management class for connected FTDI devices Use getInstance Context to get a copy of D2xxManager use createDevicelnfoList Context method to scan current connected FTDI devices then open target device via a suitable open API openByDescription openByIndex openByLocat ion openBySerialNumber openByUsbDevice 8 1 Constructor Constructor and Description D2xxManager DriverParameters DriverParameters constructor
79. national Limited 83 Java 2 for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 10 7 3Nested Class Driver Strength public static final class FT_EEPROM_232H DRIVE_STRENGTH extends java lang Object The driver strength on the 232H Constructor Summary Constructors Constructor and Description FT_EEPROM_232H DRIVE_STRENGTH 10 7 4 Driver Length Fields FT232H Driver Strength Constant variable byte Constant Value FT232H Driver Strength 4mA DRIVER_4mA 0 FT232H Driver Strength 8mA DRIVER 8mA 1 FT232H Driver Strength 12mA DRIVER 12 2 FT232H Driver Strength 16mA DRIVER 16mA 3 10 7 5 Nested Class CBBUS public static final class 232H CBUS extends java lang Object CBus Option on the FT232H Constructor Summary Constructors Constructor and Description FT 232H CBUS Copyright 2013Future Technology Devices International Limited 84 FTDI Chip 10 7 6 CBUS Fields Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 FT 232H CBUS Option CBUS Constant Variable int Constant Value Tri State TRISTATE 0 PWRON PWRON 1 RXLED RXLED 2 TXLED TXLED 3 Power Enable PWREN 4 SLEEP SLEEP 5 Driver 0 DRIVER 0 6 Driver 1 DRIVER 1 7 GPIO Mode GPIO MODE 8 TXDEN
80. ning to the devices in the list Returns A FtDeviceInfoListNode object containing the information available for the device at the specified index in the list NULL for error 4 4 getInstance Definition public static D2xxManager getInstance Context parentContext Summary This method initialises an application obtaining a value of D2xx device manager Parameters parentContext The calling activity must pass the application Context into this function Returns An instance of theD2xx device manager 4 5 getLibraryVersion Definition public static int getLibraryVersion Summary This method returns the D2XX library version number Returns A 32 bit number representing the library version in binary coded decimal format Copyright 2013Future Technology Devices International Limited 22 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 6 setVIDPID Definition public boolean setVIDPID int vendorId int productId Summary This allows a custom VID and PID combination to be added within the internal device list table This loads the drivers for the specified VID and PID combination NOTE The default driver supports a limited set of VID and PID matched devices NOTE The driver supports a limited set of VID and PID matched devices VID 0x0403 PID 0x6015 X Series Device PID 0x6014 FT232H Device 0x6011
81. ntrol boolean FT1248LSB FT1248 Option FT1248 LSB true LSB false MSB boolean LoadD2XX Driver Option Load D2XX boolean LoadVCP Driver Option Load Virtual Com Port boolean PowerSaveEnable Hardware Option Power Save Enable if using BCBus7 to save power for self powered designs boolean UART Hardware Option UART Field Detail AL_SlowSlew public boolean AL_SlowSlew Drive Option AL pins have slow slew AL_SchmittInput public boolean AL_SchmittInput Drive Option AL pins have Schmitt input AL_DriveCurrent public byte AL_DriveCurrent Drive Option AL pins drive current BL_SlowSlew public boolean BL_SlowSlew Drive Option BL pins have slow slew Copyright 2013Future Technology Devices International Limited 81 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 BL_SchmittInput public boolean BL_SchmittInput Drive Option BL pins have Schmitt input BL_DriveCurrent public byte BL_DriveCurrent Drive Option BL pins drive current public byte 50 Hardware Option CBusO Mux Control public byte 1 Hardware Option CBusi Mux Control public byte CBus2 Hardware Option CBus2 Mux Control public byte CBus3 Hardware Option CBus3 Mux Control public byte CBus4 Hardware Option CBus4 Mux Control public byte CBus5 Hardware Option CBus5
82. on note Bit Mode Functions for the FT2232 For a description of Bit Bang Mode for the FT232B and FT245B see the application note FT232B FT245B Bit Bang Mode Application notes are available for download from the FTDI website Note that to use CBUS Bit Bang for the FT232R the CBUS must be configured for CBUS Bit Bang in the EEPROM Note that to use Single Channel Synchronous 245 FIFO mode for the FT2232H channel A must be configured for FT245 FIFO mode in the EEPROM Copyright 2013Future Technology Devices International Limited 49 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Parameters mask Bit mask that specifies which pins are input 0 and which are output 1 Required for bit bang modes In the case of CBUS bit bang the upper nibble of this value controls which pins are inputs and outputs while the lower nibble controls which of the outputs are high and low bitMode The desired device mode This can be one of the following FT_BITMODE_RESET FT_BITMODE_ASYNC_BITBANG FT_BITMODE_MPSSE FT_BITMODE_SYNC_BITBANG FT_BITMODE_MCU_HOST FT_BITMODE_FAST_SERIAL FT_BITMODE_CBUS_BITBANG or FT_BITMODE_SYNC_FIFO Returns Return true mean SUCCESS 9 21 getBitMode Definition public byte getBitMode Summary Gets the instantaneous value of the data bus Remark For a description of available bit modes for the FT232R see the applica
83. on the 232R CBus Option on the FT232R EEPROM data structure on the 245R CBus Option on the FT245H EEPROM data structure on the 4232H The driver strength on the 4232 EEPROM data structure on the X Series CBus Option on the X Series The driver strength on the X Series D2xxManager D2xxException class for exception debug Handle exception and print error message Copyright 2013Future Technology Devices International Limited FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 3 2 Class Hierarchy o java lang Object o com ftdi j2xx D2xxManager com ftdi j2xx D2xxManager DriverParameters com ftdi j2xx D2xxManager FtDeviceInfoListNode com ftdi j2xx FT_Device com ftdi j2xx FT_EEPROM o com ftdi j2xx FT_EEPROM_2232D com ftdi j2xx FT_EEPROM_2232H com ftdi j2xx FT_EEPROM_232H com ftdi j2xx FT_EEPROM_232R com ftdi j2xx FT_EEPROM_245R com ftdi j2xx FT_EEPROM_4232H com ftdi j2xx FT_EEPROM_X_Series com n ftdi j2xx FT 2232H DRIVE STRENGTH com ftdi j2xx FT EEPROM 232H CBUS com ftdi j2xx FT EEPROM 232H DRIVE STRENGTH com ftdi j2xx FT_EEPROM_232R CBUS com ftdi j2xx FT_EEPROM_245R CBUS com ftdi j2xx FT_EEPROM_4232H DRIVE_STRENGTH com ftdi j2xx FT_EEPROM_X_Series CBUS com ftdi j2xx FT_EEPROM_X_Series DRIVE_STRENGTH java lang Throwable implements java io Serializable o java lang Exception java io IOException com ftdi j2xx D2xxManager D2xxExcept
84. pace FT PARITY SPACE FT PARITY ODD Parity bits used by App None FT PARITY NONE Odd PARITY ODD Even FT PARITY EVEN Mark FT PARITY MARK Space FT PARITY SPACE FT PARITY SPACE Parity bits used by App None FT PARITY NONE Odd PARITY ODD Even FT PARITY EVEN Mark FT PARITY MARK Space FT PARITY SPACE FT PE Line status bits OE OE FE Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Copyright 2013Future Technology Devices International Limited 18 Chip static byte Purge flags static byte Purge flags static byte FT RI RI FT RI static byte Stop bits static byte Stop bits FT PURGE RX DCD FT DCD FT STOP BITS 1 Java D2xx for Android API User Manual Version 1 0 Document Reference No FT 000796 Clearance 328 RX purge flag FT PURGE TX purge flag FT PURGE TX FT PURGE TX RX purge flag PURGE TX purge flag FT PURGE TX Modem status bits CIS EEES DSR FT_DSR 1 FT_STOP_BITS_1 2 FT_STOP_BITS_2 FT_STOP_BITS_2 5002 BITS 2 510 2 BREAK on is bit 14 wValue parameter FTDI SET DATA request UART break on condition FIDI BREAK OFF UART break off condition FTDI BREAK ON BREAK on is bit 14 in wValue parameter of FTDI
85. rentContext int index Summary This designates the device at the specified index Parameters parentContext The calling activity must pass the application Context into this function index The index of the device which is O based Returns A FT Device object containing the device object NULL for error 4 13 openByLocation with DriverParameters Definition public FT Device openByLocation Context parentContext int location D2xxManager DriverParameters params Summary This designates the device at the specified location and allows for configuration of driver parameters Parameters parentContext The calling activity must pass the application Context into this function location The location of the device DriverParameters Parameters to configure max transfer size buffer size Rx timeout and number of buffers Buffer size the default is 16k Max is 16k Min is 64 Packet size the default is 16384 Max is 16384 Min is 64 Copyright 2013Future Technology Devices International Limited 25 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Buffer Number the default is 16 Max is 16 Min is 2 Returns A FT_Device object containing the device object NULL for error 4 14 openByLocation without DriverParameters Definition public Device openByLocation Context parentContext int location Summary This designate
86. rial boolean A_FIFO boolean A_FIFOTarget boolean A HighIO boolean LoadD2XX Driver Option Interface A Load D2XX boolean A LoadVCP boolean UART Drive Option Interface A UART boolean B FastSerial boolean B FIFO boolean B FIFOTarget boolean B HighIO boolean B LoadD2XX Driver Option Interface B Load D2XX boolean B LoadVCP boolean B UART Drive Option Interface B UART Field Detail Copyright 2013Future Technology Devices International Limited 68 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 A_UART public boolean A_UART Drive Option Interface A UART public boolean B_UART Drive Option Interface B UART public boolean A_HighIO Drive Option Interface A High Current IO B_HighIO public boolean B_HighIO Drive Option Interface B High Current IO public boolean A_FIFO Hardware Option Interface A 245 FIFO public boolean B_FIFO Hardware Option Interface B 245 FIFO A_FIFOTarget public boolean A_FIFOTarget Hardware Option Interface A 245 FIFO CPU Target B_FIFOTarget public boolean B_FIFOTarget Hardware Option Interface B 245 FIFO CPU Target A_FastSerial public boolean A_FastSerial Hardware Option Interface A Fast Serial B_FastSerial public boolean B_FastSerial Hardware Option Interface B Fast Serial A_LoadVCP public boolean A_LoadVCP Driver Opt
87. s Device Open Flag FLAGS OPENED Device Hi Speed Flag FT FLAGS HI SPEED FLOW DSR Flow Control bits None FT FLOW NONE CTS RTS FT FLOW RTS CTS DTR DSR FT FLOW DTR DSR XON XOFF FT FLOW XON XOFF FT FLOW NONE Flow Control bits None FT FLOW NONE CTS RTS FT FLOW RTS CTS DTR DSR FT FLOW DTR XON XOFF FLOW XOFF FT FLOW RTS CTS Flow Control bits None FT FLOW NONE CTS RTS FLOW RTS CTS DTR DSR FT FLOW DSR XON XOFF FT FLOW XON XOFF FT FLOW XOFF Flow Control bits None FLOW NONE CTS RTS FT FLOW RTS CTS DTR DSR FLOW DTR XON XOFF FT FLOW XOFF Copyright 2013Future Technology Devices International Limited 17 static byte static byte static byte static byte static byte static byte static byte FTDI Chip FT_OE Line status bits OE FT_OE PE FT_PE FE FT_FE BI FT_PARITY_EVEN Parity bits used by App None PARITY NONE Odd FT PARITY ODD Even PARITY EVEN Mark FT PARITY MARK Space FT PARITY SPACE FT PARITY MARK Parity bits used by App None FT PARITY NONE Odd FT PARITY 000 Even FT PARITY EVEN Mark FT PARITY MARK Space FT PARITY SPACE FT PARITY NONE Parity bits used by App None FT PARITY NONE Odd FT PARITY ODD Even PARITY EVEN Mark PARITY MARK S
88. s parentContext The calling activity must pass the application Context into this function dev The USB Device object as an FT Device Returns A FT Device object containing the device object NULL for error Copyright 2013Future Technology Devices International Limited 28 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 19 Sample This is a sample show how to configure FT device to UART mode please refer to sample project for more information public class sample extends Activity public static D2xxManager ftD2xx null FT_Device ftDev null int devCount 0 override public void onCreate Bundle savedInstanceState try Get FT_Device and Open the port ftD2xx D2xxManager getInstance this devCount ftdid2xx createDeviceInfoList this if devCount gt 0 ftDev ftdid2xx openByIndex this index Configure the port to UART If ftDev isOpen true 4 Reset FT Device ftDev setBitMode byte O D2xxManager FT_BITMODE_RESET Set Baud Rate ftDev setBaudRate 115200 Set Data Bit Stop Bit Parity Bit ftDev setDataCharacteristics D2xxManager FT DATA BITS 8 D2xxManager FT STOP BITS 1 D2xxManager FT PARITY NONE Set Flow Control ftDev setFlowControl D2xxManager FT FLOW NONE byte OxOb byte 0x0d 2 catch D2xxManager D2xxException ex printStackTrace ftDev close Copyright
89. s full with data If true Rx would be pending until the data is read by user Returns True if Rx buffer is full 9 12 write with two parameters Definition public int write byte data int length Summary Writes data to the device from the Java application buffer The device must be open to write data to it This method will wait until USB request sent then report how many bytes were written Parameters data A data buffer containing the bytes to write to the device length The number of bytes that the application is requesting to write to the device Returns The number of bytes successfully written to the device 9 13 write with three parameters Definition public int write byte data int length boolean wait Summary Writes data to the device from the Java application buffer The device must be open to write data to it This method allows user to specify if one would like to wait for request sent to complete Parameters data A data buffer containing the bytes to write to the device length The number of bytes that the application is requesting to write to the device Returns The number of bytes successfully written to the device Copyright 2013Future Technology Devices International Limited 47 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 14 write with one parameter Definition public int write byte data Summary
90. s of the USB signal lines Field Detail AL SlowSlew public boolean AL SlowSlew Drive Option AL pins have slow slew AL SchmittInput public boolean AL SchmittInput Drive Option AL pins have Schmitt input AL DriveCurrent public byte DriveCurrent Drive Option AL pins drive current public boolean SlowSlew Drive Option AH pins have slow slew Copyright 2013Future Technology Devices International Limited 76 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public boolean AH_SchmittInput Drive Option AH pins have Schmitt input AH_DriveCurrent public byte AH_DriveCurrent Drive Option AH pins drive current BL_SlowSlew Public boolean BL_SlowSlew Drive Option BL pins have slow slew BL_SchmittInput public boolean BL_SchmittInput Drive Option BL pins have Schmitt input BL_DriveCurrent public byte BL_DriveCurrent Drive Option BL pins Drive Current BH_SlowSlew public boolean BH_SlowSlew Drive Option BH pins have slow slew BH_SchmittInput public boolean BH_SchmittInput Drive Option BH pins have Schmitt input BH_DriveCurrent public byte BH_DriveCurrent Drive Option BH pins drive current AL_RI_TXDEN public boolean AL RI TXDEN Hardware Option Interface AL uses RI as RS485 TXDEN TXDEN public bool
91. s the device at the specified location Parameters parentContext The calling activity must pass the application Context into this function location The location of the device Returns A FT Device object containing the device object NULL for error 4 15 openBySerialNumber with DriverParameters Definition public FT Device openBySerialNumber Context parentContext java lang StringserialNumber D2xxManager DriverParameters params Summary This designates the device with the specified serial number for use and allows for configuration of driver parameters Parameters parentContext Calls this function serialNumber The serial number of the device DriverParameters Parameters to configure max transfer size buffer size Rx timeout and number of buffers Buffer size the default is 16k Max is 16k Min is 64 Packet size the default is 16384 Max is 16384 Min is 64 Buffer Number the default is 16 Max is 16 Minis 2 Returns A FT_Device object containing the device object NULL for error Copyright 2013Future Technology Devices International Limited 26 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 4 16 openBySerialNumber without DriverParameters Definition public Device openBySerialNumber Context parentContext java lang StringserialNumber Summary This designates the device with the specified serial nu
92. st int com ftdi j2xx D2xxManager FtDeviceInfoListNode or getDeviceInfoListDetail int methods If the devices connected to the system change the device info list will not be updated until createDevicelInfoList Context is called again Parameters parentContext The calling activity must pass the application Context into this function Returns The number of devices represented in the device information list This is used to ensure that sufficient storage for the device list is returned getDevicelnfoList int com ftdi j2xx D2xxManager FtDeviceInfoListNode 4 2 getDeviceInfoList Definition public int getDeviceInfoList int numDevs D2xxManager FtDeviceInfoListNode deviceList Summary This method returns the device list created with a prior call to createDeviceInfoList Context list contains all available information for all the available devices at the time that createDeviceInfoList Context was called NOTE The flags element of each FtDeviceInfoListNodeobject in the list is a bit mask of FT FLAGS OPENED and FT FLAGS HI SPEED Remarks This function should only be called after calling createDeviceInfoList Context If the devices connected to the system change the device info list will not be updated until createDeviceInfoList Context is called again Location ID information is not returned for devices that are open when createDevicelnfoList Context is called Information is not available for
93. ters D2xxManager openByDescription Context java lang String com ftdi j2xx D2xxManager DriverParameters or D2xxManager openByLocation Context int com ftdi j2xx D2xxManager DriverParameters 9 2 getDeviceInfo Definition public D2xxManager FtDeviceInfoListNode getDeviceInfo Summary Retrieves information on the device that is currently open Returns A FtDeviceInfoListNode object containing the information available for the device Note that the flags and location fields are not used by this method 9 3 getLineStatus Definition public short getLineStatus Summary Retrieves the current modem line status values for the device NOTE this is only meaningful when the device is in UART mode Returns A short value containing the line status The line status is a bit mask of OE PE FE and FT BI Negative value for error 9 4 getModemStatus Definition public short getModemStatus Summary Retrieves the current modem status values for the device NOTE this is only meaningful when the device is in UART mode Returns A short value containing the modem status The modem status is a bit mask of FT_CTS FT_DSR FT_RI and FT_DCD Negative value for error Copyright 2013Future Technology Devices International Limited 43 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 Copyright 2013Future Technology Devices
94. tion note Bit Bang Modes for the FT232R FT245R For a description of available bit modes for the FT2232 see the application note Bit Mode Functions for the FT2232 For a description of bit bang modes for the FT232B and FT245B see the application note FT232B FT245B Bit Bang Mode For a description of bit modes supported by the FT4232H and FT2232H devices please see the IC data sheets These application notes are available for download from the FTDI website Returns The value read from the device pins Negative value for error 9 22 setBreakOff Definition public boolean setBreakOff Summary This method resets the BREAK condition on the device UART Note that this method is only meaningful when the device is in UART mode Returns Return true mean success Copyright 2013Future Technology Devices International Limited 50 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 23 setBreakOn Definition public boolean setBreakOn Summary This method generates a BREAK condition on the device UART Note that this method is only meaningful when the device is in UART mode Returns Return true mean success 9 24 setChar Definition public boolean setChars byte eventChar byte eventCharEnable byte errorChar byteerrorCharEnable Summary Specifies the event character and error replacement characters for the device to
95. umber string for FT device if available Device can be open via D2xxManager openBySerialNumber Context java lang String com ftdi j2xx D2xxManager DriverParameters method public java lang String description Description string for FT device if available Device can be open via D2xxManager openByDescription Context java lang String com ftdi j2xx D2xxManager DriverParameters method Copyright 2013Future Technology Devices International Limited 34 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 public int handle Reserve breakOnParam public int breakOnParam Indicate breakOnParam variable to representation UART break status Default value is 0x0008 Device can set break on via FT_Device setBreakOn method Device can set break off via FT_Device setBreakOff method modemStatus public short modemStatus Indicate modemStatus variable to representation UART modem status Device can get modem status via FT_Device getModemStatus method public short lineStatus Indicate lineStatus variable to representation UART line status Device can get line status via FT_Device getLineStatus method 6 2 Constructor Constructor and Description D2xxManager FtDeviceInfoListNode Constructor Detail D2xxManager FtDeviceInfoListNode public D2xxManager FtDeviceInfoListNode Copyright 2013Future Technology Devices Inter
96. ument Reference No FT_000796 Clearance No FTDI 328 int eepromReadWord short offset Reads a WORD from the device EEPROM at the specified address short eepromWrite FT_EEPROMeeData Encodes the settings from a FT_EEPROM object and writes them to the device EEPROM Remarks FT_EEPROM For FT_232A FT_232B FT_EEPROM_2232H For FT_2232H FT EEPROM 2232D For FT_2232 FT EEPROM 4232H For FT 4232H EEPROM 232 For 232R EEPROM 245R For 245R FT EEPROM 232H For 232H EEPROM X For FT X Series int eepromWriteUserArea byte data Writes data to the device EEPROM user area boolean eepromWriteWord short address short data Writes a WORD to the device EEPROM at the specified address byte getBitMode Gets the instantaneous value of the data bus D2xxManager FtDeviceInfoListNode getDeviceInfo Retrieves information on the device that is currently open long getEventStatus Retrieves the event status byte getLatencyTimer Retrieves the current latency timer value from the device short getLineStatus Retrieves the current modem line status values for the device short getModemsStatus Retrieves the current modem status values for the device int getQueueStatus Retrieves the number of bytes available to read from the Rx driver buffer boolean isOpen Returns the open status of the device boolean purge byte flags Discards any data from the specified driver buffer and
97. use When the device detects an event character being received this will trigger an IN to the USB Host regardless of the number of bytes in the device s buffer or the latency timer value When the device detects an error FT_OE FT_PE FT_FE orFT_BI the error character will be inserted in to the data stream to the USB host Parameters eventChar The character for which the device to trigger an IN eventCharEnable Enable or disable the use of the event character errorChar The character that will be inserted in the data stream on the detection of an error errorCharEnable Enable or disable the use of the error replacement character Returns Return 0 mean success 9 25 setDataCharacteristics Definition public boolean setDataCharacteristics byte dataBits byte stopBits byte parity Summary This method dictates the data format that the device will use Communication errors will occur if these parameters do not match those used by the external system Note that these data characteristics are only meaningful when the device is in UART mode Parameters dataBits Valid data bit values are FT_DATA_BITS_7 or FT_DATA_BITS_8 stopBits Valid stop bit values are FT_STOP_BITS_1 or FT_STOP_BITS_2 parity Valid parity values are FT_PARITY_NONE FT_PARITY_ODD FT_PARITY_EVEN FT_PARITY_MARK or FT_PARITY_SPACE Returns Return true mean success Copyright 2013Future Technology Devices International Limited 51
98. y Devices International Limited 78 Chip BH LoadD2XX public boolean BH LoadD2XX Driver Option Interface BH Load D2XX LoadRI 5485 public boolean BH_LoadRI_RS485 Driver Option Interface BH Load RI_RS485 TPRDRV public int TPRDRV Driver Option fluctuating times of the USB signal lines 10 6 3Nested Class Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 public static final class EEPROM 4232H DRIVE STRENGTH extends java lang Object The driver strength on the FT4232H Constructor Summary Constructors Constructor and Description FT EEPROM 4232H DRIVE STRENGTH 10 6 4 Driver Length Fields FT4232H Driver Strength Constant variable byte Constant Value FT4232H Driver Strength 4mA DRIVER 4mA 0 FT4232H Driver Strength 8mA DRIVER 8mA 1 FT4232H Driver Strength 12mA DRIVER 12 2 FT4232H Driver Strength 16mA DRIVER 16mA 3 Copyright 2013Future Technology Devices International Limited 79 FTDI Chip 10 7 Class FT_EEPROM_232H public class FT_EEPROM_232H extends EEPROM EEPROM data structure on the 232H 10 7 1 Constructor Java D2xx for Android API User Manual Version 1 0 Document Reference No FT_000796 Clearance No FTDI 328 Constructors Constructor and Description FT_EEPROM_232H 10 7 2Fields Field Summary Fields Modifier and Type Field and Des
99. y timer The valid range for this is 2ms 255ms Returns Return true mean success 9 30 getLatencyTimer Definition public byte getLatencyTimer Summary This method retrieves the current latency timer value from the device The latency timer is the mechanism that returns short packets to the USB host The default value is 16ms Remark In the FT8U232AM and FT8U245AM devices the receive buffer timeout that is used to flush remaining data from the receive buffer was fixed at 16 ms In all other FTDI devices this timeout is programmable and can be set at 1 ms intervals between 2ms and 255 ms This allows the device to be better optimized for protocols requiring faster response times from short data packets Returns Return true mean success Copyright 2013Future Technology Devices International Limited 53 FTDI Java D2xx for Android API User Manual Version 1 0 Chip Document Reference No FT_000796 Clearance No FTDI 328 9 31 setDtr Definition public boolean setDtr Summary Allows the DTR modem control line to be manually asserted Note that this method is only meaningful when the device is in UART mode Returns Return true mean success 9 32 clrDtr Definition public boolean clrDtr Summary Allows the DTR modem control line to be manually de asserted Note that this method is only meaningful when the device is in UART mode Returns Return true mean success 9 33 setRts Definitio
Download Pdf Manuals
Related Search
Related Contents
amPlug Night Train/Twin owner`s manual MANUAL DEL OPERADOR Husqvarna 966976701 Chainsaw User Manual Dynasty Spas MC-MP-DY4 User's Manual Mode d`emploi: Tiroir-Toit de ventilation avec thermostat précablé Copyright © All rights reserved.
Failed to retrieve file