You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
329 B
18 lines
329 B
/* |
|
* Copyright (c) 2020 The ZMK Contributors |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <zephyr.h> |
|
#include <zmk/event_manager.h> |
|
|
|
struct battery_state_changed { |
|
struct zmk_event_header header; |
|
// TODO: Other battery channels |
|
uint8_t state_of_charge; |
|
}; |
|
|
|
ZMK_EVENT_DECLARE(battery_state_changed); |