Document implicit assumption about the blocking behaviour of the calls

This commit is contained in:
David Sawatzke
2019-01-03 15:56:01 +01:00
committed by David Sawatzke
parent c4a8eb7b84
commit ce8a7b9729

View File

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