MCUXpresso SDK API Reference Manual  Rev 2.14.0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
GPC: General Power Controller Driver

Overview

The MCUXpresso SDK provides a peripheral driver for the General Power Controller (GPC) module of MCUXpresso SDK devices.

API functions are provided to configure the system about working in dedicated power mode. There are mainly about enabling the power for memory, enabling the wakeup sources for STOP modes, and power up/down operations for various peripherals.

Functions

void GPC_EnableIRQ (GPC_Type *base, uint32_t irqId)
 Enable the IRQ. More...
 
void GPC_DisableIRQ (GPC_Type *base, uint32_t irqId)
 Disable the IRQ. More...
 
bool GPC_GetIRQStatusFlag (GPC_Type *base, uint32_t irqId)
 Get the IRQ/Event flag. More...
 
static void GPC_RequestMEGAPowerOn (GPC_Type *base, bool enable)
 Requests the MEGA power switch sequence. More...
 

Driver version

#define FSL_GPC_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))
 GPC driver version 2.1.1. More...
 

Macro Definition Documentation

#define FSL_GPC_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))

Function Documentation

void GPC_EnableIRQ ( GPC_Type *  base,
uint32_t  irqId 
)
Parameters
baseGPC peripheral base address.
irqIdID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms.
void GPC_DisableIRQ ( GPC_Type *  base,
uint32_t  irqId 
)
Parameters
baseGPC peripheral base address.
irqIdID number of IRQ to be disabled, available range is 32-159. 0-31 is available in some platforms.
bool GPC_GetIRQStatusFlag ( GPC_Type *  base,
uint32_t  irqId 
)
Parameters
baseGPC peripheral base address.
irqIdID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms.
Returns
Indicated IRQ/Event is asserted or not.
static void GPC_RequestMEGAPowerOn ( GPC_Type *  base,
bool  enable 
)
inlinestatic
Parameters
baseGPC peripheral base address.
enableEnable the power on sequence, or the power down sequence.