How to gets gpio status but does not change it

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

 



Hello.

    According to the example get_line_value. I try to request the status of the gpio, but the return is always low.
    try 
      gpiod_line_settings_set_direction(settings, GPIOD_LINE_DIRECTION_AS_IS);
  or
      gpiod_line_settings_set_direction(settings, GPIOD_LINE_DIRECTION_INPUT);
  Their result is always low

  Is there any way to get the correct value without changing the original state?

                                           Thank you in advance for your time.




[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