SW to send stimuli via USB-2 port

My problem is i need to find a way to control my USB-2 port (probably via C++) from my Rocky Linux 9. I need to create a custom software (probably C++) that can send signals out of my USB-2 port to stimulate an external custom electronic device.

Does anyone have an idea how i can code this my self?
or if there is a library available for Rocky9 that would support me on this?

Let me know if anyone has an idea, thanx

Possible place to start, has some good diagrams:

1 Like