Re: [libgpiod] query state of output pin

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

 



On Mon, Nov 9, 2020 at 6:34 PM Christian Schneider
<cschneider@xxxxxxxxxxxxx> wrote:
>
> Hi and sorry for asking user question here, but I couldn't find any
> other place to ask, and the documentation doesn't mention it.
>
> Is it OK to query the state an output pin is set to with
> gpiod_line_get_value(), or does this give not what I want/expect?
>
> BR, Christian

Hi Christian!

If your program is driving that pin then there's no reason to check
its value. If it's another process that is driving it then you can't
request it and read its value at the same time. We'll eventually get
to having a centralized user-space daemon that allows it but for now
you would have to hack your own solution.

Bartosz



[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