-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Read and Write Traits not implemented #60
Comments
It has been a while since I wrote this, I think the reason was that the libft2xx error type does not cleanly convert into Happy to accept a pull-request if you want to implement it! |
I would still like to keep the existing methods though, the libft2xx errror codes are useful when asking for support from the vendor. |
I see, that makes sense. For now in my application I am working with
as a quick work-around. What do you think about a solution where |
Also turns out I was wrong, for |
The libftd2xx documentation does not mention how |
Just to make sure you have seen it, there is another crate that uses the open source |
Yes I need to support Windows as well as Linux unfortunately :) (by the way @newAM do you know if it is possible to statically compile this library from Linux for a Windows target? |
In my wrapper type I have indeed left the
This has been working without an issue so far. |
I think this is a bug, I took a look and cross-compiling for Windows from Linux uses Working on it here: ftdi-rs/libftd2xx-ffi#57 |
Yup, that was the problem (for that specific error), good find! Will get a release of libftd2xx-ffi out shortly. |
For linking I found this guide from bevy: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html Worked for me after that. |
Implementing these traits would take no effort as far I can see (since there are already functions called
read
andwrite
which is all that is needed) but allow the ftdi struct to be directly used in useful structures likeBufReader
orBufWriter
etc.Is there a specific reason why this is not implemented?
The text was updated successfully, but these errors were encountered: