Skip to content

Commit bbd5803

Browse files
authored
Merge pull request #622 from nhpupu/i2c-clarification
Clarify I2C transaction contract for NACK behavior
2 parents 987dc68 + 64d8227 commit bbd5803

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

embedded-hal-async/src/i2c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub trait I2c<A: AddressMode = SevenBitAddress>: ErrorType {
112112
/// - Data from adjacent operations of the same type are sent after each other without an SP or SR.
113113
/// - Between adjacent operations of a different type an SR and SAD+R/W is sent.
114114
/// - After executing the last operation an SP is sent automatically.
115-
/// - If the last operation is a `Read` the master does not send an acknowledge for the last byte.
115+
/// - At the end of each read operation (before SP or SR), the master does not send an acknowledge for the last byte.
116116
///
117117
/// - `ST` = start condition
118118
/// - `SAD+R/W` = slave address followed by bit 1 to indicate reading or 0 to indicate writing

embedded-hal/src/i2c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ pub trait I2c<A: AddressMode = SevenBitAddress>: ErrorType {
392392
/// - Data from adjacent operations of the same type are sent after each other without an SP or SR.
393393
/// - Between adjacent operations of a different type an SR and SAD+R/W is sent.
394394
/// - After executing the last operation an SP is sent automatically.
395-
/// - If the last operation is a `Read` the master does not send an acknowledge for the last byte.
395+
/// - At the end of each read operation (before SP or SR), the master does not send an acknowledge for the last byte.
396396
///
397397
/// - `ST` = start condition
398398
/// - `SAD+R/W` = slave address followed by bit 1 to indicate reading or 0 to indicate writing

0 commit comments

Comments
 (0)