bitbang2 \
bitbang_ft2232
+# Don't install the example files
+AM_LDFLAGS = -no-install
+
simple_SOURCES = simple.c
bitbang_SOURCES = bitbang.c
bitbang2_SOURCES = bitbang2.c
{
struct ftdi_context ftdic;
int f,i;
+ char buf[1];
ftdi_init(&ftdic);
printf("enabling bitbang mode\n");
ftdi_enable_bitbang(&ftdic, 0xFF);
- char buf[1];
-
sleep(3);
buf[0] = 0x0;
The parameters manufacturer, description and serial may be NULL
or pointer to buffers to store the fetched strings.
+ \note Use this function only in combination with ftdi_usb_find_all()
+ as it closes the internal "usb_dev" after use.
+
\param ftdi pointer to ftdi_context
\param dev libusb usb_dev to use
\param manufacturer Store manufacturer string here if not NULL