2020-09-10 13:57:44 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-05-13 04:15:33 +10:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-18 23:11:46 +10:00
|
|
|
#include <zmk/keys.h>
|
2020-06-03 01:23:22 +10:00
|
|
|
#include <zmk/hid.h>
|
2020-05-13 04:15:33 +10:00
|
|
|
|
2020-10-25 08:28:58 +11:00
|
|
|
enum zmk_endpoint {
|
|
|
|
ZMK_ENDPOINT_USB,
|
|
|
|
ZMK_ENDPOINT_BLE,
|
|
|
|
};
|
|
|
|
|
|
|
|
int zmk_endpoints_select(enum zmk_endpoint endpoint);
|
|
|
|
int zmk_endpoints_toggle();
|
2020-09-01 00:18:19 +10:00
|
|
|
enum zmk_endpoint zmk_endpoints_selected();
|
2020-10-25 08:28:58 +11:00
|
|
|
|
2020-12-18 06:36:19 +11:00
|
|
|
int zmk_endpoints_send_report(uint16_t usage_page);
|