Blob: battery.h
Blob id: 457acbc6381374c4c030258377abafec62493aa8
Size: 443 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // SPDX-License-Identifier: GPL-2.0-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2025 Open Mobile Platform LLC <community@omp.ru> * * */ #include <stdint.h> #define LAST_CHARGES_SIZE 8 #define MAX_CHARGE_STEP 5 struct bt_battery; struct bt_battery *bt_battery_new(void); void bt_battery_free(struct bt_battery *battery); uint8_t bt_battery_charge(struct bt_battery *battery, uint8_t percentage); |