|USB : USB Classes USB Classes for Microcontrollers|
HID class does this by being centered on individual data items, rather than anonymous streams of data that you have to manage yourself.
Think about this: the CDC USB class, and the "No Class" generic Bulk approach, only go as far as to set up a data stream. You still have to write (a lot of) extra code, on both the peripheral side and the PC Host side to
And you have to make sure that your code always knows where each data is, and how big it is, AND that the two sides (peripheral and host) are always in agreement about what data one side thinks it is sending and what the other side thinks it is receiving.
With HID class, you are sending and receiving data items, that are already organized for you into predefined Reports, so both sides are always in sync.
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29|