Skip to content

Commit 4e344d9

Browse files
committed
Added ManagedCS marker trait, per rust-embedded#180
1 parent f88ddc5 commit 4e344d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/blocking/spi.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ pub trait WriteIter<W> {
2929
WI: IntoIterator<Item = W>;
3030
}
3131

32+
/// ManagedCS marker trait specifies that all `spi` operations will be preceded by
33+
/// asserting the CS pin, and followed by de-asserting the CS pin.
34+
///
35+
/// TODO: document wrappers that can be used where this is required
36+
pub trait ManagedCs {}
37+
3238
/// Blocking transfer
3339
pub mod transfer {
3440
/// Default implementation of `blocking::spi::Transfer<W>` for implementers of

0 commit comments

Comments
 (0)