We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ee20c commit 2d1c5f4Copy full SHA for 2d1c5f4
src/spi.rs
@@ -31,13 +31,18 @@ pub trait FullDuplex<Word> {
31
/// # Notes
32
///
33
/// - It's the task of the user of this interface to manage the slave select lines
34
+///
35
+/// - The slave select line shouldn't be released before the `flush` call succeeds
36
#[cfg(feature = "unproven")]
37
pub trait Send<Word> {
38
/// An enumeration of SPI errors
39
type Error;
40
41
/// Sends a word to the slave
42
fn send(&mut self, word: Word) -> nb::Result<(), Self::Error>;
43
+
44
+ /// Ensures that none of the previously written words are still buffered
45
+ fn flush(&mut self) -> nb::Result<(), Self::Error>;
46
}
47
48
/// Write (master mode)
0 commit comments