summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:06:04 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:06:04 +0100
commit3b8dcf32a8ed30f9e2cd305d2fd8b1e53e0150a4 (patch)
tree3bf4cf6ff3caff999c953df8a2b09f3c8c0274ca /src
parent4f0445cb5de68a82d26ff981a0f3d0b72b0cd418 (diff)
downloadads1x1x-async-3b8dcf32a8ed30f9e2cd305d2fd8b1e53e0150a4.tar.gz
ads1x1x-async-3b8dcf32a8ed30f9e2cd305d2fd8b1e53e0150a4.tar.xz
ads1x1x-async-3b8dcf32a8ed30f9e2cd305d2fd8b1e53e0150a4.zip
Add support for ADS1014
Diffstat (limited to 'src')
-rw-r--r--src/devices/construction/i2c.rs3
-rw-r--r--src/devices/ic.rs1
-rw-r--r--src/lib.rs1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/construction/i2c.rs b/src/devices/construction/i2c.rs
index 900a5fe..7e3d1f9 100644
--- a/src/devices/construction/i2c.rs
+++ b/src/devices/construction/i2c.rs
@@ -38,4 +38,5 @@ macro_rules! impl_new_destroy {
}
impl_new_destroy!(Ads1013, new_ads1013, destroy_ads1013);
-impl_new_destroy!(Ads1113, new_ads1113, destroy_ads1113); \ No newline at end of file
+impl_new_destroy!(Ads1113, new_ads1113, destroy_ads1113);
+impl_new_destroy!(Ads1014, new_ads1014, destroy_ads1014);
diff --git a/src/devices/ic.rs b/src/devices/ic.rs
index 81c8e44..95eb8bd 100644
--- a/src/devices/ic.rs
+++ b/src/devices/ic.rs
@@ -21,3 +21,4 @@ macro_rules! ic_marker {
ic_marker!(Ads1013, _12);
ic_marker!(Ads1113, _16);
+ic_marker!(Ads1014, _12);
diff --git a/src/lib.rs b/src/lib.rs
index adbd128..5d4c3fa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -193,6 +193,7 @@ mod private {
impl Sealed for ic::Ads1013 {}
impl Sealed for ic::Ads1113 {}
+ impl Sealed for ic::Ads1014 {}
}
#[cfg(test)]