sleep.c File Reference
Energy Modes management driver.
License
Copyright 2018 Silicon Laboratories Inc. www.silabs.com
SPDX-License-Identifier: Zlib
The licensor of this software is Silicon Laboratories Inc.
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
Definition in file
sleep.c
.
#include "em_device.h"
#include "
em_assert.h
"
#include "
em_core.h
"
#include "
em_rmu.h
"
#include "
em_emu.h
"
#include "
sleep.h
"
#include <stdlib.h>
Functions |
|
void | SLEEP_ForceSleepInEM4 (void) |
Force the device to go to EM4 without doing any checks.
|
|
void | SLEEP_Init ( SLEEP_CbFuncPtr_t pSleepCb, SLEEP_CbFuncPtr_t pWakeUpCb) |
Initialize the Sleep module.
|
|
void | SLEEP_InitEx (const SLEEP_Init_t *init) |
Initialize the Sleep module.
|
|
SLEEP_EnergyMode_t | SLEEP_LowestEnergyModeGet (void) |
Gets the lowest energy mode that the system is allowed to be set to.
|
|
SLEEP_EnergyMode_t | SLEEP_Sleep (void) |
Sets the system to sleep into the lowest possible energy mode.
|
|
void | SLEEP_SleepBlockBegin ( SLEEP_EnergyMode_t eMode) |
Begin sleep block in the requested energy mode.
|
|
void | SLEEP_SleepBlockEnd ( SLEEP_EnergyMode_t eMode) |
End sleep block in the requested energy mode.
|
|