We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e8f809 commit df32567Copy full SHA for df32567
src/AdvancedADC.cpp
@@ -227,6 +227,24 @@ int AdvancedADC::stop()
227
return 1;
228
}
229
230
+void AdvancedADC::clear()
231
+{
232
+ descr->pool->flush();
233
+}
234
+
235
+//This routine actually sets the ADC1/2_CCR register field for Dual Mode
236
+//This should only be done after both ADC's and related DMA are setup
237
+int AdvancedADC::enableDualMode()
238
239
+ return(hal_enable_dual_mode());
240
241
242
+//This routine sets the flag ahead of time selecting Dual Mode for ADC1/2
243
+void AdvancedADC::setADCDualMode(bool dm)
244
245
+ dualMode=dm;
246
247
248
AdvancedADC::~AdvancedADC()
249
{
250
dac_descr_deinit(descr, true);
0 commit comments