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 {
535
535
} )
536
536
}
537
537
538
- fn read ( & mut self , buf: & mut [ u8 ] ) -> Result <( ) , Self :: Error > {
538
+ fn rx ( & mut self , buf: & mut [ u8 ] ) -> Result <( ) , Self :: Error > {
539
539
self . slave_sbc( false ) ;
540
540
self . slave_read( buf)
541
541
}
542
542
543
- fn write ( & mut self , buf: & [ u8 ] ) -> Result <( ) , Self :: Error > {
543
+ fn tx ( & mut self , buf: & [ u8 ] ) -> Result <( ) , Self :: Error > {
544
544
self . slave_sbc( true ) ;
545
545
self . slave_write( buf)
546
546
}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ pub trait I2cPeripheral {
134
134
type Error ;
135
135
136
136
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 > ;
139
139
fn flush ( & mut self ) -> Result < ( ) , Self :: Error > ;
140
140
}
You can’t perform that action at this time.
0 commit comments