libftdi Archives

Subject: Re: [PATCH] Fixed purge & added purge_test.c; Fixed C++ bit-or's & const.

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx, "Eric L. Schott" <els6@xxxxxxx>
Date: Tue, 23 May 2017 21:19:45 +0200
Hello Eric,

>>> -#define SIO_RESET_PURGE_RX 1
>>> -#define SIO_RESET_PURGE_TX 2
>>> +#define SIO_RESET_PURGE_TX 1
>>> +#define SIO_RESET_PURGE_RX 2

I've downloaded the d2xx driver from FTDI for the first time
and checked their header file: PURGE_RX is 1, PURGE_TX is 2.
So it's identical to libftdi.

FT_Purge() also behaves the same as libftdi,
at least as far as I can tell.

So I'm rather inclined to change the current behavior
as it might cause breakage for existing users of the lib.

If you are curious, you could also download the d2xx library
for your platform and experiment with the FT_Purge() function.

Cheers,
Thomas

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

Current Thread