codyps / ioctl

Helpers for binding ioctls in Rust
https://docs.rs/ioctl-sys
Apache License 2.0
4 stars 14 forks source link

What about SPI_IOC_MESSAGE? #17

Open lattice0 opened 3 years ago

lattice0 commented 3 years ago

I'm trying to port this C code to Rust:

ioctl (spiFds [channel], SPI_IOC_MESSAGE(1), &spi) ;

and there's no spi_ioc_message in your crate.

How should I overcome this?

codyps commented 3 years ago

Hi @lucaszanella, sorry for not getting back to you on this. If you're still having a problem here, my methodology these days would be to create a crate dedicated to the specific SPI interface.