没有合适的资源?快使用搜索试试~ 我知道了~
FTDT公司USB-PORT动态库编程手册
需积分: 48 16 下载量 177 浏览量
2013-07-25
11:11:46
上传
评论
收藏 829KB PDF 举报
温馨提示
试读
112页
FTDT的USB转串口芯片应用很广泛,本资源是该公司提供D2XX驱动开发包,用于实现对USB-SERIAL的直接操作。
资源推荐
资源详情
资源评论
Future Technology Devices International Ltd (FTDI)
Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow, G41 1HH, United Kingdom
Tel.: +44 (0) 141 429 2777 Fax: + 44 (0) 141 429 2758
E-Mail (Support): support1@ftdichip.com
Web: www.ftdichip.com
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.
Future Technology Devices International Ltd.
Software Application Development
D2XX Programmer's Guide
Document Reference No.: FT_000071
Version 1.3
Issue Date: 2012-02-23
FTDI provides DLL and virtual COM port (VCP) application interfaces to its drivers. This document
provides the application programming interface (API) for the FTD2XX DLL function library.
Copyright © 2011 Future Technology Devices International Limited 1
Document Reference No.: FT_000071
D2XX Programmer's Guide Version 1.3
Clearance No.: FTDI# 170
Table of Contents
1 Preface ................................................................................................... 4
1.1 Acronyms and Abbreviations ............................................................................. 4
2 Introduction............................................................................................ 5
3 D2XX Classic Functions ........................................................................ 6
3.1 FT_SetVIDPID ....................................................................................................... 6
3.2 FT_GetVIDPID ...................................................................................................... 6
3.3 FT_CreateDeviceInfoList .................................................................................... 7
3.4 FT_GetDeviceInfoList .......................................................................................... 8
3.5 FT_GetDeviceInfoDetail ...................................................................................... 9
3.6 FT_ListDevices .................................................................................................. 11
3.7 FT_Open ............................................................................................................. 13
3.8 FT_OpenEx......................................................................................................... 14
3.9 FT_Close ............................................................................................................ 16
3.10 FT_Read ............................................................................................................. 17
3.11 FT_Write ............................................................................................................. 19
3.12 FT_SetBaudRate ................................................................................................ 20
3.13 FT_SetDivisor .................................................................................................... 21
3.14 FT_SetDataCharacteristics ............................................................................... 21
3.15 FT_SetTimeouts ................................................................................................. 22
3.16 FT_SetFlowControl ............................................................................................ 23
3.17 FT_SetDtr ........................................................................................................... 24
3.18 FT_ClrDtr ............................................................................................................ 25
3.19 FT_SetRts ........................................................................................................... 26
3.20 FT_ClrRts ........................................................................................................... 27
3.21 FT_GetModemStatus ......................................................................................... 28
3.22 FT_GetQueueStatus .......................................................................................... 29
3.23 FT_GetDeviceInfo .............................................................................................. 30
3.24 FT_GetDriverVersion ......................................................................................... 31
3.25 FT_GetLibraryVersion ....................................................................................... 32
3.26 FT_GetComPortNumber ................................................................................... 33
3.27 FT_GetStatus ..................................................................................................... 34
3.28 FT_SetEventNotification ................................................................................... 34
3.29 FT_SetChars ...................................................................................................... 37
Copyright © 2011 Future Technology Devices International Limited 2
Document Reference No.: FT_000071
D2XX Programmer's Guide Version 1.3
Clearance No.: FTDI# 170
3.30 FT_SetBreakOn .................................................................................................. 39
3.31 FT_SetBreakOff ................................................................................................. 39
3.32 FT_Purge ............................................................................................................ 40
3.33 FT_ResetDevice ................................................................................................. 41
3.34 FT_ResetPort ..................................................................................................... 42
3.35 FT_CyclePort ..................................................................................................... 42
3.36 FT_Rescan ......................................................................................................... 43
3.37 FT_Reload .......................................................................................................... 44
3.38 FT_SetResetPipeRetryCount ............................................................................ 45
3.39 FT_StopInTask ................................................................................................... 46
3.40 FT_RestartInTask .............................................................................................. 47
3.41 FT_SetDeadmanTimeout................................................................................... 48
3.42 FT_IoCtl .............................................................................................................. 49
3.43 FT_SetWaitMask ................................................................................................ 49
3.44 FT_WaitOnMask ................................................................................................. 49
4 EEPROM Programming Interface Functions ..................................... 50
4.1 FT_ReadEE......................................................................................................... 50
4.2 FT_WriteEE ........................................................................................................ 50
4.3 FT_EraseEE........................................................................................................ 51
4.4 FT_EE_Read ....................................................................................................... 51
4.5 FT_EE_ReadEx .................................................................................................. 53
4.6 FT_EE_Program ................................................................................................. 54
4.7 FT_EE_ProgramEx ............................................................................................ 57
4.8 FT_EE_UASize ................................................................................................... 58
4.9 FT_EE_UARead ................................................................................................. 59
4.10 FT_EE_UAWrite ................................................................................................. 61
4.11 FT_EEPROM_Read ............................................................................................ 62
4.12 FT_EEPROM_Program ...................................................................................... 64
5 Extended API Functions ..................................................................... 67
5.1 FT_SetLatencyTimer ......................................................................................... 67
5.2 FT_GetLatencyTimer ......................................................................................... 68
5.3 FT_SetBitMode .................................................................................................. 69
5.4 FT_GetBitMode .................................................................................................. 70
5.5 FT_SetUSBParameters ..................................................................................... 71
Copyright © 2011 Future Technology Devices International Limited 3
Document Reference No.: FT_000071
D2XX Programmer's Guide Version 1.3
Clearance No.: FTDI# 170
6 FT-Win32 API Functions ..................................................................... 73
6.1 FT_W32_CreateFile ........................................................................................... 73
6.2 FT_W32_CloseHandle ....................................................................................... 75
6.3 FT_W32_ReadFile .............................................................................................. 75
6.4 FT_W32_WriteFile .............................................................................................. 78
6.5 FT_W32_GetOverlappedResult ........................................................................ 80
6.6 FT_W32_EscapeCommFunction ...................................................................... 80
6.7 FT_W32_GetCommModemStatus .................................................................... 81
6.8 FT_W32_SetupComm ........................................................................................ 82
6.9 FT_W32_SetCommState ................................................................................... 83
6.10 FT_W32_GetCommState ................................................................................... 84
6.11 FT_W32_SetCommTimeouts ............................................................................ 84
6.12 FT_W32_GetCommTimeouts ............................................................................ 86
6.13 FT_W32_SetCommBreak .................................................................................. 86
6.14 FT_W32_ClearCommBreak ............................................................................... 87
6.15 FT_W32_SetCommMask ................................................................................... 88
6.16 FT_W32_GetCommMask ................................................................................... 89
6.17 FT_W32_WaitCommEvent ................................................................................ 90
6.18 FT_W32_PurgeComm ....................................................................................... 92
6.19 FT_W32_GetLastError ....................................................................................... 93
6.20 FT_W32_ClearCommError ................................................................................ 93
7 Contact Information............................................................................. 96
8 Appendix A - Type Definitions ............................................................ 98
9 Appendix B - Revision History ......................................................... 111
Copyright © 2011 Future Technology Devices International Limited 4
Document Reference No.: FT_000071
D2XX Programmer's Guide Version 1.3
Clearance No.: FTDI# 170
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 FTD2XX library
Any software code examples given in this document are for information only. The examples are not
guaranteed and are not supported by FTDI.
1.1 Acronyms and Abbreviations
Terms
Description
CDM
Combined Driver Model. Windows driver package which incorporates both D2XX
and VCP drivers.
D2XX
FTDI’s proprietary “direct” driver interface via FTD2XX.DLL
VCP
Virtual COM Port
Table 1.1 Acronyms and Abbreviations
剩余111页未读,继续阅读
资源评论
wakels
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功