* *
***************************************************************************/
+/**
+ \mainpage libftdi API documentation
+
+ Library to talk to FTDI chips. See http://www.ftdichip.com
+
+ The latest versions of libftdi is available at
+ http://www.intra2net.com/de/produkte/opensource/ftdi/
+
+*/
+/** \addtogroup libftdi */
+/* @{ */
+
#include <usb.h>
#include <string.h>
#include <errno.h>
\param vendor Vendor ID
\param product Product ID
- \retval \see ftdi_usb_open_desc()
+ \retval same as ftdi_usb_open_desc()
*/
int ftdi_usb_open(struct ftdi_context *ftdi, int vendor, int product)
{
/*
ftdi_convert_baudrate returns nearest supported baud rate to that requested.
Function is only used internally
+ \internal
*/
static int ftdi_convert_baudrate(int baudrate, struct ftdi_context *ftdi,
unsigned short *value, unsigned short *index)
}
/**
- Sets the chip baudrate
+ Sets the chip baud rate
\param ftdi pointer to ftdi_context
+ \param baudrate baud rate to set
\retval 0: all fine
\retval -1: invalid baudrate
return ftdi->error_str;
}
+/*
+ Flow control code by Lorenz Moesenlechner (lorenz@hcilab.org)
+ and Matthias Kranz (matthias@hcilab.org)
+*/
/**
Set flowcontrol for ftdi chip
return 0;
}
+
+/* @} end of doxygen libftdi group */