summaryrefslogtreecommitdiff
path: root/src/usb_hid.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-05-05 16:09:05 -0400
committerPete Johanson <peter@peterjohanson.com>2020-05-05 16:09:05 -0400
commita63a773983e8e575778ba2e3b326b3f2e63ce26e (patch)
treea61249a25554e95062334b72e3f5e6706dcaa1e9 /src/usb_hid.h
parentfe961d54a351a793c9037f78a42ae07eddec7d69 (diff)
Get *basic* USB report sending working.
Diffstat (limited to 'src/usb_hid.h')
-rw-r--r--src/usb_hid.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usb_hid.h b/src/usb_hid.h
new file mode 100644
index 0000000..5bcd8bf
--- /dev/null
+++ b/src/usb_hid.h
@@ -0,0 +1,14 @@
+#ifndef ZMK_USB_HID
+#define ZMK_USB_HID
+
+#include <usb/usb_device.h>
+#include <usb/class/usb_hid.h>
+
+int zmk_usb_hid_init();
+
+// TODO: Modifiers!
+
+int zmk_usb_hid_press_key(enum hid_kbd_code code);
+int zmk_usb_hid_release_key(enum hid_kbd_code code);
+
+#endif