semf
Power

General

The main purpose of semf::app::Power class is to handle different power modes like standby, sleep and stop modes of the microcontroller. The class can also be used to execute a software reset of the microcontroller. This class is an abstract interface and the implementation depends on the hardware.

Initialization and Usage

#include "main.h"
semf::Stm32f4Power powerModes;
while(1)
{
powerModes.sleep();
}