-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding missing functions #58
Adding missing functions #58
Conversation
high level functions LibFTD2XX.
@anders-jakobsson thank you for this PR, these additions are certainly very useful for hardware interfacing. I will review when I'm back in front of hardware. @ReubenHill would you also be able to have a look over this? |
@anders-jakobsson this isn't passing CI (nor local tests) because of a missing definition of I don't mind a bit more whitespace but would prefer we don't go beyond two newlines as this is a reasonable balance between readability and navigability. Otherwise looks good - will push changes to this branch shortly. |
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
==========================================
- Coverage 68.53% 60.26% -8.28%
==========================================
Files 3 3
Lines 232 307 +75
==========================================
+ Hits 159 185 +26
- Misses 73 122 +49
Continue to review full report at Codecov.
|
Interestingly, it did. That's strange. Only test that fails for me is the "locid==0 on windows" assertion, but that's a separate issue. |
…g to open by dito in hardware test
…g to open by dito in hardware test
Changes have been implemented. Also noticed that under Linux, at least for my device, no serial number is returned. This caused test failures so I conditioned the open-by tests in both wrapper and libftd2xx. This assumes that the error lies in the driver/device, not the julia wrapper, which seems reasonable. Please have a new look. |
Thanks @anders-jakobsson, any comments @ReubenHill ? |
I will do something about the coverage. I'm just hoping for everything else to get squared away first. |
@anders-jakobsson improved test coverage is of course nice, but it's really tricky to make it meaningful for a package like whit which involves interfacing with hardware. I'd like @ReubenHill to have a look over this before merge, but it otherwise looks good to me. |
Thanks @anders-jakobsson will push a version to the registry shortly |
Sorry for not having responded sooner. I appear to have inadvertently switched off github's email alerts for this repo so only just saw all this. I see this has already been merged but will add some comments anyway:
Otherwise thanks very much for your contribution @anders-jakobsson ! |
This PR adds all the cross-platform functionality that was missing from Wrapper, enabling MPSSE functionality for supported hardware. High level functions have also been added to LibFTD2XX. Tests are included for all added functions where it seemed meaningful, however, the FT_SetFlowControl hardware test could probably be expanded upon. Tests have been run against an FT4232H device on Windows 10.
I also threw in some extra blank lines between functions for enhanced readability, I hope you don't mind.
Disclaimer: I'm not a programmer by trade, and fairly new to Julia. This is also my first ever pull request. All in all you might want to check my additions extra carefully.
// Anders Jakobsson