mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
19 lines
351 B
C
19 lines
351 B
C
#pragma once
|
|
|
|
typedef struct Power Power;
|
|
|
|
typedef enum {
|
|
PowerBootModeNormal,
|
|
PowerBootModeDfu,
|
|
} PowerBootMode;
|
|
|
|
/** Power off device
|
|
* @param power - Power instance
|
|
*/
|
|
void power_off(Power* power);
|
|
|
|
/** Reboot device
|
|
* @param power - Power instance
|
|
* @param mode - PowerBootMode
|
|
*/
|
|
void power_reboot(Power* power, PowerBootMode mode);
|