[Proposal] I2S traits - take 2 #385
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(This was all done and discussed in #204 but this crate continued its evolution before the merge. Here I just adapted the traits to how we do things now: 1 blocking trait with all methods, no
nb
variant as that will be deprecated eventually.The proof implementations need to be adapted (sorry!) but this should be pretty easy)
I added some I2S traits to kick off the discussion started in #203.
The traits accept two words for left and right and are otherwise similar to SPI as of the 0.2.x version.
An interleaved version can be found in the
i2s-interleaved
branch. There the data should be passed interleaved. e.g.[left0,right0,left1,right1,...]
A version of these traits for the embedded-hal 0.2.x version can be found in the
i2s-v0.2.x
branch.There is another MCU implementation in
stm32f4xx-hal
TODO:
Thoughts?
cc. @maxekman @samcrow @YruamaLairba