A Rust library for accessing GPIO lines on Linux platforms using the GPIO character device.
This is the equivalent of libgpiod, but in pure Rust.
gpiocdev provides a high level API for accessing GPIO lines from Rust applications.
You probably want this one.
gpiocdev-embedded-hal provides embedded_hal traits for gpiocdev Requests.
Also provides a simplified interface that may be useful for basic use cases.
gpiocdev-cli provides a command line tool to access and control GPIO lines.
The tool can be useful for writing scripts accessing the GPIOs, and for debugging GPIO setups.
gpiocdev-uapi provides a thin safe Rust wrapper around the character device ioctls.
The gpiocdev crate provides a higher level abstraction, so you should use that unless you have some particular interest in calling the Linux GPIO ioctls directly.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.