/* * Copyright (c) 2021 The ZMK Contributors * * SPDX-License-Identifier: MIT */ #pragma once #include #include struct battery_value { uint16_t adc_raw; uint16_t millivolts; }; int battery_channel_get(const struct battery_value *value, enum sensor_channel chan, struct sensor_value *val_out);