|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
Linux 电源管理实现 / Linux power manager implementation. More...
#include <linux_power.hpp>
Public Member Functions | |
| void | Reset () override |
| 重启系统 / Reboot system | |
| void | Shutdown () override |
| 关闭系统 / Power off system | |
Public Member Functions inherited from LibXR::PowerManager | |
| PowerManager ()=default | |
| 默认构造函数 / Default constructor | |
| virtual | ~PowerManager ()=default |
| 默认析构函数 / Default destructor | |
| virtual void | JumpToBootloader () |
| 跳转到启动加载器 / Jumps to the bootloader | |
| void | RegisterCommand (RamFS &ramfs) |
| 在 RamFS 根目录注册 power 命令 / Registers the power command in the RamFS root | |
| void | CheckBootloaderPin (GPIO &pin, bool level) |
| 启动时按引脚电平进入启动加载器 / Pin-level bootloader entry at startup | |
Linux 电源管理实现 / Linux power manager implementation.
Definition at line 20 of file linux_power.hpp.
|
inlineoverridevirtual |
重启系统 / Reboot system
Implements LibXR::PowerManager.
Definition at line 28 of file linux_power.hpp.
|
inlineoverridevirtual |
关闭系统 / Power off system
Implements LibXR::PowerManager.
Definition at line 41 of file linux_power.hpp.