diff options
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.h')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/vusb.h b/tmk_core/protocol/vusb/vusb.h index 7e3f8c394..cee07207a 100644 --- a/tmk_core/protocol/vusb/vusb.h +++ b/tmk_core/protocol/vusb/vusb.h | |||
@@ -20,6 +20,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | 20 | ||
21 | #include "host_driver.h" | 21 | #include "host_driver.h" |
22 | 22 | ||
23 | typedef struct usbDescriptorHeader { | ||
24 | uchar bLength; | ||
25 | uchar bDescriptorType; | ||
26 | } __attribute__((packed)) usbDescriptorHeader_t; | ||
27 | |||
28 | typedef struct usbStringDescriptor { | ||
29 | usbDescriptorHeader_t header; | ||
30 | int bString[]; | ||
31 | } __attribute__((packed)) usbStringDescriptor_t; | ||
32 | |||
33 | #define USB_STRING_LEN(s) (sizeof(usbDescriptorHeader_t) + ((s) << 1)) | ||
34 | |||
23 | host_driver_t *vusb_driver(void); | 35 | host_driver_t *vusb_driver(void); |
24 | void vusb_transfer_keyboard(void); | 36 | void vusb_transfer_keyboard(void); |
25 | 37 | ||