PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
167 stars 86 forks source link

Rawhid2 #12

Closed KurtE closed 6 years ago

KurtE commented 6 years ago

Paul,

This Pull adds some Rawhid support. The branch is based on same branch as Pull #11 so if you choose to take it, all of it will be pulled in as well.

To add RawHid, I needed for all of the RawHid class to be able to take over for the HID input class, as once we know we want RAWHID, we don't want to continuously parse the HID stream and simply iterate over the array...

Some things I needed to do included: a) Pass the host device pointer to the HID Input claim functions as the Raw needs to talk to device. For things like please do a write now. b) As mentioned above, if the interface has an output endpoint we create the pipe. c) The claim top level report now returns three values, NO I don't want it. Yes I do, and Yes I want to claim the whole Interface.

There are additional things that can be done here like maybe adding callbacks that use the EventResponder and the like. But I think unless I hear anything I am probably done with most Serial and RawHid for now

KurtE commented 6 years ago

Paul, I just submitted #13 which should replace this one.

It combined the Keyboard with the Keyboard Extras into one object... Also added XBox1 support

KurtE commented 6 years ago

As I mentioned in previous message. The later #13 PR is a better choice