libgpiod gpiod_line_request output and keep existing value

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

 



Is it possible to use gpiod_line_request to set a given line as an
output but retain the current state of the line?  I can not use
gpiod_line_get_value to query the state since the line in question has
not been requested yet.

Let's say that I have a userspace process which sets a gpio to high
and I restart the process.  I would like for the output to remain high
when I request the line again in the new process.  This was possible
with gpiolib+sysfs, is it possible with libgpiod?

Mark Deneen



[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