Specify the wakeup sources for LPDS and Shutdown. More...
#include <PowerCC32XX.h>
Data Fields | |
bool | enableGPIOWakeupLPDS |
bool | enableGPIOWakeupShutdown |
bool | enableNetworkWakeupLPDS |
uint32_t | wakeupGPIOSourceLPDS |
The GPIO source for wakeup from LPDS. More... | |
uint32_t | wakeupGPIOTypeLPDS |
The GPIO trigger type for wakeup from LPDS. More... | |
void(* | wakeupGPIOFxnLPDS )(uint_least8_t argument) |
Function to be called when the configured GPIO triggers wakeup from LPDS. More... | |
uint_least8_t | wakeupGPIOFxnLPDSArg |
The argument to be passed to wakeupGPIOFxnLPDS() More... | |
uint32_t | wakeupGPIOSourceShutdown |
The GPIO sources for wakeup from shutdown. More... | |
uint32_t | wakeupGPIOTypeShutdown |
The GPIO trigger type for wakeup from shutdown. More... | |
Specify the wakeup sources for LPDS and Shutdown.
The wakeup sources for LPDS and Shutdown can be dynamically changed at runtime, via PowerCC32XX_configureWakeup(). The application should fill a structure of this type, and pass it as the parameter to PowerCC32XX_configureWakeup() to specify the new wakeup settings.
bool PowerCC32XX_Wakeup::enableGPIOWakeupLPDS |
Enable GPIO as a wakeup source for LPDS
bool PowerCC32XX_Wakeup::enableGPIOWakeupShutdown |
Enable GPIO as a wakeup source for shutdown
bool PowerCC32XX_Wakeup::enableNetworkWakeupLPDS |
Enable Network activity as a wakeup source for LPDS
uint32_t PowerCC32XX_Wakeup::wakeupGPIOSourceLPDS |
The GPIO source for wakeup from LPDS.
Only one GPIO {2,4,11,13,17,24,26} can be specified as a wake source for LPDS. The GPIO must be specified as one of the following (as defined in driverlib/prcm.h): PRCM_LPDS_GPIO2, PRCM_LPDS_GPIO4, PRCM_LPDS_GPIO11, PRCM_LPDS_GPIO13, PRCM_LPDS_GPIO17, PRCM_LPDS_GPIO24, PRCM_LPDS_GPIO26
uint32_t PowerCC32XX_Wakeup::wakeupGPIOTypeLPDS |
The GPIO trigger type for wakeup from LPDS.
Value can be one of the following (defined in driverlib/prcm.h): PRCM_LPDS_LOW_LEVEL, PRCM_LPDS_HIGH_LEVEL, PRCM_LPDS_FALL_EDGE, PRCM_LPDS_RISE_EDGE
void(* PowerCC32XX_Wakeup::wakeupGPIOFxnLPDS) (uint_least8_t argument) |
Function to be called when the configured GPIO triggers wakeup from LPDS.
During LPDS the internal GPIO module is powered off, and special periphery logic is used instead to detect the trigger and wake the device. No GPIO interrupt service routine will be triggered in this case (even if an ISR is configured, and used normally to detect GPIO interrupts when not in LPDS). This function can be used in lieu of a GPIO ISR, to take specific action upon LPDS wakeup.
A value of NULL indicates no GPIO wakeup function will be called.
An argument for this wakeup function can be specified via wakeupGPIOFxnLPDSArg.
Note that this wakeup function will be called as one of the last steps in Power_sleep(), after all notifications have been sent out, and after pins have been restored to their previous (non-parked) states.
uint_least8_t PowerCC32XX_Wakeup::wakeupGPIOFxnLPDSArg |
The argument to be passed to wakeupGPIOFxnLPDS()
uint32_t PowerCC32XX_Wakeup::wakeupGPIOSourceShutdown |
The GPIO sources for wakeup from shutdown.
Only one GPIO {2,4,11,13,17,24,26} can be specified as a wake source for Shutdown. The GPIO must be specified as one of the following (as defined in driverlib/prcm.h): PRCM_HIB_GPIO2, PRCM_HIB_GPIO4, PRCM_HIB_GPIO11, PRCM_HIB_GPIO13, PRCM_HIB_GPIO17, PRCM_HIB_GPIO24, PRCM_HIB_GPIO26
uint32_t PowerCC32XX_Wakeup::wakeupGPIOTypeShutdown |
The GPIO trigger type for wakeup from shutdown.
Value can be one of the following (defined in driverlib/prcm.h): PRCM_HIB_LOW_LEVEL, PRCM_HIB_HIGH_LEVEL, PRCM_HIB_FALL_EDGE, PRCM_HIB_RISE_EDGE