diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-21 08:03:24 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-21 08:03:24 +0100 |
commit | 0ae97c430f4082e94730a1b220f75db1add65270 (patch) | |
tree | 31d018e3989802017935597692af4e9e3d772fd9 | |
parent | 629c777edf94ddaec78837e614829f8dd346cccd (diff) | |
download | ads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.tar.gz ads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.tar.xz ads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.zip |
Update docs
-rw-r--r-- | src/interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface.rs b/src/interface.rs index 3b42182..f93c680 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -16,7 +16,7 @@ pub struct I2cInterface<I2C> { pub trait WriteData : private::Sealed { /// Error type type Error; - /// Write to an u8 register + /// Write to an u16 register fn write_register(&mut self, register: u8, data: u16) -> Result<(), Error<Self::Error>>; } @@ -37,7 +37,7 @@ where pub trait ReadData : private::Sealed { /// Error type type Error; - /// Read an u8 register + /// Read an u16 register fn read_register(&mut self, register: u8) -> Result<u16, Error<Self::Error>>; } |