summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-07 20:21:18 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-07 20:21:18 +0100
commit42cc99c1835ff2838a25218ae57e47649846af9d (patch)
tree4282fe03896f200c1502634914d0891080974541 /src/lib.rs
parent41325641f087f6e01e31d7d5bd741becf0154e77 (diff)
downloadads1x1x-async-42cc99c1835ff2838a25218ae57e47649846af9d.tar.gz
ads1x1x-async-42cc99c1835ff2838a25218ae57e47649846af9d.tar.xz
ads1x1x-async-42cc99c1835ff2838a25218ae57e47649846af9d.zip
Change interface to handle registers as u16
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a141840..ea9a383 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -159,6 +159,10 @@ pub use devices::channel;
mod private {
pub trait Sealed {}
+
+ impl<I2C> Sealed for super::interface::I2cInterface<I2C> {}
+ impl<SPI, CS> Sealed for super::interface::SpiInterface<SPI, CS> {}
+
impl Sealed for super::devices::ic::Ads1013 {}
impl Sealed for super::devices::ic::Ads1113 {}
}