EasyManua.ls Logo

FTDI LibFT4222 - Table of Contents

Default Icon
78 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
1
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
Table of Contents
1 Introduction .............................................................. 4
1.1 Overview ............................................................................. 5
1.2 Scope .................................................................................. 7
2 Getting Started .......................................................... 8
3 Application Programming Interface (API) ............... 10
3.1 Typedefs ............................................................................ 10
3.2 FT4222 General Functions ................................................. 10
3.2.1 Open and Close ................................................................................ 10
3.2.2 Un-initialize ...................................................................................... 10
3.2.3 Set Clock ......................................................................................... 11
3.2.4 Get Clock ......................................................................................... 12
3.2.5 Set Suspend Out ............................................................................... 13
3.2.6 Set Wake Up/Interrupt ...................................................................... 14
3.2.7 Set Interrupt Trigger Condition ........................................................... 15
3.2.8 Get Max Transfer Size ....................................................................... 18
3.2.9 Set Event Notification ........................................................................ 19
3.2.10 Get Version ...................................................................................... 20
3.2.11 Chip Reset ....................................................................................... 22
3.3 SPI Master Functions ........................................................ 22
3.3.1 SPI Master Init ................................................................................. 23
3.3.2 SPI Master Set Lines ......................................................................... 25
3.3.3 SPI Master Single Read ...................................................................... 26
3.3.4 SPI Master Single Write ..................................................................... 27
3.3.5 SPI Master Single Read and Write ....................................................... 28
3.3.6 SPI Master Multi Read and Write ......................................................... 31
3.4 SPI Slave Functions ........................................................... 33
3.4.1 SPI Slave Init ................................................................................... 36
3.4.2 SPI Slave Init extend function ............................................................ 37
3.4.3 SPI Slave Set mode function .............................................................. 38
3.4.4 SPI Slave Get Rx Status .................................................................... 39

Table of Contents