Hardware Interrupt GPIO example


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.


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.

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 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: GitHub - NVIDIA/jetson-gpio: A Python library that enables the use of Jetson's GPIOs
Is this something you recommend? @JerryChang


hello robin.andersson,

yes, you may access GPIOs with that python scripts.

Thanks @JerryChang