Re: Beaglebone built-in ADC with IIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I added the IIO mailing list and Patil, Rachna, who is the author of the
driver, to Cc.

On 11/23/2012 09:42 AM, Guido Del Vescovo wrote:
> Hi Lars. I'm trying to read the analog inputs of the beaglebone board at an
> higher rate than the one which can be achieved through the *sysfs* method
> (open the file with *fopen*, read a single value with *fscanf*, close the
> file, repeat. C language, of course). In the #beagle IRC channel at
> freenode, I was told to look at the IIO project. I was also told that the
> latest kernel 3.7 for the beaglebone (angstrom distribution) was equipped
> with IIO support for the built-in ADC, but that it is not tested yet. Well,
> I would like to test it. The problem is, I have no idea about how to write
> an hello world application reading data from the analog inputs. I guess I
> should bypass the sysfs and talk directly to the IIO layer, but I'm having
> hard times finding the proper documentation and examples, maybe I'm not
> looking in the right direction.

So yes, there is support for the AM335x ADC in IIO, but not for 3.7. It will
be in 3.8. While IIO provides a character device interface which allows you
to read multiple samples at once, the driver does not implement it yet. So
as it is right now even with IIO you are stuck with reading sysfs files by hand.

- Lars
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux