BSB Developer Docs
Loading...
Searching...
No Matches
furi_hal_power.h File Reference

Power HAL API. More...

#include <stdint.h>

Go to the source code of this file.

Functions

void furi_hal_power_reset (void)
 
void furi_hal_power_reset_917 (bool to_dfu)
 
uint16_t furi_hal_power_insomnia_level (void)
 Get current insomnia level.
 
void furi_hal_power_insomnia_enter (void)
 Enter insomnia mode Prevents device from going to sleep.
 
void furi_hal_power_insomnia_exit (void)
 Exit insomnia mode Allow device to go to sleep.
 
bool furi_hal_power_sleep_available (void)
 Check if sleep available.
 

Detailed Description

Power HAL API.

Function Documentation

◆ furi_hal_power_insomnia_enter()

void furi_hal_power_insomnia_enter ( void )

Enter insomnia mode Prevents device from going to sleep.

Warning
Internally increases insomnia level Must be paired with furi_hal_power_insomnia_exit

◆ furi_hal_power_insomnia_exit()

void furi_hal_power_insomnia_exit ( void )

Exit insomnia mode Allow device to go to sleep.

Warning
Internally decreases insomnia level. Must be paired with furi_hal_power_insomnia_enter

◆ furi_hal_power_insomnia_level()

uint16_t furi_hal_power_insomnia_level ( void )

Get current insomnia level.

Returns
insomnia level: 0 - no insomnia, >0 - insomnia, bearer count.

◆ furi_hal_power_sleep_available()

bool furi_hal_power_sleep_available ( void )

Check if sleep available.

Returns
true if available