Skip to content
Discussion options

You must be logged in to vote

Questions

  1. Is the current behavior intentional — that gpiod_line_request_reconfigure_lines() always writes output_value to the latch when direction is OUTPUT, even on a same-direction reconfigure?

I'm not sure this is a libgpiod problem. It looks more like the behavior of the linux kernel driver is the culprit? gpiod_line_request_reconfigure_lines() doesn't write anything to the latch - it just forwards a request to the GPIO core in the kernel which in turns asks the driver to do a bunch of things. The driver may end up writing to the given register but doesn't have to.

  1. If a caller wants to change unrelated settings (bias, drive, debounce) on an OUTPUT line without disturbing the lat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mfide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants