libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.3-15-gb829fe9

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 22 Feb 2017 10:18:21 +0100 (CET)
The branch, master has been updated
       via  b829fe92a5a283744daee3f689e58729ae930967 (commit)
      from  934173a30ae3db61369cf308e8051f9ed4643d24 (commit)


- Log -----------------------------------------------------------------
commit b829fe92a5a283744daee3f689e58729ae930967
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Wed Feb 22 10:17:56 2017 +0100

    Add python (SWIG) support for ftdi_eeprom_get_strings()

-----------------------------------------------------------------------

Summary of changes:
 python/ftdi1.i |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/python/ftdi1.i b/python/ftdi1.i
index 755b6b9..93793f8 100644
--- a/python/ftdi1.i
+++ b/python/ftdi1.i
@@ -61,11 +61,13 @@ inline char * str2charp_size(PyObject* pyObj, int * size)
 %enddef
 %feature("autodoc", ftdi_usb_get_strings_docstring) ftdi_usb_get_strings;
 %feature("autodoc", ftdi_usb_get_strings_docstring) ftdi_usb_get_strings2;
+%feature("autodoc", ftdi_usb_get_strings_docstring) ftdi_eeprom_get_strings;
 %apply char *OUTPUT { char * manufacturer, char * description, char * serial };
 %cstring_bounded_output( char * manufacturer, 256 );
 %cstring_bounded_output( char * description, 256 );
+%cstring_bounded_output( char * product, 256 );
 %cstring_bounded_output( char * serial, 256 );
-%typemap(default,noblock=1) int mnf_len, int desc_len, int serial_len { $1 = 
256; }
+%typemap(default,noblock=1) int mnf_len, int desc_len, int product_len, int 
serial_len { $1 = 256; }
     int ftdi_usb_get_strings(struct ftdi_context *ftdi, struct libusb_device 
*dev,
                              char * manufacturer, int mnf_len,
                              char * description, int desc_len,
@@ -74,8 +76,14 @@ inline char * str2charp_size(PyObject* pyObj, int * size)
                               char * manufacturer, int mnf_len,
                               char * description, int desc_len,
                               char * serial, int serial_len);
+    int ftdi_eeprom_get_strings(struct ftdi_context *ftdi,
+                                char *manufacturer, int mnf_len,
+                                char *product, int product_len,
+                                char *serial, int serial_len);
+
 %clear char * manufacturer, char * description, char * serial;
-%clear int mnf_len, int desc_len, int serial_len;
+%clear char * product;
+%clear int mnf_len, int desc_len, int product_len, int serial_len;
 
 %define ftdi_read_data_docstring
 "read_data(context) -> (return_code, buf)"


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   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.3-15-gb829fe9, libftdi-git <=