Library to talk to FTDI chips. You find the latest versions of libftdi at https://www.intra2net.com/en/developer/libftdi/
The library is easy to use. Have a look at this short example:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int ret;
{
fprintf(stderr, "ftdi_new failed\n");
return EXIT_FAILURE;
}
printf("Initialized libftdi %s (major: %d, minor: %d, micro: %d, snapshot ver: %s)\n",
version.version_str, version.major, version.minor, version.micro,
version.snapshot_str);
{
return EXIT_FAILURE;
}
{
unsigned int chipid;
printf("FTDI chipid: %X\n", chipid);
}
{
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
void ftdi_free(struct ftdi_context *ftdi)
const char * ftdi_get_error_string(struct ftdi_context *ftdi)
int ftdi_usb_close(struct ftdi_context *ftdi)
int ftdi_usb_open(struct ftdi_context *ftdi, int vendor, int product)
struct ftdi_context * ftdi_new(void)
int ftdi_read_chipid(struct ftdi_context *ftdi, unsigned int *chipid)
struct ftdi_version_info ftdi_get_library_version(void)
Get libftdi library version.
Main context structure for all libftdi functions.
More examples can be found in the "examples" directory.