-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
542: Transactional I2C r=burrbull a=SpeedCrash100 A transactional HAL API implementation for I2C. Closes #445. I have to rework i2c code to implement this: * `prepare_read`, `prepare_write` - methods to send start and address only * `write_wo_prepare`, `read_wo_prepare` - methods like old `read`, `write` but they do not send start and address. * `read_bytes`, `write_bytes` - this methods now only for send/receive. The do not send start, stop or address. * All public api's behaviour is untouched so there are no breaking changes for users. Note: I have to create duplicate methods `transaction_slice` and `transaction` because `Operation` doesn't implement Clone to send slice as iterator. Co-authored-by: SpeedCrash100 <[email protected]>
- Loading branch information
Showing
3 changed files
with
164 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters