diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 17:32:52 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 17:32:52 +0100 |
commit | fce3d8546bd619964ec5dd1594cd93e744a99521 (patch) | |
tree | 7bc17d465652c86b25b9fb34ccd7ed3bf0218b56 /src/devices/common.rs | |
parent | b9b5349b4b78a5d59be4a7e4a11f712e2f6a8256 (diff) | |
download | ads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.tar.gz ads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.tar.xz ads1x1x-async-fce3d8546bd619964ec5dd1594cd93e744a99521.zip |
Implement value conversions over type parameter
Diffstat (limited to 'src/devices/common.rs')
-rw-r--r-- | src/devices/common.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/common.rs b/src/devices/common.rs index 5abb99c..1121265 100644 --- a/src/devices/common.rs +++ b/src/devices/common.rs @@ -1,12 +1,11 @@ //! Common functions -use { Ads1x1x, Error, Register, BitFlags, interface, Config, ic }; +use { Ads1x1x, Error, Register, BitFlags, interface, Config }; use super::OperatingMode; -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> { pub(super) fn set_operating_mode(&mut self, mode: OperatingMode) -> Result<(), Error<E>> { let config; |