How we can get to know about the ADC sampling is done. On the basis of the sampling done i want to do furture opration like the stop sampling,Continues sampling. How i can achive this, one callback function is there which will return the enum adc_action *(adc_sequence_callback)(const struct device *dev,const struct adc_sequence *sequence,uint16_t sampling_index); can i use this to achieve my functionally if yes how i can proceed furture please give some suggestions.
1. I want to know about the how adc adc_sequence_callback is working for what purpose we can use it
adc typedef enum adc_action (*adc_sequence_callback)(const struct device *dev, const struct adc_sequence *sequence, uint16_t sampling_index);
2. I want to understand about the Zeyphr adc_context_on_sampling_done() API how it is working in drivers/adc/adc_context.h.
I am referring adc.h from "nCS\v1.8.0\zephyr\include\drivers"