11#include <core/common_defines.h>
12#include <toolbox/property.h>
20 FuriHalPowerICCharger,
21 FuriHalPowerICFuelGauge,
float furi_hal_power_get_battery_charge_voltage_limit(void)
Get battery charge voltage limit in V.
Definition furi_hal_power.c:368
bool furi_hal_power_enable_otg(void)
OTG enable.
Definition furi_hal_power.c:344
void furi_hal_power_init(void)
Initialize drivers.
Definition furi_hal_power.c:54
uint8_t furi_hal_power_get_bat_health_pct(void)
Get battery health state in percents.
Definition furi_hal_power.c:274
bool furi_hal_power_is_charging_done(void)
Get charge complete status.
Definition furi_hal_power.c:288
void furi_hal_power_debug_get(PropertyValueCallback callback, void *context)
Get power debug information.
Definition furi_hal_power.c:584
uint32_t furi_hal_power_get_battery_remaining_capacity(void)
Get remaining battery battery capacity in mAh.
Definition furi_hal_power.c:396
float furi_hal_power_get_battery_voltage(FuriHalPowerIC ic)
Get battery voltage in V.
Definition furi_hal_power.c:417
void furi_hal_power_disable_otg(void)
OTG disable.
Definition furi_hal_power.c:355
FURI_NORETURN void furi_hal_power_reset(void)
Reset device.
Definition furi_hal_power.c:340
bool furi_hal_power_is_charging(void)
Get charging status.
Definition furi_hal_power.c:281
void furi_hal_power_suppress_charge_exit(void)
Exit supress charge mode.
Definition furi_hal_power.c:498
bool furi_hal_power_is_shutdown_requested(void)
Check if gauge requests system shutdown.
Definition furi_hal_power.c:128
void furi_hal_power_info_get(PropertyValueCallback callback, char sep, void *context)
Get power information.
Definition furi_hal_power.c:511
void furi_hal_power_shutdown(void)
Switch MCU to SHUTDOWN.
Definition furi_hal_power.c:295
float furi_hal_power_get_battery_temperature(FuriHalPowerIC ic)
Get temperature in C.
Definition furi_hal_power.c:462
bool furi_hal_power_check_otg_fault(void)
Check OTG status fault.
Definition furi_hal_power.c:382
void furi_hal_power_enable_external_3_3v(void)
Enable 3.3v on external gpio and sd card.
Definition furi_hal_power.c:477
void furi_hal_power_insomnia_exit(void)
Exit insomnia mode Allow device to go to sleep.
Definition furi_hal_power.c:155
void furi_hal_power_set_battery_charge_voltage_limit(float voltage)
Set battery charge voltage limit in V.
Definition furi_hal_power.c:375
float furi_hal_power_get_usb_voltage(void)
Get USB voltage in V.
Definition furi_hal_power.c:470
void furi_hal_power_insomnia_enter(void)
Enter insomnia mode Prevents device from going to sleep.
Definition furi_hal_power.c:148
void furi_hal_power_disable_external_3_3v(void)
Disable 3.3v on external gpio and sd card.
Definition furi_hal_power.c:481
uint8_t furi_hal_power_get_pct(void)
Get predicted remaining battery capacity in percents.
Definition furi_hal_power.c:267
uint32_t furi_hal_power_get_battery_design_capacity(void)
Get battery capacity in mAh from battery profile.
Definition furi_hal_power.c:410
void furi_hal_power_off(void)
Poweroff device.
Definition furi_hal_power.c:327
FuriHalPowerIC
Power IC type.
Definition furi_hal_power.h:19
float furi_hal_power_get_battery_current(FuriHalPowerIC ic)
Get battery current in A.
Definition furi_hal_power.c:433
void furi_hal_power_sleep(void)
Go to sleep.
Definition furi_hal_power.c:259
uint16_t furi_hal_power_insomnia_level(void)
Get current insomnia level.
Definition furi_hal_power.c:144
bool furi_hal_power_gauge_is_ok(void)
Check if gauge is ok.
Definition furi_hal_power.c:106
void furi_hal_power_check_otg_status(void)
Check OTG status and disable it if falt happened.
Definition furi_hal_power.c:389
uint32_t furi_hal_power_get_battery_full_capacity(void)
Get full charge battery capacity in mAh.
Definition furi_hal_power.c:403
bool furi_hal_power_is_otg_enabled(void)
Get OTG status.
Definition furi_hal_power.c:361
void furi_hal_power_suppress_charge_enter(void)
Enter supress charge mode.
Definition furi_hal_power.c:485
bool furi_hal_power_sleep_available(void)
Check if sleep available.
Definition furi_hal_power.c:162