aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol/vusb/vusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.h')
-rw-r--r--tmk_core/protocol/vusb/vusb.h12
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
23typedef struct usbDescriptorHeader {
24 uchar bLength;
25 uchar bDescriptorType;
26} __attribute__((packed)) usbDescriptorHeader_t;
27
28typedef 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
23host_driver_t *vusb_driver(void); 35host_driver_t *vusb_driver(void);
24void vusb_transfer_keyboard(void); 36void vusb_transfer_keyboard(void);
25 37