[Haskell-cafe] ANN: ftdi-0.1

Roel van Dijk vandijk.roel at gmail.com
Mon Jan 25 18:06:05 EST 2010


I just released a very early version of my 'ftdi' library [1]. It
is a small layer on top of the usb package [2] that enables you
to communicate with FTDI [3] devices.

Its design is based on the C-library libftdi [4], but it
implemented completely in Haskell. Most functionality is
untested. I only have access to an FT2232C chip, so testing other
chips is not possible at the moment. Furthermore, the only thing
I do with that chip is perform bulk reads and the
occasional small (1 byte) bulk write. The good news is that it is
quite good a bulk reads. It outperformed both libftdi-0.16 and
the official driver [5] by about 40% for my use case. Although to
be fair, both C libraries used the old libusb-0.1 library. This
library is ultimately linked with libusb-1.0.* which is a complete

To play with the library either
  cabal install ftdi
  darcs get http://code.haskell.org/~roelvandijk/code/ftdi

Roel van Dijk

1 - http://hackage.haskell.org/package/ftdi
2 - http://ftdichip.com/
3 - http://hackage.haskell.org/package/usb
4 - http://www.intra2net.com/en/developer/libftdi/
5 - http://www.ftdichip.com/Drivers/D2XX.htm

More information about the Haskell-Cafe mailing list