Skip to content

A Rust library for accessing GPIO lines on Linux platforms using the GPIO character device

Notifications You must be signed in to change notification settings

warthog618/gpiocdev-rs

Repository files navigation

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.

About

A Rust library for accessing GPIO lines on Linux platforms using the GPIO character device

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •