gpiod-core

Crates.iogpiod-core
lib.rsgpiod-core
version0.3.0
sourcesrc
created_at2022-07-31 05:32:58.233043
updated_at2024-05-11 04:59:14.119899
descriptionLinux GPIO character device interfacing
homepagehttps://github.com/katyo/gpiod-rs
repositoryhttps://github.com/katyo/gpiod-rs
max_upload_size
id635969
size68,281
Kayo Phoenix (katyo)

documentation

README

libgpiod in Rust

github crate docs MIT CI

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 ABI v1 (linux >= 4.0) and v2 (linux >= v5.10) supported but edge detection implemented for v2 only. Deprecated sysfs-based API (linux < 4.0) currently is not supported at all.

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-gpiod - async interface to use with non-tokio async runtimes
Commit count: 112

cargo fmt