Eric Fowler
2014-01-28 23:45:04 UTC
I have an Emcraft distro with a SPI device at /dev/spi. I wish to access
the device for (for instance) controlling the chip select pin, read, write,
etc.
I have seen a document on controlling a SPI driver on ucLinux from user
space (
http://www.uclinux.org/pub/uClinux/ports/blackfin/docs/pdf-docs/SPI_device_driver.pdf)
, but it references IOCTLs that are not in my source tree.
I did find a file, linux/spi/spidev.h, that has a struct defined that seems
to be used by user mode SPI code, but it is not clear how I am to use it,
in particular, which IOCTLs are available, and how I can get access to the
interface at low levels.
How in general do ucLinux app developers access SPI devices?
Eric
the device for (for instance) controlling the chip select pin, read, write,
etc.
I have seen a document on controlling a SPI driver on ucLinux from user
space (
http://www.uclinux.org/pub/uClinux/ports/blackfin/docs/pdf-docs/SPI_device_driver.pdf)
, but it references IOCTLs that are not in my source tree.
I did find a file, linux/spi/spidev.h, that has a struct defined that seems
to be used by user mode SPI code, but it is not clear how I am to use it,
in particular, which IOCTLs are available, and how I can get access to the
interface at low levels.
How in general do ucLinux app developers access SPI devices?
Eric
--
cc:NSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20140128/e405f09c/attachment.html>
cc:NSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20140128/e405f09c/attachment.html>