<div dir="ltr"><div>Hi List,</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>In the existing IIO drivers (linux-3.16), my understanding is that Hardware Triggers are just used to copy sampled data from the ADC to the Kernel buffer. I think none of the hardware triggers are really configuring ADC to Start the analog to digital conversion.</div>
<div><br></div><div>I have a Hardware Counter on my Board. I am planning to configure my Counter overflow interrupt as an IIO Hardware Trigger. In my IIO ADC driver probe function I am planning to start my Counter for the first time. Once the counter overflow interrupted is generated, inside the counter ISR, I am planning to configure ADC to start analog to digital conversion on all the channels (4 of them), one sample on each channel and once the Conversion is completed, I am planning to copy the Sampled data to Kernel buffer associated with the Trigger.</div>
<div><br></div><div>I will program the Counter again and wait for interrupt and repeat the steps above. I am planning to continue this approach indefinitely. </div><div><br></div><div>Does this approach satisfy the principles of IIO Subsystem ? Am I missing anything here in understanding the IIO Subsystem properly ?</div>
<div><br></div><div>Thanks in advance,</div><div><br></div><div>Sricharan,</div><div>Pune (India).</div></div>