diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:09:49 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:09:49 +0100 |
commit | b972e13b0d279170573cc19d02b3f13ef2478676 (patch) | |
tree | 880d6ada52234763b59403643f6c31df5be158f2 | |
parent | df30ade977dceef79b69fa8d7fe193bcc23d35c3 (diff) | |
download | ads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.tar.gz ads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.tar.xz ads1x1x-async-b972e13b0d279170573cc19d02b3f13ef2478676.zip |
Add support for ADS1114
-rw-r--r-- | src/devices/construction/i2c.rs | 1 | ||||
-rw-r--r-- | src/devices/ic.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 1 |
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); @@ -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)] |