diff options
author | NicoHood <NicoHood@users.noreply.github.com> | 2015-10-07 19:11:23 +0200 |
---|---|---|
committer | NicoHood <NicoHood@users.noreply.github.com> | 2015-10-07 20:37:05 +0200 |
commit | c4fb153142502646f2441986cb7be95ca7d964a9 (patch) | |
tree | 57a388f57cf7d923bc352778af9646264d12263a /libraries/HID | |
parent | dfe89ddd015f072e279d38354d60e4882c15bdb0 (diff) |
[PHID] Added SetReport function
This commit just shows other that this option is available and not implemented.
You may use this to determine the Led Lights state of a keyboard or transmit data via RAWHID from the PC.
Quick usage guide:
int length = ((setup.wValueH << 8) | setup.wLength);
USB_RecvControl((uint8_t* data, USB_EP_SIZE); // Needs to be splitted into USB_EP_SIZE packets, not shown here. See HID Project.
Diffstat (limited to 'libraries/HID')
-rw-r--r-- | libraries/HID/HID.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp index 500eec9..fe88ecd 100644 --- a/libraries/HID/HID.cpp +++ b/libraries/HID/HID.cpp @@ -106,6 +106,9 @@ bool HID_::setup(USBSetup& setup) idle = setup.wValueL; return true; } + if (request == HID_SET_REPORT) + { + } } return false; |