summaryrefslogtreecommitdiff
path: root/app/include/zmk/endpoints.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-10-31 00:09:47 -0400
committerGitHub <noreply@github.com>2020-10-31 00:09:47 -0400
commit2d31e1d05f737ebf8df2c5261912fe79b56a63c3 (patch)
tree2f32805fffdb24b5806cdf37af762fee221e27c5 /app/include/zmk/endpoints.h
parent3c958e62079059c375b86e29f66137a74c3b36c8 (diff)
parent821f0540711158985eb38b360b1f1b422408ca31 (diff)
Merge pull request #269 from joelspadin/endpoint-selection
feat: only send HID reports to one endpoint
Diffstat (limited to 'app/include/zmk/endpoints.h')
-rw-r--r--app/include/zmk/endpoints.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/include/zmk/endpoints.h b/app/include/zmk/endpoints.h
index aad6265..aad688e 100644
--- a/app/include/zmk/endpoints.h
+++ b/app/include/zmk/endpoints.h
@@ -9,4 +9,12 @@
#include <zmk/keys.h>
#include <zmk/hid.h>
+enum zmk_endpoint {
+ ZMK_ENDPOINT_USB,
+ ZMK_ENDPOINT_BLE,
+};
+
+int zmk_endpoints_select(enum zmk_endpoint endpoint);
+int zmk_endpoints_toggle();
+
int zmk_endpoints_send_report(u8_t usage_report);