diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-28 12:06:35 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-28 12:06:35 +0200 |
commit | dfe6048175f6a0c89e27cfa7a625bcf11a81fb33 (patch) | |
tree | 132543322726e2ea61a8275549c27f70d83b6492 /libraries/HID/HID.h | |
parent | d508e4dc54e2928fc8a8a9260d317b8651dbde52 (diff) | |
parent | 5a5cf764db88d148f3778a45ec1f9bae1899b3c3 (diff) |
Merge branch 'pluggable_hid_impr' of https://github.com/cmaglie/Arduino
Diffstat (limited to 'libraries/HID/HID.h')
-rw-r--r-- | libraries/HID/HID.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h index b9f29b4..1a87bb7 100644 --- a/libraries/HID/HID.h +++ b/libraries/HID/HID.h @@ -44,16 +44,13 @@ #define HID_REPORT_DESCRIPTOR_TYPE 0x22 #define HID_PHYSICAL_DESCRIPTOR_TYPE 0x23 -typedef struct __attribute__((packed)) { - uint16_t length; - const void* descriptor; -} HID_Descriptor; - class HIDDescriptorListNode { public: HIDDescriptorListNode *next = NULL; - const HID_Descriptor * cb; - HIDDescriptorListNode(const HID_Descriptor *ncb) {cb = ncb;} + HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { } + + const void* data; + uint16_t length; }; class HID_ |