Skip to content

Commit

Permalink
Merge pull request #562 from jr-oss/fix_spi_transfer_doc
Browse files Browse the repository at this point in the history
Commit b6764ec replaced closures by operations. Update documentation…
  • Loading branch information
MabezDev authored Dec 30, 2023
2 parents 208f028 + 74ca5ae commit 0dec059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedded-hal-async/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub trait SpiDevice<Word: Copy + 'static = u8>: ErrorType {

/// Do a transfer within a transaction.
///
/// This is a convenience method equivalent to `device.transaction(|bus| bus.transfer(read, write))`.
/// This is a convenience method equivalent to `device.transaction(&mut [Operation::Transfer(read, write)])`.
///
/// See also: [`SpiDevice::transaction`], [`SpiBus::transfer`]
#[inline]
Expand All @@ -64,7 +64,7 @@ pub trait SpiDevice<Word: Copy + 'static = u8>: ErrorType {

/// Do an in-place transfer within a transaction.
///
/// This is a convenience method equivalent to `device.transaction(|bus| bus.transfer_in_place(buf))`.
/// This is a convenience method equivalent to `device.transaction(&mut [Operation::TransferInPlace(buf)])`.
///
/// See also: [`SpiDevice::transaction`], [`SpiBus::transfer_in_place`]
#[inline]
Expand Down

0 comments on commit 0dec059

Please sign in to comment.