File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -535,12 +535,12 @@ macro_rules! i2c {
535535 } )
536536 }
537537
538- fn read ( & mut self , buf: & mut [ u8 ] ) -> Result <( ) , Self :: Error > {
538+ fn rx ( & mut self , buf: & mut [ u8 ] ) -> Result <( ) , Self :: Error > {
539539 self . slave_sbc( false ) ;
540540 self . slave_read( buf)
541541 }
542542
543- fn write ( & mut self , buf: & [ u8 ] ) -> Result <( ) , Self :: Error > {
543+ fn tx ( & mut self , buf: & [ u8 ] ) -> Result <( ) , Self :: Error > {
544544 self . slave_sbc( true ) ;
545545 self . slave_write( buf)
546546 }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ pub trait I2cPeripheral {
134134 type Error ;
135135
136136 fn poll ( & mut self ) -> Result < Option < I2cPeripheralEvent > , Self :: Error > ;
137- fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > ;
138- fn write ( & mut self , buf : & [ u8 ] ) -> Result < ( ) , Self :: Error > ;
137+ fn rx ( & mut self , buf : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > ;
138+ fn tx ( & mut self , buf : & [ u8 ] ) -> Result < ( ) , Self :: Error > ;
139139 fn flush ( & mut self ) -> Result < ( ) , Self :: Error > ;
140140}
You can’t perform that action at this time.
0 commit comments