libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::STM32PowerManager Class Reference
Inheritance diagram for LibXR::STM32PowerManager:
Collaboration diagram for LibXR::STM32PowerManager:

Public Member Functions

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

Detailed Description

Definition at line 11 of file stm32_power.hpp.

Constructor & Destructor Documentation

◆ STM32PowerManager()

LibXR::STM32PowerManager::STM32PowerManager ( )
inlineexplicit

Definition at line 13 of file stm32_power.hpp.

13{}

Member Function Documentation

◆ Reset()

void LibXR::STM32PowerManager::Reset ( )
inlineoverridevirtual

复位电源管理模块 / 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.

Implements LibXR::PowerManager.

Definition at line 15 of file stm32_power.hpp.

constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值

◆ Shutdown()

void LibXR::STM32PowerManager::Shutdown ( )
inlineoverridevirtual

关闭系统电源 / 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.

Implements LibXR::PowerManager.

Definition at line 17 of file stm32_power.hpp.


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