• Home
  • Raw
  • Download

Lines Matching +full:rust +full:- +full:embedded

1 # gpio-cdev
3 …ild Status](https://github.com/rust-embedded/gpio-cdev/workflows/Build/badge.svg)](https://github.…
4 [![Version](https://img.shields.io/crates/v/gpio-cdev.svg)](https://crates.io/crates/gpio-cdev)
5 [![License](https://img.shields.io/crates/l/gpio-cdev.svg)](https://github.com/rust-embedded/gpio-c…
7 - [API Documentation](https://docs.rs/gpio-cdev)
9 rust-gpio-cdev is a Rust library/crate providing access to [GPIO character device
10 ABI](https://www.kernel.org/doc/Documentation/ABI/testing/gpio-cdev). This API,
18 GPIO Character Device](#sysfs-gpio-vs-gpio-character-device).
26 gpio-cdev = "0.4"
31 * `async-tokio`: Adds a Stream interface for consuming GPIO events in async code
37 directory](https://github.com/rust-embedded/rust-gpio-cdev/tree/master/examples).
41 ```rust
49 .request(LineRequestFlags::INPUT, 0, "read-input")?;
57 ```rust
66 fn mirror_gpio(inputline: u32, outputline: u32) -> Result<(), gpio_cdev::Error> {
70 let output_handle = output.request(LineRequestFlags::OUTPUT, 0, "mirror-gpio")?;
74 "mirror-gpio",
94 Note that this requires the addition of the `async-tokio` feature.
96 ```rust
100 async fn gpiomon(chip: String, line: u32) -> gpio_cdev::Result<()> {
178 how the individual GPIOs will be used (input, output, as-is, active-low, open
197 and include with the event (best effort) nanosecond-precision timing and an
207 ## Minimum Supported Rust Version (MSRV)
209 This crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might*
216 - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
217 http://www.apache.org/licenses/LICENSE-2.0)
218 - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
225 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
230 Contribution to this crate is organized under the terms of the [Rust Code of
231 Conduct][CoC], the maintainer of this crate, the [Embedded Linux Team][team], promises
235 [team]: https://github.com/rust-embedded/wg#the-embedded-linux-team