Orin Controller Area Network (CAN) C/C++ API

Hello everyone, is there a C/C++ API for “Controller Area Network (CAN)”? The materials I’ve watched are telling me how to quickly configure CAN and use it in a shell, and I’d like to know how I should use CAN in a C/C++ program.

Please find more information from Controller Area Network (CAN) — Jetson Linux
Developer Guide 34.1 documentation (nvidia.com)

Hello, thank you very much for your help, I have read this document and it doesn’t seem to mention how to send CAN messages in C/C++ programs, I am a student in school and I don’t quite understand the Nvidia SDK yet, I have used stm32 microcontroller and I use it to send messages by a function in C/C++ programs, is there a similar function in Nvidia SDK? How do I use Orin’s CAN above in my program?

Sorry, I learned at “https://www.kernel.org/doc/Documentation/networking/can.txt” that CAN as a network on Linux should use Berkeley sockets and not operate directly on the hardware like a microcontroller. Sorry for asking a stupid question.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.