Accessing SPI

Eric Fowler <[email protected]>
Newsgroups gmane.linux.uclinux.devel
Message-ID <CAC_tj_q-HhELfx-+q56H-gG-88wpom2it_rcrpnMuv1rjz_DoQ@mail.gmail.com>
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

-- 
cc:NSA

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.