@@ -70,7 +70,7 @@ pub enum Operation<'a, W: 'static + Copy = u8> {
70
70
/// Write data out while reading data into the provided buffer
71
71
Transfer ( & ' a mut [ W ] , & ' a [ W ] ) ,
72
72
/// Write data out while reading data into the provided buffer
73
- TransferInplace ( & ' a mut [ W ] ) ,
73
+ TransferInPlace ( & ' a mut [ W ] ) ,
74
74
}
75
75
76
76
/// Blocking read-write SPI
@@ -88,7 +88,7 @@ pub trait ReadWrite<W: Copy = u8>: Read<W> + Write<W> {
88
88
/// Writes and reads simultaneously. The contents of `words` are
89
89
/// written to the slave, and the received words are stored into the same
90
90
/// `words` buffer, overwriting it.
91
- fn transfer_inplace ( & mut self , words : & mut [ W ] ) -> Result < ( ) , Self :: Error > ;
91
+ fn transfer_in_place ( & mut self , words : & mut [ W ] ) -> Result < ( ) , Self :: Error > ;
92
92
93
93
/// Execute multiple actions as part of a single SPI transaction
94
94
fn batch < ' a > ( & mut self , operations : & mut [ Operation < ' a , W > ] ) -> Result < ( ) , Self :: Error > ;
@@ -99,8 +99,8 @@ impl<T: ReadWrite<W>, W: Copy> ReadWrite<W> for &mut T {
99
99
T :: transfer ( self , read, write)
100
100
}
101
101
102
- fn transfer_inplace ( & mut self , words : & mut [ W ] ) -> Result < ( ) , Self :: Error > {
103
- T :: transfer_inplace ( self , words)
102
+ fn transfer_in_place ( & mut self , words : & mut [ W ] ) -> Result < ( ) , Self :: Error > {
103
+ T :: transfer_in_place ( self , words)
104
104
}
105
105
106
106
fn batch < ' a > ( & mut self , operations : & mut [ Operation < ' a , W > ] ) -> Result < ( ) , Self :: Error > {
0 commit comments