From b972e13b0d279170573cc19d02b3f13ef2478676 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:09:49 +0100 Subject: Add support for ADS1114 --- src/devices/construction/i2c.rs | 1 + src/devices/ic.rs | 2 ++ src/lib.rs | 1 + 3 files changed, 4 insertions(+) (limited to 'src') 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)] -- cgit v1.2.3-54-g00ecf