Open JohnTheCoolingFan opened 1 year ago
Transactions should build on top of the existing read/write implementations, so this should be straight forward to implement.
related changes in embedded-hal upstream: 8b984d299a1926350d52fa2645a84190ef025dbe
@MabezDev i can try to implement the trait, though it backs the question if we should actively implement e-hal_02 traits for backwards comparability (where there were not already implemented before), or should wait for the drivers themself to implement the current traits. How do you guys handle this in no_std?
How do you guys handle this in no_std?
We implement both where possible, but I don't think its a super strict rule. For example, we don't implement any of the transaction stuff for i2c in the no_std hals currently.
Some libraries (for example, pn532) rely on implementation of i2c::Transactional from embedded_hal.