libftdi Archives

Subject: python wrapper for usb_find_all

From: Rafal <komarro@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 9 Apr 2019 11:09:28 +0200
Hello,

I'm trying to generate wrapper using Python3 nad swig. There is an issue with ftdi_usb_find_all() function. It is generated as:

def usb_find_all(ftdi, devlist, vendor, product):
    """usb_find_all(context, vendor, product) -> (return_code, devlist)"""
    return _ftdi1.usb_find_all(ftdi, devlist, vendor, product)

and requires 4 parameters. devlist should be output parameter but it does not work somehow (comment is correct). Is there some issue with interface file for swig?

Best regards, Rafal


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread
  • python wrapper for usb_find_all, Rafal <=