Developer World
Spresense Arduino Library v3.2.0-77d75a4
Low Power Library API

API for using Low Power API. More...

Classes

class  LowPowerClass
 This provides the features fo the power saving. More...
 

Enumerations

enum  bootcause_e {
  POR_SUPPLY = 0 , WDT_REBOOT = 1 , WDT_RESET = 2 , DEEP_WKUPL = 3 ,
  DEEP_WKUPS = 4 , DEEP_RTC = 5 , DEEP_USB_ATTACH = 6 , DEEP_OTHERS = 7 ,
  COLD_SCU_INT = 8 , COLD_RTC_ALM0 = 9 , COLD_RTC_ALM1 = 10 , COLD_RTC_ALM2 = 11 ,
  COLD_RTC_ALMERR = 12 , COLD_GPIO_IRQ36 = 16 , COLD_GPIO_IRQ37 = 17 , COLD_GPIO_IRQ38 = 18 ,
  COLD_GPIO_IRQ39 = 19 , COLD_GPIO_IRQ40 = 20 , COLD_GPIO_IRQ41 = 21 , COLD_GPIO_IRQ42 = 22 ,
  COLD_GPIO_IRQ43 = 23 , COLD_GPIO_IRQ44 = 24 , COLD_GPIO_IRQ45 = 25 , COLD_GPIO_IRQ46 = 26 ,
  COLD_GPIO_IRQ47 = 27 , COLD_SEN_INT = 28 , COLD_PMIC_INT = 29 , COLD_USB_DETACH = 30 ,
  COLD_USB_ATTACH = 31 , POR_NORMAL = 32
}
 
enum  clockmode_e { CLOCK_MODE_156MHz = 0 , CLOCK_MODE_32MHz = 1 , CLOCK_MODE_8MHz = 2 }
 

Variables

LowPowerClass LowPower
 

Detailed Description

API for using Low Power API.

Enumeration Type Documentation

◆ bootcause_e

Enumerator
POR_SUPPLY 

Power On Reset with Power Supplied

WDT_REBOOT 

System WDT expired or Self Reboot

WDT_RESET 

Chip WDT expired

DEEP_WKUPL 

In DeepSleep state, Detected WKUPL signal

DEEP_WKUPS 

In DeepSleep state, Detected WKUPS signal

DEEP_RTC 

In DeepSleep state, RTC Alarm expired

DEEP_USB_ATTACH 

In DeepSleep state, USB Connected

DEEP_OTHERS 

In DeepSleep state, Reserved others cause occurred

COLD_SCU_INT 

In ColdSleep state, Detected SCU Interrupt

COLD_RTC_ALM0 

In ColdSleep state, RTC Alarm0 expired

COLD_RTC_ALM1 

In ColdSleep state, RTC Alarm1 expired

COLD_RTC_ALM2 

In ColdSleep state, RTC Alarm2 expired

COLD_RTC_ALMERR 

In ColdSleep state, RTC Alarm Error occurred

COLD_GPIO_IRQ36 

In ColdSleep state, Detected GPIO IRQ 36

COLD_GPIO_IRQ37 

In ColdSleep state, Detected GPIO IRQ 37

COLD_GPIO_IRQ38 

In ColdSleep state, Detected GPIO IRQ 38

COLD_GPIO_IRQ39 

In ColdSleep state, Detected GPIO IRQ 39

COLD_GPIO_IRQ40 

In ColdSleep state, Detected GPIO IRQ 40

COLD_GPIO_IRQ41 

In ColdSleep state, Detected GPIO IRQ 41

COLD_GPIO_IRQ42 

In ColdSleep state, Detected GPIO IRQ 42

COLD_GPIO_IRQ43 

In ColdSleep state, Detected GPIO IRQ 43

COLD_GPIO_IRQ44 

In ColdSleep state, Detected GPIO IRQ 44

COLD_GPIO_IRQ45 

In ColdSleep state, Detected GPIO IRQ 45

COLD_GPIO_IRQ46 

In ColdSleep state, Detected GPIO IRQ 46

COLD_GPIO_IRQ47 

In ColdSleep state, Detected GPIO IRQ 47

COLD_SEN_INT 

In ColdSleep state, Detected SEN_INT Interrupt

COLD_PMIC_INT 

In ColdSleep state, Detected PMIC Interrupt

COLD_USB_DETACH 

In ColdSleep state, USB Disconnected

COLD_USB_ATTACH 

In ColdSleep state, USB Connected

POR_NORMAL 

Power On Reset

◆ clockmode_e

Enumerator
CLOCK_MODE_156MHz 

High clock mode (CPU = 156MHz)

CLOCK_MODE_32MHz 

Middle clock mode (CPU = 32MHz)

CLOCK_MODE_8MHz 

Low clock mode (CPU = 8.2MHz)