MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
Low Power (Power Sequencer)

Modules

 PWRSEQ_Registers
 Registers, Bit Masks and Bit Positions for the PWRSEQ Peripheral Module.
 

Functions

void LP_EnableGPIOWakeup (gpio_cfg_t *wu_pins)
 Enables the selected GPIO port and its selected pins to wake up the device from any low power mode. More...
 
void LP_DisableGPIOWakeup (gpio_cfg_t *wu_pins)
 Disables the selected GPIO port and its selected pins as a wake up source. More...
 
void LP_EnableRTCAlarmWakeup (void)
 Enables the RTC alarm to wake up the device from any low power mode.
 
void LP_DisableRTCAlarmWakeup (void)
 Disables the RTC alarm from waking up the device.
 
void LP_SysRam0LightSleep (void)
 Puts System Ram 0 in light sleep.
 
void LP_SysRam1LightSleep (void)
 Puts System Ram 1 in light sleep.
 
void LP_SysRam2LightSleep (void)
 Puts System Ram 2 in light sleep.
 
void LP_SysRam3LightSleep (void)
 Puts System Ram 3 in light sleep.
 
void LP_SysRam4LightSleep (void)
 Puts System Ram 4 in light sleep.
 
void LP_SysRam5LightSleep (void)
 Puts System Ram 5 in light sleep.
 
void LP_SysRam0Shutdown (void)
 Shutdown System Ram 0.
 
void LP_SysRam0Wakeup (void)
 Wakeup System Ram 0.
 
void LP_SysRam1Shutdown (void)
 Shutdown System Ram 1.
 
void LP_SysRam1Wakeup (void)
 Wakeup System Ram 1.
 
void LP_SysRam2Shutdown (void)
 Shutdown System Ram 2.
 
void LP_SysRam2Wakeup (void)
 Wakeup System Ram 2.
 
void LP_SysRam3Shutdown (void)
 Shutdown System Ram 3.
 
void LP_SysRam3Wakeup (void)
 Wakeup System Ram 3.
 
void LP_SysRam4Shutdown (void)
 Shutdown System Ram 4.
 
void LP_SysRam4Wakeup (void)
 Wakeup System Ram 4.
 
void LP_SysRam5Shutdown (void)
 Shutdown System Ram 5.
 
void LP_SysRam5Wakeup (void)
 Wakeup System Ram 5.
 
void LP_ICacheShutdown (void)
 Shutdown Internal Cache.
 
void LP_ICacheWakeup (void)
 Wakeup Internal Cache.
 
void LP_ICacheXIPShutdown (void)
 Shutdown Internal Cache XIP.
 
void LP_ICacheXIPWakeup (void)
 Wakeup Internal Cache XIP.
 
void LP_CryptoShutdown (void)
 Shutdown Crypto.
 
void LP_CryptoWakeup (void)
 Wakeup Crypto.
 
void LP_USBFIFOShutdown (void)
 Shutdown USB FIFO.
 
void LP_USBFIFOWakeup (void)
 Wakeup USB FIFO.
 
void LP_ROMShutdown (void)
 Shutdown ROM.
 
void LP_ROMWakeup (void)
 Wakeup ROM.
 
void LP_ROM1Shutdown (void)
 Shutdown ROM 1.
 
void LP_ROM1Wakeup (void)
 Wakeup ROM 1.
 
void LP_ICache1Shutdown (void)
 Shutdown Internal Cache 1.
 
void LP_ICache1Wakeup (void)
 Wakeup Internal Cache 1.
 
void LP_SysCacheShutdown (void)
 Shutdown System Cache.
 
void LP_SysCacheWakeup (void)
 Wakeup System Cache.
 
void LP_USBSWLPDisable (void)
 Disable USB Software Low Power.
 
void LP_USBSWLPEnable (void)
 Enable USB Software Low Power.
 
void LP_VDD2PowerDown (void)
 Power Down VDD2.
 
void LP_VDD2PowerUp (void)
 Power up VDD2.
 
void LP_VDD3PowerDown (void)
 Power Down VDD3.
 
void LP_VDD3PowerUp (void)
 Power Up VDD3.
 
void LP_VDD4PowerDown (void)
 Power Down VDD4.
 
void LP_VDD4PowerUp (void)
 Power Up VDD4.
 
void LP_VDD5PowerDown (void)
 Power Down VDD5.
 
void LP_VDD5PowerUp (void)
 Power Up VDD5.
 
void LP_SIMOVregBPowerDown (void)
 Power Down SIMOV regB.
 
void LP_SIMOVregBPowerUp (void)
 Power Up SIMOV regB.
 
void LP_SIMOVregDPowerDown (void)
 Power Down SIMOV regD.
 
void LP_SIMOVregDPowerUp (void)
 Power Up SIMOV regD.
 
void LP_FastWakeupEnable (void)
 Enable Fast Wakeup.
 
void LP_FastWakeupDisable (void)
 Disable Fast Wakeup.
 
void LP_PowerFailMonitorEnable (void)
 Enable Power Fail Monitor.
 
void LP_PowerFailMonitorDisable (void)
 Disable Power Fail Monitor.
 
void LP_EnterSleepMode (void)
 Places the device into SLEEP mode. More...
 
void LP_EnterDeepSleepMode (void)
 Places the device into DEEPSLEEP mode. More...
 
void LP_EnterBackupMode (void)
 Places the device into BACKUP mode. More...
 
void LP_EnterShutDownMode (void)
 Places the device into Shutdown mode. More...
 

Detailed Description

Function Documentation

void LP_EnableGPIOWakeup ( gpio_cfg_t wu_pins)

Call this function multiple times to enable pins on multiple ports. This function does not configure the GPIO pins nor does it setup their interrupt functionality.

Parameters
wu_pinsThe port and pins to configure as wakeup sources. Only the gpio and mask fields of the structure are used. The func and pad fields are ignored.
void LP_DisableGPIOWakeup ( gpio_cfg_t wu_pins)

Call this function multiple times to disable pins on multiple ports.

Parameters
wu_pinsThe port and pins to disable as wakeup sources. Only the gpio and mask fields of the structure are used. The func and pad fields are ignored.
void LP_EnterSleepMode ( void  )

This function returns once any interrupt occurs.

void LP_EnterDeepSleepMode ( void  )

This function returns once an RTC or external interrupt occur.

void LP_EnterBackupMode ( void  )

CPU state is not maintained in this mode, so this function never returns. Instead, the device will restart once an RTC or external interrupt occur.

void LP_EnterShutDownMode ( void  )

CPU state is not maintained in this mode, so this function never returns. Instead, the device will restart once an RTC, USB wakeup, or external interrupt occur.