-
Notifications
You must be signed in to change notification settings - Fork 185
Impl Read<u8> / Write<u8> for Serial #167
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
Comments
I don't believe there is an underlying reason, it's just that nobody has gotten around do doing it yet :) |
Hm, I tried to implement it, but I realized that for this struct:
...the Read / Write traits cannot be implemented, as it is not known how to get to the pin types from the generic One workaround would be to implement The better solution in my eyes would be to replace the |
Sounds like a good idea. We have breaking changes all the time 😉 |
Is there a reason why Read / Write is only implemented for
Rx
andTx
(obtainable viasplit()
) but not on theSerial
type directly?Other HALs like the stm32f4xx-hal have such impls.
I'm working with a driver that wants a
Read<u8> + Write<u8>
type and I don't want to create a wrapper type with my own impl if not necessary 🙂The text was updated successfully, but these errors were encountered: