From c4fb153142502646f2441986cb7be95ca7d964a9 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Wed, 7 Oct 2015 19:11:23 +0200 Subject: [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. --- libraries/HID/HID.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libraries/HID') 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; -- cgit v1.2.3-18-g5258