Network (canbus) driver over USB HID driver
I hope it is the correct forum to post this question.
I am in the process of designing a driver which should provide two interfaces above
the hid (of the kernel) driver.
1. generic messages
2. canbus messages
I am wondering what should be the best way to provide this
functionality. I have the following ideas:
* Write a driver over libusb (or libhid, but it's in alpha state ??) which sends hid messages
to the driver and provides the network (canbus) interface and the generic messages.
* Write a driver over sysfs which send / receive messages.
As for the requirements from those drivers, lets assume that the canbus messages
should pass without delays and the generic messages can suffer some delays.
I will be glad to any suggestions / pointer to proceed / etc.