Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spiIOCMessageN(1) is not working on different kernel #51

Open
morriswinkler opened this issue Jan 19, 2016 · 1 comment
Open

spiIOCMessageN(1) is not working on different kernel #51

morriswinkler opened this issue Jan 19, 2016 · 1 comment

Comments

@morriswinkler
Copy link

Dear author, i have some trouble to make spi work, as i can see you are fetching IO controll numbers by using this conts's

spiIOCMessage0 = 1073769216 //0x40006B00
spiIOCIncrementor = 2097152 //0x200000

i do not know where you got them from, but i guess they are from the kernel spi driver, they simply don't work for me,

any sugestions on how to call the macro SPI_IOC_MESSAGE(N) in #include <linux/spi/spidev.h> directly ?

@quinte17
Copy link

maybe the problem isn't the macro.
I got the spi working because I changed the spiIOCTransfer type.
My kernel-version: 4.1.15+ #830
I did an spi-driver for myself with yet another interface (ReadWriteCloser):
https://github.com/quinte17/spi

maybe its working for you just to change the type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants