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 6c9f380 commit 5842633Copy full SHA for 5842633
embedded-hal-async/src/spi.rs
@@ -160,6 +160,10 @@ pub unsafe trait SpiDevice: ErrorType {
160
161
/// Perform a transaction against the device.
162
///
163
+ /// **NOTE:**
164
+ /// It is not recommended to use this method directly, because it requires `unsafe` code to dereference the raw pointer.
165
+ /// Instead, the [`transaction!`] macro should be used, which handles this safely inside the macro.
166
+ ///
167
/// - Locks the bus
168
/// - Asserts the CS (Chip Select) pin.
169
/// - Calls `f` with an exclusive reference to the bus, which can then be used to do transfers against the device.
0 commit comments