1d18900a99
Aligns with the HID specification. Usage page values were sometimes declared as uint8_t and sometimes uint16_t. This commit aligns all instances with the HID specification for consistency. PR: #521
21 lines
391 B
C
21 lines
391 B
C
/*
|
|
* 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(uint16_t usage_page);
|