367d71f4e7a4defc048e6cacdcc591fea4ce3f79
[contrib/mraa.git] / docs / ftdi_ft4222.md
1 FTDI FT4222H                             {#ft4222}
2 ============
3
4 The FT4222H is a High/Full Speed USB2.0-to-Quad SPI/I2C device controller. Mraa
5 supports it as a USB subplatform using the libft4222 library from FTDI which
6 can be found
7 [here](http://www.ftdichip.com/Support/SoftwareExamples/libft4222-1.2.0.240.tgz).
8
9 The FT 4222H has 4 configuration modes selected by {DCNF1, DCNF0}.  The c hip
10 configuration mode will determine the number of USB interface s for data stream
11 s and for GPIOs control. Mraa supports only chip CNFMODE0.
12
13 Whilst mraa can support custom board in CNFMODE0 (support for other mode is
14 welcome!) there may be some work to be done. We test using FTDI's UNFT4222EV
15 reference board. More detail on this board can be found
16 [here](http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UMFT4222EV.pdf).
17
18 Interface notes
19 ---------------
20
21 You will need to unload all ftdi kernel modules for libft4222 to work
22 correctly. You will also have to compile mraa with FT4222 support which may not
23 be enabled by default.