4 releases
0.2.3 | Jan 21, 2023 |
---|---|
0.2.2 | Oct 15, 2022 |
0.2.1 | Sep 15, 2022 |
0.2.0 | Jul 31, 2022 |
#6 in #libgpiod
4,430 downloads per month
Used in 5 crates
(3 directly)
67KB
2K
SLoC
libgpiod in Rust
Rust crate for interfacing with Linux GPIO character devices.
It provides an interface to the Linux GPIO using the chardev module. This interface involves calling ioctl funcions which are unsafe and require some unintuitive variable mapping. The functionality provided here is highly inspired by libgpiod.
Since all functionality is dependent on Linux function calls, this crate only compiles for Linux systems.
ABI compatibility
Both v1 (>= 4.0) and v2 (>= v5.10) ABI currently supported but edge detection implemented for v2 only. Sysfs-based API (< 4.0) does not supported.
Crates
- gpiod-core - core abstractions and low level interface (not for end users)
- gpiod - sync interface which supports synchronous operation only
- tokio-gpiod - async interface for tokio fans
- async-std-gpiod - async interface for async-std fans
Dependencies
~2MB
~40K SLoC