libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::PowerManager Class Referenceabstract

电源管理器基类 / Abstract base class for Power Manager More...

#include <power.hpp>

Inheritance diagram for LibXR::PowerManager:

Public Member Functions

 PowerManager ()=default
 默认构造函数 / Default constructor
 
virtual ~PowerManager ()=default
 默认析构函数 / Default destructor
 
virtual void Reset ()=0
 复位电源管理模块 / Resets the power management module
 
virtual void Shutdown ()=0
 关闭系统电源 / Shuts down the system power
 

Detailed Description

电源管理器基类 / Abstract base class for Power Manager

该类定义了电源管理的基本接口,所有电源管理模块应继承此类并实现具体的 ResetShutdown 方法。 This class defines the basic interface for power management. All power management modules should inherit from this class and implement the Reset and Shutdown methods.

Definition at line 17 of file power.hpp.

Member Function Documentation

◆ Reset()

virtual void LibXR::PowerManager::Reset ( )
pure virtual

复位电源管理模块 / Resets the power management module

该方法应由子类实现,用于执行特定的复位操作,例如重启电源控制器或恢复默认设置。 This method should be implemented by subclasses to perform specific reset operations, such as restarting the power controller or restoring default settings.

Implemented in LibXR::STM32PowerManager.

◆ Shutdown()

virtual void LibXR::PowerManager::Shutdown ( )
pure virtual

关闭系统电源 / Shuts down the system power

该方法应由子类实现,用于执行系统关机操作,例如断开电源或进入低功耗模式。 This method should be implemented by subclasses to perform system shutdown operations, such as cutting off power or entering a low-power mode.

Implemented in LibXR::STM32PowerManager.


The documentation for this class was generated from the following file: