File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ extern crate i2cdev;
10
10
extern crate docopt;
11
11
12
12
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
13
- use i2cdev:: core:: { I2CBus , I2CMessage } ;
13
+ use i2cdev:: core:: { I2CTransfer , I2CMessage } ;
14
14
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
15
15
use i2cdev:: linux:: { LinuxI2CBus , LinuxI2CMessage } ;
16
16
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ pub trait I2CDevice {
123
123
///
124
124
/// Typical implementations will store state with references to the bus
125
125
/// in use. The trait is based on the Linux i2cdev interface.
126
- pub trait I2CBus < ' a > {
126
+ pub trait I2CTransfer < ' a > {
127
127
type Error : Error ;
128
128
type Message : I2CMessage < ' a > ;
129
129
Original file line number Diff line number Diff line change 7
7
// except according to those terms.
8
8
9
9
use ffi;
10
- use core:: { I2CDevice , I2CBus } ;
10
+ use core:: { I2CDevice , I2CTransfer } ;
11
11
use std:: error:: Error ;
12
12
use std:: path:: Path ;
13
13
use std:: fs:: File ;
@@ -253,7 +253,7 @@ impl LinuxI2CBus {
253
253
/// Linux I2C message
254
254
pub type LinuxI2CMessage < ' a > = ffi:: i2c_msg ;
255
255
256
- impl < ' a > I2CBus < ' a > for LinuxI2CBus {
256
+ impl < ' a > I2CTransfer < ' a > for LinuxI2CBus {
257
257
type Error = LinuxI2CError ;
258
258
type Message = LinuxI2CMessage < ' a > ;
259
259
You can’t perform that action at this time.
0 commit comments