We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1caf712 commit 4c8b953Copy full SHA for 4c8b953
src/adc/mod.rs
@@ -1337,6 +1337,13 @@ impl<ADC: Instance> Adc<ADC, Configured> {
1337
}
1338
1339
1340
+ /// Releases the Adc as a DynamicAdc.
1341
+ /// While this is not unsafe; using methods while the Adc is in the wrong state will mess it up.
1342
+ #[inline(always)]
1343
+ pub fn into_dynamic_adc(self) -> DynamicAdc<ADC> {
1344
+ self.adc
1345
+ }
1346
+
1347
/// Starts conversion sequence. Waits for the hardware to indicate it's actually started.
1348
#[inline(always)]
1349
pub fn start_conversion(mut self) -> Adc<ADC, Active> {
0 commit comments