![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.100
NXP Semiconductors
|
This document consists of sections titled with Framework Overview, Data Structures, Enumerations, Functions, etc., each with an overview list and detailed documentation. It is recommended to read the Framework Overview first for it includes a comprehensive description of the framework. Other sections give detailed information for APIs, enums, macros, etc., for your further reference.
Macros | |
#define | AT_ALWAYS_ON_DATA(var) var |
Framework OverviewThe power manager framework manages the transition of both active-to-sleep and sleep-to-active states of the MCU. More... | |
#define AT_ALWAYS_ON_DATA | ( | var | ) | var |
It provides the upper layer software the ability to set and release constraints of the hardware basic resources(such as clock, power, ram, etc.) and the ability to register callback functions to be invoked before entering/after exiting the sleep mode. In addition, the upper layer software can register the wakeup source service function to be executed if related wakeup source occurs.
+-----------------------------------------------------------------+ | Application Software | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ | Stacks and Components | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ | Power Manager Framework | +-----------------------------------------------------------------+ +---------------+ +---------------+ +-----------------------+ | Power Drivers | | Clock Drivers | | Wakeup Source Drivers | +---------------+ +---------------+ +-----------------------+
As shown above, the power manager framework safely manages the transitions to and from power saving states by using MCUXpresso SDK drivers, and the upper layer software only need to use the APIs of power manager framework. Different MCUs have the same top-level APIs, concepts and conventions.
The power manager framework consists of four modules: policy module, sequencer module, wakeup source manager module, and notification module.
To make the power manager framework adapts to different MCU families, the power manager framework adopts a layer-designed idea, extracting common parts as the pm_core level, and separating device-related parts as the pm_device level. In details, the pm_core level contains policy module, wakeup source manager module, and notification module. The pm_device level contains sequencer module.