mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
20 lines
349 B
C
20 lines
349 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);
|
|
|
|
/** Reset device
|
|
* @param power - Power instance
|
|
* @param mode - PowerBootMode
|
|
*/
|
|
void power_reset(Power* power, PowerBootMode mode);
|