Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ftdi_set_bitmode() and ftdi_set_baudrate() ordering #94

Open
trosenkranz opened this issue Aug 1, 2022 · 2 comments
Open

Wrong ftdi_set_bitmode() and ftdi_set_baudrate() ordering #94

trosenkranz opened this issue Aug 1, 2022 · 2 comments

Comments

@trosenkranz
Copy link

Hi Bill,

while trying to understand how the InfiniteNoise driver works, I found that the ftdi_set_baudrate()-method in libftdi applies a factor of 4 to the set baudrate when bitbang-mode is enabled (cf. libftdi-repository). So in my understanding the driver first has to call ftdi_set_bitmode() and then ftdi_set_baudrate().

Currently in the code first the ftdi_set_baudrate() and then the ftdi_set_bitmode()-method is called.

Am I missing something?

Tobias

@waywardgeek
Copy link
Owner

waywardgeek commented Aug 2, 2022 via email

@trosenkranz
Copy link
Author

So am I right to assume, that the clock rate for reading/writing is 30kHz? If yes, this issue can be closed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants