Crates.io | gpiod-core |
lib.rs | gpiod-core |
version | 0.3.0 |
source | src |
created_at | 2022-07-31 05:32:58.233043 |
updated_at | 2024-05-11 04:59:14.119899 |
description | Linux GPIO character device interfacing |
homepage | https://github.com/katyo/gpiod-rs |
repository | https://github.com/katyo/gpiod-rs |
max_upload_size | |
id | 635969 |
size | 68,281 |
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.
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.