summaryrefslogtreecommitdiffstats
path: root/src/devices/features/tier1.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-11 17:32:52 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-11 17:32:52 +0100
commitfce3d8546bd619964ec5dd1594cd93e744a99521 (patch)
tree7bc17d465652c86b25b9fb34ccd7ed3bf0218b56 /src/devices/features/tier1.rs
parentb9b5349b4b78a5d59be4a7e4a11f712e2f6a8256 (diff)
downloadads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.tar.gz
ads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.tar.xz
ads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.zip
Implement value conversions over type parameter
Diffstat (limited to 'src/devices/features/tier1.rs')
-rw-r--r--src/devices/features/tier1.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/features/tier1.rs b/src/devices/features/tier1.rs
index 4bbf7d1..30e900e 100644
--- a/src/devices/features/tier1.rs
+++ b/src/devices/features/tier1.rs
@@ -1,11 +1,10 @@
//! Common functions
-use { Ads1x1x, DataRate, Error, Register, BitFlags, interface, ic };
+use { Ads1x1x, DataRate, Error, Register, BitFlags, interface };
-impl<DI, IC, MODE, E> Ads1x1x<DI, IC, MODE>
+impl<DI, IC, CONV, MODE, E> Ads1x1x<DI, IC, CONV, MODE>
where
- DI: interface::WriteData<Error = E>,
- IC: ic::Resolution
+ DI: interface::WriteData<Error = E>
{
/// Set data rate
pub fn set_data_rate(&mut self, rate: DataRate) -> Result<(), Error<E>> {