System low power header file.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
#include <stdint.h>
#include <stdbool.h>
Typedefs | |
typedef void(* | exitFromSleepCb_t )(void) |
Enumerations | |
enum | SysSleepState_t { SLEEP_OFF = 0, SLEEP_TRANSITION_TO_OFF, SLEEP_ON } |
Functions | |
void | EUSART1WakeUp (void) |
void | SysExitFromSleep (void) |
SysSleepState_t | SysGetGoToSleepState (void) |
void | SysGoToSleep (void) |
void | SysSetGoToSleepState (SysSleepState_t sleepState) |
void | SysSleepInit (exitFromSleepCb_t exitFromSleepCb) |
void | SysSleepStart (uint32_t ms) |
typedef void(* exitFromSleepCb_t)(void) |
enum SysSleepState_t |
void EUSART1WakeUp | ( | void | ) |
References eusart1WakeUpState, NOP, SLEEP_OFF, SLEEP_TRANSITION_TO_OFF, and SysSetGoToSleepState().
void SysExitFromSleep | ( | void | ) |
References exitFromSleep, pExitFromSleepCb, sleepTimerId, SwTimerStop(), and SysCfgRun().
SysSleepState_t SysGetGoToSleepState | ( | void | ) |
References goToSleep.
void SysGoToSleep | ( | void | ) |
void SysSetGoToSleepState | ( | SysSleepState_t | sleepState | ) |
References exitFromSleep, goToSleep, and SLEEP_OFF.
Referenced by EUSART1WakeUp(), and OnSleepTimerEvent().
void SysSleepInit | ( | exitFromSleepCb_t | exitFromSleepCb | ) |
void SysSleepStart | ( | uint32_t | ms | ) |