diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 06:13:27 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 06:13:27 +0100 |
commit | 7864c3d33ec00fe43ed0ed99bb6aea4d688b3e42 (patch) | |
tree | 2f259d8d59fe489043a6440b50854c743bf1bc31 /src | |
parent | e8a9f188fab6e4c4a4742718ae5032ab7717a747 (diff) | |
download | ads1x1x-async-7864c3d33ec00fe43ed0ed99bb6aea4d688b3e42.tar.gz ads1x1x-async-7864c3d33ec00fe43ed0ed99bb6aea4d688b3e42.tar.xz ads1x1x-async-7864c3d33ec00fe43ed0ed99bb6aea4d688b3e42.zip |
Add support for ADS1015 and ADS1115 devices
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/construction/i2c.rs | 2 | ||||
-rw-r--r-- | src/devices/ic.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/construction/i2c.rs b/src/devices/construction/i2c.rs index d4b1a47..9ef18eb 100644 --- a/src/devices/construction/i2c.rs +++ b/src/devices/construction/i2c.rs @@ -41,3 +41,5 @@ 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); +impl_new_destroy!(Ads1015, new_ads1015, destroy_ads1015); +impl_new_destroy!(Ads1115, new_ads1115, destroy_ads1115); diff --git a/src/devices/ic.rs b/src/devices/ic.rs index 2292361..5f8e7cb 100644 --- a/src/devices/ic.rs +++ b/src/devices/ic.rs @@ -23,6 +23,8 @@ ic_marker!(Ads1013, _12); ic_marker!(Ads1113, _16); ic_marker!(Ads1014, _12); ic_marker!(Ads1114, _16); +ic_marker!(Ads1015, _12); +ic_marker!(Ads1115, _16); pub trait Tier2Features : super::private::Sealed { } @@ -297,6 +297,8 @@ mod private { impl Sealed for ic::Ads1113 {} impl Sealed for ic::Ads1014 {} impl Sealed for ic::Ads1114 {} + impl Sealed for ic::Ads1015 {} + impl Sealed for ic::Ads1115 {} } #[cfg(test)] |