summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:09:49 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:09:49 +0100
commitb972e13b0d279170573cc19d02b3f13ef2478676 (patch)
tree880d6ada52234763b59403643f6c31df5be158f2 /src
parentdf30ade977dceef79b69fa8d7fe193bcc23d35c3 (diff)
downloadads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.tar.gz
ads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.tar.xz
ads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.zip
Add support for ADS1114
Diffstat (limited to 'src')
-rw-r--r--src/devices/construction/i2c.rs1
-rw-r--r--src/devices/ic.rs2
-rw-r--r--src/lib.rs1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/construction/i2c.rs b/src/devices/construction/i2c.rs
index 7e3d1f9..fa49963 100644
--- a/src/devices/construction/i2c.rs
+++ b/src/devices/construction/i2c.rs
@@ -40,3 +40,4 @@ macro_rules! impl_new_destroy {
impl_new_destroy!(Ads1013, new_ads1013, destroy_ads1013);
impl_new_destroy!(Ads1113, new_ads1113, destroy_ads1113);
impl_new_destroy!(Ads1014, new_ads1014, destroy_ads1014);
+impl_new_destroy!(Ads1114, new_ads1114, destroy_ads1114);
diff --git a/src/devices/ic.rs b/src/devices/ic.rs
index e6e9d16..2292361 100644
--- a/src/devices/ic.rs
+++ b/src/devices/ic.rs
@@ -22,6 +22,7 @@ macro_rules! ic_marker {
ic_marker!(Ads1013, _12);
ic_marker!(Ads1113, _16);
ic_marker!(Ads1014, _12);
+ic_marker!(Ads1114, _16);
pub trait Tier2Features : super::private::Sealed { }
@@ -32,3 +33,4 @@ macro_rules! tier2_features {
}
tier2_features!(Ads1014);
+tier2_features!(Ads1114);
diff --git a/src/lib.rs b/src/lib.rs
index a35f8f7..f7fc67f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -213,6 +213,7 @@ mod private {
impl Sealed for ic::Ads1013 {}
impl Sealed for ic::Ads1113 {}
impl Sealed for ic::Ads1014 {}
+ impl Sealed for ic::Ads1114 {}
}
#[cfg(test)]