summaryrefslogtreecommitdiffstats
path: root/src/devices/mode/continuous.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/mode/continuous.rs')
-rw-r--r--src/devices/mode/continuous.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/mode/continuous.rs b/src/devices/mode/continuous.rs
index cb62f8d..6bf5201 100644
--- a/src/devices/mode/continuous.rs
+++ b/src/devices/mode/continuous.rs
@@ -21,4 +21,11 @@ where
_mode: PhantomData
})
}
+
+ /// Start continuous conversions
+ pub fn start(&mut self) -> Result<(), Error<E>> {
+ self.set_operating_mode(OperatingMode::Continuous)?;
+ self.a_conversion_was_started = true;
+ Ok(())
+ }
}