linux c program for hardware spi reading from specified location
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
linux c program for hardware spi reading from specified location
I am using hardware SPI for PRoslic Si3217 and want to read spi data from the specified location.I am unable to read the data from particular location( ex:- 0x00 location). i tried different search engines, but i didn't get any answer for that. i need program for that READ/WRITE operations using ioctl() function only in linux C.
I am using hardware SPI for PRoslic Si3217 and want to read spi data from the specified location.I am unable to read the data from particular location( ex:- 0x00 location). i tried different search engines, but i didn't get any answer for that. i need program for that READ/WRITE operations using ioctl() function only in linux C.
Thanks. But how do I read spi driver id and other register values in linux. Also i want to implement hardware spi read-write for my api.
You get their API, and read the instructions. The API provides you with the interface you need to query the hardware. Their API is a pay-for product, so you will first purchase the API, then read the instructions that come with it. If you've got questions after that, you contact their tech support, since you're paying for it with your purchase.
Is there any linux c code to read and write device registers and device address. I want to read the address of /dev/devicename and read the content of its register 0. I am using fd = open(device, O_RDWR); to open the device.
I basically want to know if my spi interface is working correctly. So i want to read the Proslic register values through spi to verify the values match with its presets.
I basically want to know if my spi interface is working correctly. So i want to read the Proslic register values through spi to verify the values match with its presets.
Yes, we understand what you're asking. AGAIN, I will point you to the documentation/instructions that come with your purchase of the API, and the access to their tech-support which comes with that purchase. I do not have the API, since it is a pay-for product which I don't need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.