The branch, master has been updated
via 934173a30ae3db61369cf308e8051f9ed4643d24 (commit)
from c9eeb2f12fe5632bab5b35766c1b6261e591872a (commit)
- Log -----------------------------------------------------------------
commit 934173a30ae3db61369cf308e8051f9ed4643d24
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Wed Feb 22 10:07:53 2017 +0100
Add doxygen documentation for ftdi_eeprom_get_strings()
Mostly borrowed from ftdi_usb_get_strings()
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index 777733a..360acf5 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -2596,6 +2596,25 @@ int ftdi_eeprom_set_strings(struct ftdi_context *ftdi,
char * manufacturer,
return 0;
}
+/**
+ Return device ID strings from the eeprom. Device needs to be connected.
+
+ The parameters manufacturer, description and serial may be NULL
+ or pointer to buffers to store the fetched strings.
+
+ \param ftdi pointer to ftdi_context
+ \param manufacturer Store manufacturer string here if not NULL
+ \param mnf_len Buffer size of manufacturer string
+ \param product Store product description string here if not NULL
+ \param prod_len Buffer size of product description string
+ \param serial Store serial string here if not NULL
+ \param serial_len Buffer size of serial string
+
+ \retval 0: all fine
+ \retval -1: ftdi context invalid
+ \retval -2: ftdi eeprom buffer invalid
+ \retval -3: no USB device connected
+*/
int ftdi_eeprom_get_strings(struct ftdi_context *ftdi,
char *manufacturer, int mnf_len,
char *product, int prod_len,
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|