libftdi Archives

Subject: Re: New function for getting eeprom strings

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Adam Malinowski <amalinowski75@xxxxxxxxx>
Date: Wed, 22 Feb 2017 10:20:01 +0100
Hello Adam,

On Thursday, 16 February 2017 15:58:14 CET Adam Malinowski wrote:
> I needed to get product string form FTDI's eeprom and I foun that this is
> not that straightforward. It is doable but very inconvenient and
> nonintuitive so I decided to add new function which will do the jib. I
> called it ftdi_eeprom_get_strings().

thanks, applied.

I've also added doxygen documentation and python wrapper support on top.
The python support is untested, I've cloned the ftdi_usb_get_strings() code.

One question: Why is this check in there:

+    if (ftdi->usb_dev == NULL)
+        ftdi_error_return(-3, "No connected device or device not yet opened");


Won't the code work for eeproms read from file?

Cheers,
Thomas


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

Current Thread