When using two sequencers on the same adc module, I am able to sample continuous data similar to adcBufMultiSequencer example. However, once I call ADCBuf_convertCancel I notice that only sequencer 0 stops conversion and thus does not generate any further call backs to adcBufCallback function. The second sequecer 1 continues to generate callbacks.
This is the code for the convertCancel function:
//Stops all conversions in progress (stops callback also) if(ADCBuf_convertCancel(adcBuf)!= ADCBuf_STATUS_SUCCESS) { /* Did not stop conversion process correctly. */ while(1); }
This takes the adcBuf handle which is the same for both sequencer 0 and sequencer 1 as they are on the same ADC module.
How do I stop conversions, and thus the adcCallBacks, from the sequencer 1?
I can determine which sequencer is making the call back as the parameter "completedChannel" specifies the channel that is completed making the call backs.