1.25.21.3 1.26.18.3 1.27.20.3 1.28.23.3 SHDWC_GetWakeup Function
C
uint32_t SHDWC_GetWakeup(void)
Summary
Read and clear the status register.
Description
Reads the cause of the wake-up. Since multiple wake-up events can occur before this register is read a bitmask is returned rather than a single enumerated value.
Precondition
None.
Parameters
None.
Returns
A bitmask of all wake-up events that occured since the last read of the status register.
Example
uint32_t wakeupEvents = SHDWC_GetWakeup(void); if (wakeupEvenets & SHDW_SR_RTCWK_Msk) { //Handle RTC wake-up event }