Download FTDI pdf AN 233 Java D2xx for Android API User Manual

Transcript
Java D2xx for Android API User Manual
Version: 1.0
Document Reference No.FT_000796
Clearance No.:FTDI# 328
Table of Contents
1
Preface ............................................................................ 6
1.1
2
3
4
Acronyms and Abbreviations..................................................... 6
Introduction .................................................................... 7
2.1
Android Support ........................................................................ 7
2.2
Prerequisites............................................................................. 7
D2xx Library Packages .................................................... 9
3.1
Package com.ftdi.j2xx ............................................................... 9
3.2
Class Hierarchy ....................................................................... 10
Methods on D2xxManager ............................................. 11
4.1
createDeviceInfoList ............................................................... 21
4.2
getDeviceInfoList .................................................................... 21
4.3
getDeviceInfoListDetail: ......................................................... 22
4.4
getInstance............................................................................. 22
4.5
getLibraryVersion ................................................................... 22
4.6
setVIDPID ............................................................................... 23
4.7
getVIDPID .............................................................................. 23
4.8
isFtDevice ............................................................................... 24
4.9
openByDescription with DriverParameters ............................. 24
4.10 openByDescription without DriverParameters ........................ 24
4.11 openByIndex with DriverParameters ...................................... 25
4.12 openByIndex without DriverParameters ................................. 25
4.13 openByLocation with DriverParameters .................................. 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 .................................................................................... 29
5
FieldsinD2xxManager Class ........................................... 30
5.1
Data Bits<byte> ..................................................................... 30
5.2
Stop Bits<byte>...................................................................... 30
5.3
Parity Bits< byte> .................................................................. 30
5.4
Flow Control Bits<short> ........................................................ 30
Copyright © 2013Future Technology Devices International Limited
1