OK, this is what you want to read and understand then:
http://processors.wiki.ti.com/index.php/Linux_Core_ADC_User's_Guide#Continuous_Mode

Read everything carefully. The buffer, whatever size you make it is located
at /dev/iio:device0 but passed this, im not 100% sure of the buffer layout.
I was able to read a single first value from the buffer, but was unable to
figure out how to read passed the first value. Simply incrementing 32bits
further into the buffer did not work. At this point, I got bored with using
the iio adc driver, and decided to experiment with /dev/mem/ instead.

Typically though, the values read out are 32bit, but only the first 12 bits
are the actual ADC reading, and then the next 4 or 5 bits is the ADC
channel index value. Which is a value of 0-7, *if* this feature is enabled.
>From what I've seen, in continuous mode, iio always has the channel index
"feature" enabled - By default. The remaining bits passed the bits used by
channel index, are unused / reserved.

You can read more on this in the AM335x TRM under the touchscreen
controller section which if I remember right is chapter 14.

On Sun, Jan 3, 2016 at 9:35 AM, ThanapatMax <[email protected]> wrote:

> I want to use continuous sir.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to