Skip to content

Commit 87eaaa5

Browse files
committed
Fix spi transfer struct naming
Signed-off-by: Moritz Scheuren <[email protected]>
1 parent fbdeb92 commit 87eaaa5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/spi.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ where
103103
dma_tx: &dma::Handle<<Tx<I> as dma::Target>::Instance, state::Enabled>,
104104
rx: <Rx<I> as dma::Target>::Stream,
105105
tx: <Tx<I> as dma::Target>::Stream,
106-
) -> transfer<Word, I, P, B, Rx<I>, Tx<I>, dma::Ready>
106+
) -> Transfer<Word, I, P, B, Rx<I>, Tx<I>, dma::Ready>
107107
where
108108
Rx<I>: dma::Target,
109109
Tx<I>: dma::Target,
@@ -163,7 +163,7 @@ where
163163
)
164164
};
165165

166-
transfer {
166+
Transfer {
167167
buffer,
168168
target: self,
169169

@@ -629,7 +629,7 @@ pub struct Tx<I>(PhantomData<I>);
629629
/// Since DMA can send and receive at the same time, using two DMA transfers and
630630
/// two DMA streams, we need this type to represent this operation and wrap the
631631
/// underlying [`dma::Transfer`] instances.
632-
pub struct transfer<Word: SupportedWordSize, I, P, Buffer, Rx: dma::Target, Tx: dma::Target, State>
632+
pub struct Transfer<Word: SupportedWordSize, I, P, Buffer, Rx: dma::Target, Tx: dma::Target, State>
633633
{
634634
buffer: Pin<Buffer>,
635635
target: Spi<I, P, Enabled<Word>>,
@@ -638,7 +638,7 @@ pub struct transfer<Word: SupportedWordSize, I, P, Buffer, Rx: dma::Target, Tx:
638638
_state: State,
639639
}
640640

641-
impl<Word, I, P, Buffer, Rx, Tx> transfer<Word, I, P, Buffer, Rx, Tx, dma::Ready>
641+
impl<Word, I, P, Buffer, Rx, Tx> Transfer<Word, I, P, Buffer, Rx, Tx, dma::Ready>
642642
where
643643
Rx: dma::Target,
644644
Tx: dma::Target,
@@ -667,8 +667,8 @@ where
667667
self,
668668
rx_handle: &dma::Handle<Rx::Instance, state::Enabled>,
669669
tx_handle: &dma::Handle<Tx::Instance, state::Enabled>,
670-
) -> transfer<Word, I, P, Buffer, Rx, Tx, dma::Started> {
671-
transfer {
670+
) -> Transfer<Word, I, P, Buffer, Rx, Tx, dma::Started> {
671+
Transfer {
672672
buffer: self.buffer,
673673
target: self.target,
674674
rx: self.rx.start(rx_handle),
@@ -678,7 +678,7 @@ where
678678
}
679679
}
680680

681-
impl<Word, I, P, Buffer, Rx, Tx> transfer<Word, I, P, Buffer, Rx, Tx, dma::Started>
681+
impl<Word, I, P, Buffer, Rx, Tx> Transfer<Word, I, P, Buffer, Rx, Tx, dma::Started>
682682
where
683683
Rx: dma::Target,
684684
Tx: dma::Target,

0 commit comments

Comments
 (0)