diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 14:21:12 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 14:21:12 +0100 |
commit | 950120f4a2d0199a63b59b523f1a1638e20c4f13 (patch) | |
tree | 633516fff3fad0cb582c990cf56cb0e30f0119d4 /src/devices/features | |
parent | 1de0700f63b82e4c649ef0d73443946d74df5b05 (diff) | |
download | ads1x1x-async-950120f4a2d0199a63b59b523f1a1638e20c4f13.tar.gz ads1x1x-async-950120f4a2d0199a63b59b523f1a1638e20c4f13.tar.xz ads1x1x-async-950120f4a2d0199a63b59b523f1a1638e20c4f13.zip |
Rename threshold methods
Diffstat (limited to 'src/devices/features')
-rw-r--r-- | src/devices/features/tier2.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/features/tier2.rs b/src/devices/features/tier2.rs index 067139a..2a35f7c 100644 --- a/src/devices/features/tier2.rs +++ b/src/devices/features/tier2.rs @@ -31,14 +31,14 @@ where Ok(()) } - /// Set comparator lower threshold - pub fn set_low_threshold(&mut self, value: i16) -> Result<(), Error<E>> { + /// Set raw comparator lower threshold + pub fn set_low_threshold_raw(&mut self, value: i16) -> Result<(), Error<E>> { let register_value = CONV::convert_threshold(value)?; self.iface.write_register(Register::LOW_TH, register_value) } - /// Set comparator upper threshold - pub fn set_high_threshold(&mut self, value: i16) -> Result<(), Error<E>> { + /// Set raw comparator upper threshold + pub fn set_high_threshold_raw(&mut self, value: i16) -> Result<(), Error<E>> { let register_value = CONV::convert_threshold(value)?; self.iface.write_register(Register::HIGH_TH, register_value) } |