mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 03:39:56 +00:00
19 lines
396 B
C
19 lines
396 B
C
|
#pragma once
|
||
|
|
||
|
namespace meshtastic
|
||
|
{
|
||
|
|
||
|
/// Describes the state of the power system.
|
||
|
struct PowerStatus {
|
||
|
/// Whether we have a battery connected
|
||
|
bool haveBattery;
|
||
|
/// Battery voltage in mV, valid if haveBattery is true
|
||
|
int batteryVoltageMv;
|
||
|
/// Whether USB is connected
|
||
|
bool usb;
|
||
|
/// Whether we are charging the battery
|
||
|
bool charging;
|
||
|
};
|
||
|
|
||
|
} // namespace meshtastic
|