diff options
-rw-r--r-- | src/devices/construction/i2c.rs | 3 | ||||
-rw-r--r-- | src/devices/ic.rs | 1 | ||||
-rw-r--r-- | src/lib.rs | 1 | ||||
-rw-r--r-- | tests/common/mod.rs | 1 |
4 files changed, 5 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); @@ -193,6 +193,7 @@ mod private { impl Sealed for ic::Ads1013 {} impl Sealed for ic::Ads1113 {} + impl Sealed for ic::Ads1014 {} } #[cfg(test)] diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 43dfed4..7f55942 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -66,6 +66,7 @@ macro_rules! impl_new_destroy { impl_new_destroy!(Ads1013, new_ads1013, destroy_ads1013, I2cTrans, interface::I2cInterface<I2cMock>); impl_new_destroy!(Ads1113, new_ads1113, destroy_ads1113, I2cTrans, interface::I2cInterface<I2cMock>); +impl_new_destroy!(Ads1014, new_ads1014, destroy_ads1014, I2cTrans, interface::I2cInterface<I2cMock>); #[macro_export] macro_rules! assert_would_block { |