74 #ifndef SLEEP_HW_LOW_ENERGY_BLOCK_ENABLED
75 #define SLEEP_HW_LOW_ENERGY_BLOCK_ENABLED true
79 #ifndef SLEEP_EM4_WAKEUP_CALLBACK_ENABLED
80 #define SLEEP_EM4_WAKEUP_CALLBACK_ENABLED true
89 #ifndef SLEEP_LOWEST_ENERGY_MODE_DEFAULT
90 #define SLEEP_LOWEST_ENERGY_MODE_DEFAULT sleepEM3
void SLEEP_SleepBlockEnd(SLEEP_EnergyMode_t eMode)
End sleep block in the requested energy mode.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void SLEEP_SleepBlockBegin(SLEEP_EnergyMode_t eMode)
Begin sleep block in the requested energy mode.
void SLEEP_Init(SLEEP_CbFuncPtr_t pSleepCb, SLEEP_CbFuncPtr_t pWakeUpCb)
Initialize the Sleep module.
SLEEP_EnergyMode_t SLEEP_Sleep(void)
Sets the system to sleep into the lowest possible energy mode.
void(* SLEEP_CbFuncPtr_t)(SLEEP_EnergyMode_t)
void SLEEP_ForceSleepInEM4(void)
Force the device to go to EM4 without doing any checks.
SLEEP_EnergyMode_t SLEEP_LowestEnergyModeGet(void)
Gets the lowest energy mode that the system is allowed to be set to.