@@ -202,7 +202,7 @@ where
202
202
self . 0 . rxd . amount . read ( ) . bits ( )
203
203
}
204
204
205
- /// Checks if RX buffer overflow was detected, and prevented .
205
+ /// Checks if RX buffer overflow was detected.
206
206
#[ inline( always) ]
207
207
pub fn is_overflow ( & self ) -> bool {
208
208
self . 0 . errorsrc . read ( ) . overflow ( ) . bit ( )
@@ -214,7 +214,7 @@ where
214
214
self . 0 . errorsrc . read ( ) . dnack ( ) . bit ( )
215
215
}
216
216
217
- /// Checks if TX buffer over-read was detected, and prevented .
217
+ /// Checks if TX buffer over-read was detected and ORC was clocked out .
218
218
#[ inline( always) ]
219
219
pub fn is_overread ( & self ) -> bool {
220
220
self . 0 . errorsrc . read ( ) . overread ( ) . bit ( )
@@ -397,8 +397,7 @@ where
397
397
398
398
/// Receives data into the given `buffer`. Buffer must be located in RAM.
399
399
/// Returns a value that represents the in-progress DMA transfer.
400
- #[ allow( unused_mut) ]
401
- pub fn rx < W , B > ( mut self , mut buffer : B ) -> Result < Transfer < T , B > , Error >
400
+ pub fn rx < W , B > ( self , mut buffer : B ) -> Result < Transfer < T , B > , Error >
402
401
where
403
402
B : WriteBuffer < Word = W > + ' static ,
404
403
{
@@ -425,8 +424,7 @@ where
425
424
426
425
/// Transmits data from the given `buffer`. Buffer must be located in RAM.
427
426
/// Returns a value that represents the in-progress DMA transfer.
428
- #[ allow( unused_mut) ]
429
- pub fn tx < W , B > ( mut self , buffer : B ) -> Result < Transfer < T , B > , Error >
427
+ pub fn tx < W , B > ( self , buffer : B ) -> Result < Transfer < T , B > , Error >
430
428
where
431
429
B : ReadBuffer < Word = W > + ' static ,
432
430
{
0 commit comments