semf
semf::app::Power Class Referenceabstract

Class for handling power states of the microcontroller like sleep mode and software reset. More...

#include <power.h>

Inheritance diagram for semf::app::Power:
Inheritance graph
Collaboration diagram for semf::app::Power:
Collaboration graph

Public Member Functions

virtual ~Power ()=default
 
virtual void reset ()=0
 
virtual void standby ()=0
 Switches microcontroller directly into standby mode. More...
 
virtual void sleep ()=0
 Switches microcontroller directly into sleep mode. More...
 
virtual void stop ()=0
 Switches microcontroller directly into stop mode. More...
 

Detailed Description

Class for handling power states of the microcontroller like sleep mode and software reset.

Definition at line 20 of file power.h.

Constructor & Destructor Documentation

◆ ~Power()

virtual semf::app::Power::~Power ( )
virtualdefault

Member Function Documentation

◆ reset()

virtual void semf::app::Power::reset ( )
pure virtual

Executes a software reset on the microcontroller.

Implemented in semf::Stm32Power.

◆ sleep()

virtual void semf::app::Power::sleep ( )
pure virtual

Switches microcontroller directly into sleep mode.

Note
Sleep is called lightsleep for some microcontrollers and does need more power than standby.

Implemented in semf::Stm32Power.

◆ standby()

virtual void semf::app::Power::standby ( )
pure virtual

Switches microcontroller directly into standby mode.

Note
Stanby is called deepsleep for some microcontrollers and does need less power than sleep.

Implemented in semf::Stm32Power.

◆ stop()

virtual void semf::app::Power::stop ( )
pure virtual

Switches microcontroller directly into stop mode.

Note
Stops the program code, while the microcontroller is still running. Normally stop mode is exited by an interrupt.

Implemented in semf::Stm32Power.