Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4427

C/C++ • I'm trying to convert some old code using pigpio to use libgpiod

$
0
0
The first thing I ran into was how to convert gpioSetSignalFunc. The rough parallel seems to be gpiod_ctxless_event_monitor. One difference I see right off, however, is that I used to be able to end monitoring events from a particular pin by passing in a null callback.

The documentation for gpiod_ctxless_event_monitor shows no indication of a way to terminate callbacks. I'll see what happens if I press on hoping that pass null callbacks does the trick, but it's going to be a while until the code I'm writing is ready to test, so if I can get a definitive answer before eventually learning the hard way, that would be much appreciated.

I'm certain to have more questions as I proceed (like how to deal with not yet seeing any equivalent to gpioGlitchFilter).

Statistics: Posted by kshetline — Sat Feb 08, 2025 5:10 am — Replies 0 — Views 9



Viewing all articles
Browse latest Browse all 4427

Trending Articles