[libgpiod] feature request: output state read and sustain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
using new libgpiod / chardev driver, is there any way to get state of output? I mean one process sets it for example to 1 and another process reads this output state for example to show that on web page.
I have to say that old sysfs interface was more user friendly...

And at second: it would be better to NOT "the state of a GPIO line controlled over the character device reverts to default when the last process referencing the file descriptor representing the device file exits." "Set and forget" behavior is more natural to what some gpios are used. For example resetting external modems, need set 1 for short time, then to 0 and leave it for long long time until next reset is needed. It's non sense to keep running some process only to keep output at 0.

Thanks
Jiri



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux