USB : USB Classes A Closer Look at HID Class |
The way that HID class avoids separate device drivers is to make a protocol that is completely self describing, and centered on the data that will be passed back and forth between the PC and the USB HID-class peripheral.
That is, you start by exhaustively defining the data: which direction each data item goes (Peripheral -> PC, PC -> Peripheral, or both ways), the size of each item in bits, and so on.
![]() |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |