Is there any sample C/C++ code for sending/receiving/filtering CANbus messages? It would be better to profit from the message received hardware interrupt.
We only have the design guide: Controller Area Network (CAN) — NVIDIA Jetson Linux Developer Guide 1 documentation
I would like to know how to use the hardware interrupt on message reception, but I could not find it anywhere in the documentation.
Are you asking for hardware timestamp?
What’s the Jetpack version in use?
Hi Jeff. No, I’m asking for interrupt-driven CAN package reception. I’m using Jetpack 6.2. But, now that you mentioned it, hardware timestamp is also a good feature to work with.
For this, please refer to mttcan_poll_ir() in mttcan driver.
For this, you can refer to Generic Timestamp Engine — NVIDIA Jetson Linux Developer Guide for details.