gpiocdev-uapi

Crates.iogpiocdev-uapi
lib.rsgpiocdev-uapi
version
sourcesrc
created_at2022-10-11 00:32:54.529447
updated_at2024-10-03 08:24:57.506938
descriptionA low level library to access GPIO lines on Linux using the GPIO character device
homepage
repositoryhttps://github.com/warthog618/gpiocdev-rs
max_upload_size
id684955
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Kent Gibson (warthog618)

documentation

README

gpiocdev-uapi

Build Status github crate LICENSE

A thin safe Rust wrapper around the Linux GPIO character device ioctls and file operations.

Rust structs corresponding to the C ABI types are provided, as are functions corresponding to each of the ABI ioctls and character device file reads. Essentially just the Rust version of gpio.h.

Both ABI versions v1 and v2 are supported, though new developments should use v2 unless it is unavailable on the target platform.

The gpiocdev crate provides a higher level abstraction, so you should use that unless you have some particular need to call the 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.

Commit count: 387

cargo fmt