semf
power.h
Go to the documentation of this file.
1
10#ifndef SEMF_APP_SYSTEM_POWER_H_
11#define SEMF_APP_SYSTEM_POWER_H_
12
13namespace semf
14{
15namespace app
16{
20class Power
21{
22public:
23 virtual ~Power() = default;
24
26 virtual void reset() = 0;
32 virtual void standby() = 0;
38 virtual void sleep() = 0;
44 virtual void stop() = 0;
45};
46} /* namespace app */
47} /* namespace semf */
48#endif /* SEMF_APP_SYSTEM_POWER_H_ */
Class for handling power states of the microcontroller like sleep mode and software reset.
Definition: power.h:21
virtual void standby()=0
Switches microcontroller directly into standby mode.
virtual void reset()=0
virtual void stop()=0
Switches microcontroller directly into stop mode.
virtual void sleep()=0
Switches microcontroller directly into sleep mode.
virtual ~Power()=default