summaryrefslogtreecommitdiff
path: root/app/include/zmk/endpoints.h
blob: 05e9954bde9afb5feadf29a6906baa78939b43c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2020 The ZMK Contributors
 *
 * SPDX-License-Identifier: MIT
 */

#pragma once

#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();
enum zmk_endpoint zmk_endpoints_selected();

int zmk_endpoints_send_report(uint8_t usage_report);