FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
This class contains the API for handling power sleep modes. More...
#include <fastarduino/power.h>
Static Public Member Functions | |
static void | set_default_mode (board::SleepMode mode) |
Set the default sleep mode, that will be used by next calls to Power::sleep() and time::yield() . More... | |
static void | sleep () |
Enter power sleep mode as defined by Power::set_default_mode() . More... | |
static void | sleep (board::SleepMode mode) |
Enter a specific power sleep mode. More... | |
This class contains the API for handling power sleep modes.
It is not aimed for instantiation, as all its methods are static.
|
inlinestatic |
Set the default sleep mode, that will be used by next calls to Power::sleep()
and time::yield()
.
Before this method is called, the default mode is set to board::SleepMode::IDLE
.
|
inlinestatic |
Enter power sleep mode as defined by Power::set_default_mode()
.
This method will return only when MCU is awakened (the awakening signals depend on the selected sleep mode).
If you want your program to enter a different sleep mode than the default, you should call Power::sleep(board::SleepMode)
instead.
|
inlinestatic |
Enter a specific power sleep mode.
This method will return only when MCU is awakened (the awakening signals depend on the selected sleep mode).
If you want your program to enter the default sleep mode (as defined by Power::set_default_mode()
), you should call Power::sleep()
instead.