gpiocdev-cli

A tool to access GPIO lines on Linux using the GPIO character device


Keywords
cli, chardev, gpio, gpiochip, linux, gpio-character-device, gpio-library, linux-gpio, pins, rust
Licenses
Apache-2.0/MIT

Documentation

gpiocdev-rs

Build Status

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.

Crates

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.

License

Licensed under either of

at your option.

Contribution

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.