9 Commits

Author SHA1 Message Date
Wilfried Chauveau
2d475b80d9
Add IntoIterator trait bound on Future trait's parameter
The parameter is also renamed from `U` to `V` to avoid confusion with the
type parameter `U` from the `write_iter` function that follows.
2021-10-29 20:37:00 +01:00
Wilfried Chauveau
4d75035098
Add the embassy_traits::i2c::WriteIter trait
This trait makes the parallel with `embedded_hal::i2c::WriteIter`.

It allows to fetch bytes to write from an Iterator rather than requiring
an allocation for an array.

It is provided as an extra Trait to avoid breaking existing implementations
of `embassy_traits::i2c::I2c`.
2021-10-29 12:34:49 +01:00
Folkert
857ac3386b nrf async twim 2021-06-04 17:31:35 +02:00
Dario Nieuwenhuis
f292647066 Remove Pin from I2c 2021-04-14 17:04:40 +02:00
Dario Nieuwenhuis
3fcecd076b Rename i2c trait 2021-03-15 00:22:17 +01:00
xoviat
9497d6c68a add write_read 2021-03-05 21:30:39 -06:00
xoviat
7a46e66298 revise i2c trait 2021-03-05 21:19:56 -06:00
xoviat
a3a36517bd update i2c trait 2021-03-03 09:29:18 -06:00
xoviat
492f7aeea6 add i2c trait 2021-03-02 15:09:47 -06:00