I am writing a kernel mode usb driver for Linux.
I have a hardware which contains switches, LEDs, bargraph LEDs, bulk data transfers etc. In its specs it explains that you can query to firmware to read state of the individual hardware on a board. They have provided something called Vendor Commands. I cannot figure out that how to send the vendor command using linux kernel USB interface. For some of the individual HW like LEDs and bargraph, there is only one way to know the state by using the Vendor Command. No endpoint info available for that. Using lsusb -v
command, it just shows 3 endpoints. One Interrupt and 2 Bulk. Interrupt is for one set of switches.
It describes the vendor commands for Interrupt endpoint also.
How to send those command?