FTDI Community

General Category => Discussion - Software => Topic started by: ffred on June 06, 2022, 07:05:37 AM

Title: LibFT260: unclear doc for Get & Clean InterruptFlag functions..
Post by: ffred on June 06, 2022, 07:05:37 AM
Hi,
the documentation is nearly the same for the two functions FT260_GetInterruptFlag & FT260_CleanInterruptFlag. they're defined the same way, with the same parameters.
the only difference is the "summary" : get interrupt flag for one and clean the interrupt flag for the other, but they both got the same pbFlag parameter.
could be nice to have more explanation about that.

it's clear that with FT260_GetInterruptFlag we can read the interrupt flag and probably it's not reset after that.
but can I imagine that FT260_CleanInterruptFlag also read the interrupt flag AND reset it..??
if not, what is the pbFlag for ?

you should add a few words to FT260_CleanInterruptFlag summary to make things clearer...

thanks.
ffred
Title: Re: LibFT260: unclear doc for Get & Clean InterruptFlag functions..
Post by: ffred on June 12, 2022, 01:28:33 PM
to everyone interested, I got a reply by mail :

I have got confirmation:
FT260_GetInterruptFlag reads but leaves the flags set and FT260_CleanInterruptFlag reads but also clears the flags.