libftdi
12 years agoAbort if no EEPROM is found
Uwe Bonnes [Mon, 20 Jun 2011 12:51:49 +0000]
Abort if no EEPROM is found

12 years agoRemove some code duplication
Uwe Bonnes [Mon, 20 Jun 2011 12:50:16 +0000]
Remove some code duplication

12 years agoMove libusb_init() call to prevent crash
Thomas Jarosch [Tue, 21 Jun 2011 07:27:21 +0000]
Move libusb_init() call to prevent crash
on plain ftdi_init() / ftdi_deinit().

Also check ftdi->usb_ctx in ftdi_deinit().

Code based on patch by Uwe Bonnes.

12 years agoForward port flexible module unload behavior
Thomas Jarosch [Tue, 14 Jun 2011 13:30:33 +0000]
Forward port flexible module unload behavior

12 years agoFix small typo
Thomas Jarosch [Tue, 14 Jun 2011 12:23:22 +0000]
Fix small typo

12 years agolibftdi1: Fixe Fixme in CBUS decoding
Uwe Bonnes [Fri, 20 May 2011 16:07:37 +0000]
libftdi1: Fixe Fixme in CBUS decoding

>>>>> "Thomas" == Thomas Jarosch <thomas.jarosch@intra2net.com> writes:

    Thomas> Uwe, On Friday, 20. May 2011 12:43:42 Uwe Bonnes wrote:
    >> as I am still in the steep part of the learning curve with git, at
    >> some point in time I accidently merged my changes to streaming read
    >> and eeprom to one. That way, my tree diverged from either libftdi-1.0
    >> master and eeprom- new. As I need both features, maintainance is
    >> difficult.
    >>
    >> Two questions: Why is eeprom-new still not merged?

    Thomas> It is now.

Thanks

Appended patch hopefully fixes the FIXME aimed at me.

Bye
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 92ec6ded6df5aa377e1f82c081891b321f22c1d0 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Fri, 20 May 2011 18:03:21 +0200
Subject: Only the first 4 PINs have (fixed) CBUS functionality

12 years agoMerge branch 'eeprom-new'
Thomas Jarosch [Fri, 20 May 2011 14:10:11 +0000]
Merge branch 'eeprom-new'

Conflicts:
examples/stream_test.c

12 years agoCorrect ftdi_poll_modem_status() result code
Thomas Jarosch [Fri, 6 May 2011 13:17:13 +0000]
Correct ftdi_poll_modem_status() result code

12 years agoCorrect ftdi_poll_modem_status() result code
Thomas Jarosch [Fri, 6 May 2011 13:17:13 +0000]
Correct ftdi_poll_modem_status() result code

12 years agoFix cmake build with not remove doc directory for build in source
Evgeny Sinelnikov [Tue, 11 May 2010 07:05:02 +0000]
Fix cmake build with not remove doc directory for build in source

12 years agoFix libftdi.hpp with include of system ftdi.h
Evgeny Sinelnikov [Sat, 27 Jun 2009 21:52:02 +0000]
Fix libftdi.hpp with include of system ftdi.h

12 years agoFix ftdi_read_pins in python bindings
Chris Zeh [Mon, 2 May 2011 17:20:36 +0000]
Fix ftdi_read_pins in python bindings

13 years agoCall ftdi_usb_close_internal and not usb_close when descriptor doesn't match
Uwe Bonnes [Tue, 1 Feb 2011 10:27:09 +0000]
Call ftdi_usb_close_internal and not usb_close when descriptor doesn't match

13 years agoCheck ftdi pointer before accessing it
Uwe Bonnes [Tue, 1 Feb 2011 10:02:24 +0000]
Check ftdi pointer before accessing it

13 years agoCall ftdi_usb_close_internal and not usb_close when descriptor doesn't match
Uwe Bonnes [Tue, 1 Feb 2011 10:27:09 +0000]
Call ftdi_usb_close_internal and not usb_close when descriptor doesn't match

13 years agoCheck ftdi pointer before accessing it
Uwe Bonnes [Tue, 1 Feb 2011 10:02:24 +0000]
Check ftdi pointer before accessing it

13 years agoSafer initialisation of ftdi_readstream
Uwe Bonnes [Thu, 20 Jan 2011 15:51:21 +0000]
Safer initialisation of ftdi_readstream

Applies to both branches

--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

13 years agoDelete some remaining debug printout
Uwe Bonnes [Thu, 20 Jan 2011 15:22:37 +0000]
Delete some remaining debug printout

Applied to all trees
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 6ba0d30b53677d27f9559057697c75c962cab117 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Thu, 20 Jan 2011 16:20:03 +0100
Subject: Delete some remaining debug printout

13 years agoSafer initialisation of ftdi_readstream
Uwe Bonnes [Thu, 20 Jan 2011 15:51:21 +0000]
Safer initialisation of ftdi_readstream

Applies to both branches

--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

13 years agoDelete some remaining debug printout
Uwe Bonnes [Thu, 20 Jan 2011 15:22:37 +0000]
Delete some remaining debug printout

Applied to all trees
--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 6ba0d30b53677d27f9559057697c75c962cab117 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Thu, 20 Jan 2011 16:20:03 +0100
Subject: Delete some remaining debug printout

13 years agoNot writing to file, in flash_raw mode
Vladimir Yakovlev [Wed, 19 Jan 2011 07:31:41 +0000]
Not writing to file, in flash_raw mode

Don't write eeprom file if flash_raw is set

13 years agoDefault USB PID differs for different devices. 0x6001 is valid only for FT245BM.
Vladimir Yakovlev [Wed, 19 Jan 2011 15:38:25 +0000]
Default USB PID differs for different devices. 0x6001 is valid only for FT245BM.
FT2232HQ uses 0x6010. Now you can define a default fallback PID.

In configuration file add this line:
        default_pid=0x6110

13 years agoImport example config file from ftdi_eeprom tree
Thomas Jarosch [Sat, 15 Jan 2011 17:53:12 +0000]
Import example config file from ftdi_eeprom tree

13 years agoFix raw eeprom buffer handling
Thomas Jarosch [Sat, 15 Jan 2011 17:51:38 +0000]
Fix raw eeprom buffer handling

13 years agoIntroduce size limit in ftdi_get_eeprom_buf()
Thomas Jarosch [Sat, 15 Jan 2011 17:32:47 +0000]
Introduce size limit in ftdi_get_eeprom_buf()

13 years agoUse eeprom_set_value()/eeprom_get_value() where possible
Thomas Jarosch [Sat, 15 Jan 2011 17:22:36 +0000]
Use eeprom_set_value()/eeprom_get_value() where possible

13 years agoFix typo in documentation
Thomas Jarosch [Sat, 15 Jan 2011 17:21:58 +0000]
Fix typo in documentation

13 years agoPrepare switch to opaque eeprom buffer
Thomas Jarosch [Sat, 15 Jan 2011 16:56:21 +0000]
Prepare switch to opaque eeprom buffer

13 years agoUpdate copyright information and add ftdi_eeprom TODO list
Thomas Jarosch [Sat, 15 Jan 2011 16:44:44 +0000]
Update copyright information and add ftdi_eeprom TODO list

13 years agoPC-lint settings: Add path to libusb 1.0 header file
Thomas Jarosch [Sat, 15 Jan 2011 16:14:00 +0000]
PC-lint settings: Add path to libusb 1.0 header file

13 years agoWe already declared var 'i', no need to redo it
Thomas Jarosch [Sat, 15 Jan 2011 16:08:34 +0000]
We already declared var 'i', no need to redo it

13 years agoFix memleak on ftdi_write_data_submit() error
Thomas Jarosch [Sat, 15 Jan 2011 16:06:55 +0000]
Fix memleak on ftdi_write_data_submit() error

13 years agoFix user area size calculation
Thomas Jarosch [Sat, 15 Jan 2011 15:57:26 +0000]
Fix user area size calculation

13 years agoFix doxygen documentation
Thomas Jarosch [Sat, 15 Jan 2011 15:42:01 +0000]
Fix doxygen documentation

13 years agoAddress one more compile warning / add FIXME comment for Uwe
Thomas Jarosch [Sat, 15 Jan 2011 15:38:26 +0000]
Address one more compile warning / add FIXME comment for Uwe

13 years agoFix uninitialized variable warning about user_area_size
Thomas Jarosch [Sat, 15 Jan 2011 15:22:32 +0000]
Fix uninitialized variable warning about user_area_size

13 years agoUpdate project file to kdevelop 4
Thomas Jarosch [Sat, 15 Jan 2011 15:14:24 +0000]
Update project file to kdevelop 4

13 years agoRemove duplicate init code
Thomas Jarosch [Sat, 15 Jan 2011 15:08:23 +0000]
Remove duplicate init code

Conflicts:

src/ftdi.c

13 years agoRemove duplicate init code
Thomas Jarosch [Sat, 15 Jan 2011 15:07:11 +0000]
Remove duplicate init code

13 years agoFix email address
Thomas Jarosch [Wed, 12 Jan 2011 12:20:29 +0000]
Fix email address

13 years agoFix mantainer in CMakeLists.txt
Uwe Bonnes [Tue, 11 Jan 2011 14:34:13 +0000]
Fix mantainer in CMakeLists.txt

Hello,

don't know how the other name slipped in. Perhaps
libftdi@developer.intra2net.com is also a better choice.

13 years agoProper initialisation of interface A.
Vladimir Yakovlev [Thu, 23 Dec 2010 13:05:42 +0000]
Proper initialisation of interface A.

Write correct ftdi->in_ep and others when initialising interface A.
Without it you can not switch back to interface A, after B.
In sequence A-B-A, B stuck forewer.

13 years agoUpdate AUTHORS file
Thomas Jarosch [Thu, 30 Dec 2010 09:13:30 +0000]
Update AUTHORS file

13 years agoProper initialisation of interface A.
Vladimir Yakovlev [Thu, 23 Dec 2010 13:05:42 +0000]
Proper initialisation of interface A.

Write correct ftdi->in_ep and others when initialising interface A.
Without it you can not switch back to interface A, after B.
In sequence A-B-A, B stuck forewer.

13 years agoftdi_eeprom compiles now. Still needs a lot of work
Thomas Jarosch [Sat, 23 Oct 2010 17:38:05 +0000]
ftdi_eeprom compiles now. Still needs a lot of work

13 years agoAdd ftdi_eeprom target (currently disabled). Get version info from CMakeLists.txt
Thomas Jarosch [Sat, 23 Oct 2010 17:26:12 +0000]
Add ftdi_eeprom target (currently disabled). Get version info from CMakeLists.txt

13 years agoImport latest, unchanged ftdi_eeprom source
Thomas Jarosch [Fri, 15 Oct 2010 09:06:05 +0000]
Import latest, unchanged ftdi_eeprom source

Code needs adaption to new eeprom API and we have to check
if it can be replaced/merged with Uwe's new eeprom tool.

-> Not activated in the build process (yet)

13 years agoReformat example code to match libftdi style:
Thomas Jarosch [Mon, 4 Oct 2010 15:49:14 +0000]
Reformat example code to match libftdi style:

/usr/bin/astyle --indent=spaces=4 --indent-switches --brackets=break \
                --convert-tabs --one-line=keep-statements --one-line=keep-blocks \
                $*

13 years agoReformat new eeprom code to match libftdi style:
Thomas Jarosch [Mon, 4 Oct 2010 15:45:23 +0000]
Reformat new eeprom code to match libftdi style:

/usr/bin/astyle --indent=spaces=4 --indent-switches --brackets=break \
                --convert-tabs --one-line=keep-statements --one-line=keep-blocks \
                $*

13 years agoUse API and not direct structure ftdi->eeprom access in eeprom example
Uwe Bonnes [Sat, 2 Oct 2010 15:24:50 +0000]
Use API and not direct structure ftdi->eeprom access in eeprom example

13 years agoEnumerate all handled EEPROM values Provide ftdi_get|set_eeprom_value to access these...
Uwe Bonnes [Sat, 2 Oct 2010 15:24:00 +0000]
Enumerate all handled EEPROM values Provide ftdi_get|set_eeprom_value to access these properties Supply a copy of the EEPROM buffer to the user with ftdi_get_eeprom_buf e.g. for dumping

13 years agoDecode/encode use_usb_version on BM and 2232C
Uwe Bonnes [Sat, 2 Oct 2010 14:33:53 +0000]
Decode/encode use_usb_version on BM and 2232C

13 years agoRename Bit pattern SUSPEND_DBUS7 to SUSPEND_DBUS7_BIT
Uwe Bonnes [Sat, 2 Oct 2010 15:05:38 +0000]
Rename Bit pattern SUSPEND_DBUS7 to SUSPEND_DBUS7_BIT

13 years agoCmake skeleton for ftdi_eeprom build support
Thomas Jarosch [Mon, 27 Sep 2010 16:10:55 +0000]
Cmake skeleton for ftdi_eeprom build support

13 years agoAnother approach to get the examples/streamtest.c print formatting right Thanks to...
Uwe Bonnes [Sun, 26 Sep 2010 16:24:21 +0000]
Another approach to get the examples/streamtest.c print formatting right Thanks to Jim Paris

13 years agoAnother approach to get the examples/streamtest.c print formatting right Thanks to...
Uwe Bonnes [Sun, 26 Sep 2010 16:24:21 +0000]
Another approach to get the examples/streamtest.c print formatting right Thanks to Jim Paris

13 years agoDocument the write option in usage()
Uwe Bonnes [Sat, 25 Sep 2010 14:55:13 +0000]
Document the write option in usage()

13 years agoInclude PnP descriptor in size check
Thomas Jarosch [Fri, 24 Sep 2010 19:32:45 +0000]
Include PnP descriptor in size check

13 years agoUpdate eeprom map as we work in word sizes
Thomas Jarosch [Fri, 24 Sep 2010 18:19:39 +0000]
Update eeprom map as we work in word sizes

13 years agoSimplify and correct user area calculation
Uwe Bonnes [Fri, 24 Sep 2010 15:12:34 +0000]
Simplify and correct user area calculation

13 years agoDon't output PnP options for BM type chips
Thomas Jarosch [Fri, 24 Sep 2010 14:40:57 +0000]
Don't output PnP options for BM type chips

13 years agoDocument the magic 0x02 0x03 0x01 value after the serial string
Thomas Jarosch [Fri, 24 Sep 2010 14:22:48 +0000]
Document the magic 0x02 0x03 0x01 value after the serial string

13 years agoeeprom of BM type chips: Fix trashing of first manufacturer string byte
Thomas Jarosch [Fri, 24 Sep 2010 13:43:21 +0000]
eeprom of BM type chips: Fix trashing of first manufacturer string byte

13 years agoClarify eeprom type values are hex
Thomas Jarosch [Fri, 24 Sep 2010 13:10:32 +0000]
Clarify eeprom type values are hex

13 years agoAdapt user area size calculation to official FTDI formula
Thomas Jarosch [Fri, 24 Sep 2010 13:02:56 +0000]
Adapt user area size calculation to official FTDI formula

13 years agoWe are out of battery power (remove wrong comment)
Thomas Jarosch [Fri, 24 Sep 2010 12:46:58 +0000]
We are out of battery power (remove wrong comment)

13 years agoCorrect small typo
Thomas Jarosch [Fri, 24 Sep 2010 12:22:21 +0000]
Correct small typo

13 years agoBetter variable name for eeprom_size_mask
Thomas Jarosch [Fri, 24 Sep 2010 10:13:19 +0000]
Better variable name for eeprom_size_mask

13 years agoFix wrong comment about standarized USB config descriptor attributes
Thomas Jarosch [Fri, 24 Sep 2010 09:55:57 +0000]
Fix wrong comment about standarized USB config descriptor attributes

13 years agoCosmetic changes
Thomas Jarosch [Fri, 24 Sep 2010 07:48:09 +0000]
Cosmetic changes

13 years agoDocument isochronous transfer mode of FT2232C
Thomas Jarosch [Fri, 24 Sep 2010 07:40:00 +0000]
Document isochronous transfer mode of FT2232C

13 years agoUpdate/verify EEPROM map for BM type chips
Thomas Jarosch [Fri, 24 Sep 2010 07:02:43 +0000]
Update/verify EEPROM map for BM type chips

13 years agoWrite to EEPROM direct when trying to detect EEPROM size
Uwe Bonnes [Fri, 17 Sep 2010 13:15:14 +0000]
Write to EEPROM direct when trying to detect EEPROM size

13 years agoWarn user about missing FT4232H-specific EEPROM settings
Uwe Bonnes [Thu, 16 Sep 2010 09:55:20 +0000]
Warn user about missing FT4232H-specific EEPROM settings

13 years agoexamples/eeprom.c: Remove unused variable
Uwe Bonnes [Thu, 16 Sep 2010 09:49:05 +0000]
examples/eeprom.c: Remove unused variable

13 years agoEEPROM: Add missing closing brace
Uwe Bonnes [Wed, 15 Sep 2010 15:33:39 +0000]
EEPROM: Add missing closing brace

13 years agoEEPROM: Null out buffer after allocation
Uwe Bonnes [Wed, 15 Sep 2010 15:32:48 +0000]
EEPROM: Null out buffer after allocation

13 years agoFT2232H: Handle suspend_pull_downs when encoding
Uwe Bonnes [Wed, 15 Sep 2010 15:31:01 +0000]
FT2232H: Handle suspend_pull_downs when encoding

13 years agoDecoded max_power is in mA and 90 mA for TYPE_R and 100mA else
Uwe Bonnes [Wed, 15 Sep 2010 14:19:53 +0000]
Decoded max_power is in mA and 90 mA for TYPE_R and 100mA else

13 years agoFix decoding of FT(2|4)232H channel A type
Uwe Bonnes [Wed, 15 Sep 2010 11:20:31 +0000]
Fix decoding of FT(2|4)232H channel A type

13 years agoAdd option to write eeprom
Uwe Bonnes [Tue, 14 Sep 2010 15:11:47 +0000]
Add option to write eeprom

13 years agoftdi_write_eeprom_location access to checksum protected area will produce checksum...
Uwe Bonnes [Tue, 14 Sep 2010 15:05:38 +0000]
ftdi_write_eeprom_location access to checksum protected area will produce checksum errors, so check - access is about byte 0xff - eeprom chip is of type 93c66, so high area exists - ftdi device can handle 93c66

13 years agouse_serial is used in all devices beside AM types. So move out of the switch(ftdi...
Uwe Bonnes [Tue, 14 Sep 2010 14:07:56 +0000]
use_serial is used in all devices beside AM types. So move out of the switch(ftdi->type) construct

13 years agomax_power eeprom value is in 2 mA Steps
Uwe Bonnes [Tue, 14 Sep 2010 13:50:54 +0000]
max_power eeprom value is in 2 mA Steps

13 years agoUse the PNP flag as seen with FTD2XX
Uwe Bonnes [Tue, 14 Sep 2010 13:49:55 +0000]
Use the PNP flag as seen with FTD2XX

13 years agoDocument ftdi_eeprom_initdefaults Add return value to ftdi_eeprom_initdefaults
Uwe Bonnes [Tue, 14 Sep 2010 13:21:16 +0000]
Document ftdi_eeprom_initdefaults Add return value to ftdi_eeprom_initdefaults

13 years agoHandle manufacturer/product/serial strings internal Set these string as arguments...
Uwe Bonnes [Tue, 14 Sep 2010 13:11:47 +0000]
Handle manufacturer/product/serial strings internal Set these string as arguments to ftdi_eeprom_build Remove exported function ftdi_eeprom_free

13 years agoProvide internal eeprom structure buffer with internal byte buffer Purge external...
Uwe Bonnes [Tue, 14 Sep 2010 12:46:02 +0000]
Provide internal eeprom structure buffer with internal byte buffer Purge external eeprom structure buffer and eeprom read/write byte buffer from API

13 years agoUse allocated ftdi structure
Uwe Bonnes [Mon, 13 Sep 2010 14:57:32 +0000]
Use allocated ftdi structure

13 years agoInitialize use_defaults
Uwe Bonnes [Fri, 10 Sep 2010 21:20:48 +0000]
Initialize use_defaults

13 years agoCorrect the CBUS decode string arrays
Uwe Bonnes [Fri, 10 Sep 2010 21:20:05 +0000]
Correct the CBUS decode string arrays

13 years agoExample for the EEPROM API
Uwe Bonnes [Fri, 10 Sep 2010 20:54:39 +0000]
Example for the EEPROM API

13 years agoAdd description of EEPROM Structure as decoded by now. Please comment!
Uwe Bonnes [Fri, 10 Sep 2010 20:41:35 +0000]
Add description of EEPROM Structure as decoded by now. Please comment!

13 years agoFix and verbose decode of TYPE_R CBUS functions and pin inversion
Uwe Bonnes [Fri, 10 Sep 2010 20:40:29 +0000]
Fix and verbose decode of TYPE_R CBUS functions and pin inversion

13 years agoRelease values in EEPROM structure are not user changable. Remove it from the ftdi_ee...
Uwe Bonnes [Fri, 10 Sep 2010 19:59:40 +0000]
Release values in EEPROM structure are not user changable. Remove it from the ftdi_eeprom structure

13 years agoCBUS Mus has 0xd as highest number
Uwe Bonnes [Fri, 10 Sep 2010 19:56:07 +0000]
CBUS Mus has 0xd as highest number

13 years agoAdd a lost comment
Uwe Bonnes [Fri, 10 Sep 2010 19:55:36 +0000]
Add a lost comment

13 years agoBuild EEPROM type specific bytes and bites in a switch construct
Uwe Bonnes [Fri, 10 Sep 2010 19:53:20 +0000]
Build EEPROM type specific bytes and bites in a switch construct

13 years agoFix writing the strings
Uwe Bonnes [Fri, 10 Sep 2010 19:47:55 +0000]
Fix writing the strings

13 years agowhen building the eeprom image, use the actual determined eeprom size
Uwe Bonnes [Fri, 10 Sep 2010 19:40:28 +0000]
when building the eeprom image, use the actual determined eeprom size