2020-10-12 09:03:21 +11:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
|
|
|
#include <usb/usb_device.h>
|
|
|
|
|
2020-12-23 02:56:00 +11:00
|
|
|
#include <zmk/event_manager.h>
|
2020-10-12 09:03:21 +11:00
|
|
|
#include <zmk/usb.h>
|
|
|
|
|
|
|
|
struct usb_conn_state_changed {
|
|
|
|
struct zmk_event_header header;
|
|
|
|
enum zmk_usb_conn_state conn_state;
|
|
|
|
};
|
|
|
|
|
|
|
|
ZMK_EVENT_DECLARE(usb_conn_state_changed);
|