gpio-cdev icon indicating copy to clipboard operation
gpio-cdev copied to clipboard

Rust interface to the Linux GPIO Character Device API (/dev/gpiochip...)

Results 14 gpio-cdev issues
Sort by recently updated
recently updated
newest added
trafficstars

Is there support for electrical configuration of GPIO pins (e.g. enabling pull-up resistors on the Raspberry Pi)? If I look at https://www.kernel.org/doc/html/v5.3/driver-api/gpio/driver.html#gpio-electrical-configuration this should be possible, right? Or is that...

https://github.com/torvalds/linux/commit/b53911aa872db462be2e5f1dd611b25c4c2e663b introduces the uapi v2 which has slightly different ioctl calls. Also v1 is deprecated from that point on: https://github.com/torvalds/linux/commit/b234d233fe30c63c4e461b03e2884a6765c8e5b0

help wanted

Hello, Thank you for providing us with this wonderful library! A missing feature of this library to me is the ability to do a non-blocking poll on the LineEventHandle struct....

Hello, When using the following snippet in my code (as part of a Wiegand reader program) on a Raspberry Pi 0: ``` let monitor_0: Next = events0.next(); let monitor_1: Next...

Does it matter what we set this arg for an input line? If not, can we get a short note in the docs that it doesn't matter. Maybe have it...

How do you extend the gpioevents.rs example to handle multiple input pins using event handlers? EDIT: To clarify, I don't really want to have to follow the poll methodology in...

I know the char driver(s) expose bits as `u8` values, but it might be easier to manipulate the values as booleans. Should we consider: ``` impl LineHandle { pub fn...

Hello! First, thanks a lot for creating this crate and the work you put into it. I have a small suggestion that could improve the documentation. Consider the following program...

Could an example be shown for doing an async multiread? I don't see a lot of things i can do with `get_lines` such as `events()` and `events_async()`

### Background [`Line.request()`](https://docs.rs/gpio-cdev/latest/gpio_cdev/struct.Line.html#method.request) accepts [`LineRequestFlags`](https://docs.rs/gpio-cdev/latest/gpio_cdev/struct.LineRequestFlags.html) including `ACTIVE_LOW`. This inverts the polarity of the value in the [`LineHandle::get_value()`](https://docs.rs/gpio-cdev/latest/gpio_cdev/struct.LineHandle.html#method.get_value) and [`LineHandle::set_value()`](https://docs.rs/gpio-cdev/latest/gpio_cdev/struct.LineHandle.html#method.set_value) APIs to mean: - `0` -> inactive -> electrically high -...