Hardware Interrupt GPIO example

Hi,

I’ve configured a realsense camera to generate a trigger signal once an image is captured. I want to route this trigger signal to a GPIO on the Nvida Xavier AGX, but I can’t find any examples of how this could be done?
In the end, I want to check the difference in timestamp between the computer clock and the camera clock.

BR
Robin

hello robin.andersson,

may I know what’s the use-case.
for example, here’s also one similar discussion thread, Topic 153404, to have use-case by using GPIO for frame synchronization.

BTW,
there’re several ways to access GPIOs. such as, kernel APIs, python scripts, C++ sample
you may also refer to discussion thread,Topic 144550 for reference.
thanks

Thanks for your reply and info!

I aiming to access the GPIO inside a python script, or in a c++ script. But in userspace.

I saw this Python package, and this is exactly what Im looking for: https://github.com/NVIDIA/jetson-gpio
Is this something you recommend? @JerryChang

BR
Robin

hello robin.andersson,

yes, you may access GPIOs with that python scripts.

Thanks @JerryChang