|
LowPower
|
Low Power Management for SAMD. Depends on RTCZero! More...
#include <LowPowerSAMD.h>

Public Member Functions | |
| bool | setSleepMode (sleep_mode_enum_t sleep_mode) |
| Defines the sleep mode. | |
| bool | sleep (void) override |
| sets processor into sleep mode | |
| bool | setSleepTime (uint32_t time, time_unit_t time_unit_type) override |
| Defines the sleep time. | |
| bool | addWakeupPin (int pin, pin_change_t change_type) override |
| Defines the wakup pin. | |
| void | clear () |
| reset the processing | |
| bool | isProcessingOnSleep (sleep_mode_enum_t sleep_mode) |
| Returns true if processing is possible in the current sleep mode. | |
| virtual bool | sleepFor (uint32_t time, time_unit_t time_unit_type) |
| sets mc into sleep mode to sleep for indicated millis | |
| virtual void | setActive (bool flag) |
| sets the flag to be active | |
| virtual void | setActiveTime (uint32_t time, time_unit_t time_unit_type) |
| Defiles the active time. | |
| virtual bool | isActive () |
| Checks if we are active (not sleeping) | |
| virtual | operator bool () |
| same as isActive() | |
| virtual void | process () |
| Triggers the processing to be active or sleeping based on the set definitions. | |
| virtual bool | isProcessingOnSleep () |
| Returns true if processing is possible in the current sleep mode. | |
| virtual bool | isModeSupported (sleep_mode_enum_t sleep_mode) |
| Provides information if the indicated mode is supported. | |
Protected Member Functions | |
| PinStatus | toMode (pin_change_t ct) |
| uint64_t | toUs (uint64_t time, time_unit_t time_unit) |
Static Protected Member Functions | |
| static void | callback () |
Low Power Management for SAMD. Depends on RTCZero!