summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:03:24 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:03:24 +0100
commit0ae97c430f4082e94730a1b220f75db1add65270 (patch)
tree31d018e3989802017935597692af4e9e3d772fd9 /src
parent629c777edf94ddaec78837e614829f8dd346cccd (diff)
downloadads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.tar.gz
ads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.tar.xz
ads1x1x-async-0ae97c430f4082e94730a1b220f75db1add65270.zip
Update docs
Diffstat (limited to 'src')
-rw-r--r--src/interface.rs4
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>>;
}