We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5cdf33 commit 7662eadCopy full SHA for 7662ead
src/spi/blocking.rs
@@ -195,6 +195,9 @@ pub trait SpiDevice: ErrorType {
195
/// The locking mechanism is implementation-defined. The only requirement is it must prevent two
196
/// transactions from executing concurrently against the same bus. Examples of implementations are:
197
/// critical sections, blocking mutexes, returning an error or panicking if the bus is already busy.
198
+ ///
199
+ /// On bus errors the implementation should try to deassert CS.
200
+ /// If an error occurs while deasserting CS the bus error should take priority as the return value.
201
fn transaction<R>(
202
&mut self,
203
f: impl FnOnce(&mut Self::Bus) -> Result<R, <Self::Bus as ErrorType>::Error>,
0 commit comments