I'm trying to use the functions of this struct:
https://docs.rs/ioctls/0.6.1/ioctls/#functions
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
https://stackoverflow.com/questions/66725372/cant-use-pub-function-from-crate March 21, 2021 at 03:01AM
没有评论:
发表评论