2020-11-02 16:10:21 +11:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
2020-12-23 02:56:00 +11:00
|
|
|
#include <zmk/event_manager.h>
|
2020-11-02 16:10:21 +11:00
|
|
|
|
|
|
|
struct battery_state_changed {
|
|
|
|
struct zmk_event_header header;
|
|
|
|
// TODO: Other battery channels
|
2020-12-03 03:41:57 +11:00
|
|
|
uint8_t state_of_charge;
|
2020-11-02 16:10:21 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
ZMK_EVENT_DECLARE(battery_state_changed);
|