Lines Matching full:mode
45 /** @defgroup PWR_PVD_Mode_Mask PWR PVD Mode Mask
151 (+) The PVD is stopped in Standby mode.
157 (+) WakeUp pins are used to wakeup the system from Standby mode or Shutdown mode.
167 …(+) Low-power Run mode: core and peripherals are running, main regulator off, low power regulator …
168 …(+) Sleep mode: Cortex-M4 core stopped, peripherals kept running, main and low power regulators on.
169 … (+) Low-power Sleep mode: Cortex-M4 core stopped, peripherals kept running, main regulator off,
171 (+) Stop 0 mode: all clocks are stopped except LSI and LSE, main and low power regulators on.
172 …(+) Stop 1 mode: all clocks are stopped except LSI and LSE, main regulator off, low power regulato…
173 …(+) Stop 2 mode: all clocks are stopped except LSI and LSE, main regulator off, low power regulato…
174 reduced set of waking up IPs compared to Stop 1 mode.
175 … (+) Standby mode with SRAM2: all clocks are stopped except LSI and LSE, SRAM2 content preserved,
177 …(+) Standby mode without SRAM2: all clocks are stopped except LSI and LSE, main and low power regu…
178 (+) Shutdown mode: all clocks are stopped except LSE, main and low power regulators off.
181 *** Low-power run mode ***
184 (+) Entry: (from main run mode)
192 *** Sleep mode / Low-power sleep mode ***
196 The Sleep mode / Low-power Sleep mode is entered through HAL_PWR_EnterSLEEPMode() API
197 … in specifying whether or not the regulator is forced to low-power mode and if exit is interrupt
199 (++) PWR_MAINREGULATOR_ON: Sleep mode (regulator in main mode).
200 (++) PWR_LOWPOWERREGULATOR_ON: Low-power sleep (regulator in low power mode).
202 (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction
203 (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction
210 (++) Any wake-up event such as an EXTI line configured in event mode.
212 [..] When exiting the Low-power sleep mode by issuing an interrupt or a wakeup event,
213 the MCU is in Low-power Run mode.
220 (++) HAL_PWREx_EnterSTOP0Mode() for mode 0 or HAL_PWREx_EnterSTOP1Mode() for mode 1 or
222 (++) HAL_PWREx_EnterSTOP2Mode() for mode 2.
226 (+) Exit (interrupt or event-triggered, specified when entering STOP mode):
227 (++) PWR_STOPENTRY_WFI: enter Stop mode with WFI instruction
228 (++) PWR_STOPENTRY_WFE: enter Stop mode with WFE instruction
231 (++) Any EXTI Line (Internal or External) configured in Interrupt mode.
233 when programmed in wakeup mode.
235 (++) Any EXTI Line (Internal or External) configured in Event mode.
238 … When exiting Stop 0 and Stop 1 modes, the MCU is either in Run mode or in Low-power Run mode
240 When exiting Stop 2 mode, the MCU is in Run mode.
242 *** Standby mode ***
245 The Standby mode offers two options:
246 …tion a) all clocks off except LSI and LSE, RRS bit set (keeps voltage regulator in low power mode).
254 (+++) The Standby mode is entered through HAL_PWR_EnterSTANDBYMode() API.
264 …[..] After waking up from Standby mode, program execution restarts in the same way as after a R…
267 *** Shutdown mode ***
270 In Shutdown mode,
275 The Shutdown mode is entered through HAL_PWREx_EnterSHUTDOWNMode() API.
281 …[..] After waking up from Shutdown mode, program execution restarts in the same way as after a Res…
284 *** Auto-wakeup (AWU) from low-power mode ***
287 The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC
289 an external interrupt (Auto-wakeup mode).
294 (++) To wake up from the Stop mode with an RTC alarm event, it is necessary to
297 (++) To wake up from the Stop mode with an RTC Tamper or time stamp event, it
301 (++) To wake up from the Stop mode with an RTC WakeUp event, it is necessary to
321 assert_param(IS_PWR_PVD_MODE(sConfigPVD->Mode)); in HAL_PWR_ConfigPVD()
326 /* Clear any previous config. Keep it clear if no event or IT mode is selected */ in HAL_PWR_ConfigPVD()
332 /* Configure interrupt mode */ in HAL_PWR_ConfigPVD()
333 if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT) in HAL_PWR_ConfigPVD()
338 /* Configure event mode */ in HAL_PWR_ConfigPVD()
339 if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT) in HAL_PWR_ConfigPVD()
345 if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE) in HAL_PWR_ConfigPVD()
350 if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE) in HAL_PWR_ConfigPVD()
420 * @brief Enter Sleep or Low-power Sleep mode.
421 * @note In Sleep/Low-power Sleep mode, all I/O pins keep the same state as in Run mode.
422 * @param Regulator: Specifies the regulator state in Sleep/Low-power Sleep mode.
424 * @arg @ref PWR_MAINREGULATOR_ON Sleep mode (regulator in main mode)
425 * @arg @ref PWR_LOWPOWERREGULATOR_ON Low-power Sleep mode (regulator in low-power mode)
426 * @note Low-power Sleep mode is entered from Low-power Run mode. Therefore, if not yet
427 * in Low-power Run mode before calling HAL_PWR_EnterSLEEPMode() with Regulator set
433 * @note When exiting Low-power Sleep mode, the MCU is in Low-power Run mode. To move in
434 * Run mode, the user must resort to HAL_PWREx_DisableLowPowerRunMode() API.
435 * @param SLEEPEntry: Specifies if Sleep mode is entered with WFI or WFE instruction.
437 * @arg @ref PWR_SLEEPENTRY_WFI enter Sleep or Low-power Sleep mode with WFI instruction
438 * @arg @ref PWR_SLEEPENTRY_WFE enter Sleep or Low-power Sleep mode with WFE instruction
452 /* If in low-power run mode at this point, exit it */ in HAL_PWR_EnterSLEEPMode()
460 /* Regulator now in main mode. */ in HAL_PWR_EnterSLEEPMode()
464 /* If in run mode, first move to low-power run mode. in HAL_PWR_EnterSLEEPMode()
475 /* Select SLEEP mode entry -------------------------------------------------*/ in HAL_PWR_EnterSLEEPMode()
491 * @brief Enter Stop 0 mode
493 * on devices where only "Stop mode" is mentioned with main or low power regulator ON.
494 * @note In Stop mode, all I/O pins keep the same state as in Run mode.
502 …* The voltage regulator can be configured either in normal (Stop 0) or low-power mode (Stop…
503 * @note When exiting Stop 0 or Stop 1 mode by issuing an interrupt or a wakeup event,
506 * @note When the voltage regulator operates in low power mode (Stop 1), an additional
508 * By keeping the internal regulator ON during Stop mode (Stop 0), the consumption
510 * @param Regulator: Specifies the regulator state in Stop mode.
512 * @arg @ref PWR_MAINREGULATOR_ON Stop 0 mode (main regulator ON)
513 * @arg @ref PWR_LOWPOWERREGULATOR_ON Stop 1 mode (low power regulator ON)
514 * @param STOPEntry: Specifies Stop 0 or Stop 1 mode is entered with WFI or WFE instruction.
516 * @arg @ref PWR_STOPENTRY_WFI Enter Stop 0 or Stop 1 mode with WFI instruction.
517 * @arg @ref PWR_STOPENTRY_WFE Enter Stop 0 or Stop 1 mode with WFE instruction.
526 /* Select the regulator state in STOP mode */ in HAL_PWR_EnterSTOPMode()
528 /* Stop 0 mode with Main Regulator */ in HAL_PWR_EnterSTOPMode()
532 /* Select Stop mode entry --------------------------------------------------*/ in HAL_PWR_EnterSTOPMode()
550 * @brief Enter Standby mode.
551 * @note In Standby mode, the PLL, the HSI, the MSI and the HSE oscillators are switched
553 * in which case the regulator is in low-power mode.
563 * These states are effective in Standby mode only if APC bit is set through
569 /* Set Stand-by mode */ in HAL_PWR_EnterSTANDBYMode()
580 * @brief Enter Shutdown mode.
581 * @note In Shutdown mode, the PLL, the HSI, the MSI, the LSI and the HSE oscillators are switched
591 /* Set Shutdown mode */ in HAL_PWR_EnterSHUTDOWNMode()
607 * @brief Indicate Sleep-On-Exit when returning from Handler mode to Thread mode.
609 * re-enters SLEEP mode when an interruption handling is over.
621 * @brief Disable Sleep-On-Exit feature when returning from Handler mode to Thread mode.
623 * re-enters SLEEP mode when an interruption handling is over.