I'm trying to use the functions of the ioctls crate. I added it to the Cargo.toml:
[dependencies]
ioctls = "0.6.1"
And I'm calling like this:
ioctls::spi_ioc_wr_max_speed_hz(fd, &speed);
but I get
error[E0425]: cannot find function `spi_ioc_wr_max_speed_hz` in crate `ioctls`
--> src/w25q.rs:127:17
|
127 | ioctls::spi_ioc_wr_max_speed_hz(fd, &speed);
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in `ioctls`
The function exists and is pub: https://docs.rs/ioctls/0.6.1/ioctls/fn.spi_ioc_wr_max_speed_hz.html