Skip to content

Commit 32125c0

Browse files
Document implicit assumption about the blocking behaviour of the calls
1 parent b7567f3 commit 32125c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spi.rs

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ use nb;
1313
/// - `read` calls only return the data received with the last `send` call.
1414
/// Previously received data is discarded
1515
///
16+
/// - Data is only guaranteed to be clocked out when the read call succeeds.
17+
/// The slave select line shouldn't be released before that.
18+
///
1619
/// - Some SPIs can work with 8-bit *and* 16-bit words. You can overload this trait with different
1720
/// `Word` types to allow operation in both modes.
1821
pub trait FullDuplex<Word> {

0 commit comments

Comments
 (0)