MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Power Driver

Overview

Power driver provides APIs to control peripherals power and control the system power mode.

Driver version

#define FSL_POWER_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 power driver version 2.0.1. More...
 

Power Configuration

static void POWER_EnablePD (pd_bit_t en)
 API to enable PDRUNCFG bit in the Syscon. More...
 
static void POWER_DisablePD (pd_bit_t en)
 API to disable PDRUNCFG bit in the Syscon. More...
 
static void POWER_EnableDeepSleep (void)
 API to enable deep sleep bit in the ARM Core. More...
 
static void POWER_DisableDeepSleep (void)
 API to disable deep sleep bit in the ARM Core. More...
 
static void POWER_PowerDownFlash (void)
 API to power down flash controller. More...
 
static void POWER_PowerUpFlash (void)
 API to power up flash controller. More...
 
void POWER_SetPLL (void)
 Power Library API to power the PLLs. More...
 
void POWER_SetUsbPhy (void)
 Power Library API to power the USB PHY. More...
 
void POWER_EnterPowerMode (power_mode_cfg_t mode, uint64_t exclude_from_pd)
 Power Library API to enter different power mode. More...
 
void POWER_EnterSleep (void)
 Power Library API to enter sleep mode. More...
 
void POWER_EnterDeepSleep (uint64_t exclude_from_pd)
 Power Library API to enter deep sleep mode. More...
 
void POWER_EnterDeepPowerDown (uint64_t exclude_from_pd)
 Power Library API to enter deep power down mode. More...
 
void POWER_SetVoltageForFreq (uint32_t freq)
 Power Library API to choose normal regulation and set the voltage for the desired operating frequency. More...
 
uint32_t POWER_GetLibVersion (void)
 Power Library API to return the library version. More...
 

Macro Definition Documentation

#define FSL_POWER_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Function Documentation

static void POWER_EnablePD ( pd_bit_t  en)
inlinestatic

Note that enabling the bit powers down the peripheral

Parameters
enperipheral for which to enable the PDRUNCFG bit
Returns
none
static void POWER_DisablePD ( pd_bit_t  en)
inlinestatic

Note that disabling the bit powers up the peripheral

Parameters
enperipheral for which to disable the PDRUNCFG bit
Returns
none
static void POWER_EnableDeepSleep ( void  )
inlinestatic
Returns
none
static void POWER_DisableDeepSleep ( void  )
inlinestatic
Returns
none
static void POWER_PowerDownFlash ( void  )
inlinestatic
Returns
none
static void POWER_PowerUpFlash ( void  )
inlinestatic
Returns
none
void POWER_SetPLL ( void  )
Returns
none
void POWER_SetUsbPhy ( void  )
Returns
none
void POWER_EnterPowerMode ( power_mode_cfg_t  mode,
uint64_t  exclude_from_pd 
)
Parameters
modePower mode configuration
exclude_from_pdBit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) that needs to be powered on during power mode selected.
Returns
none
void POWER_EnterSleep ( void  )
Returns
none
void POWER_EnterDeepSleep ( uint64_t  exclude_from_pd)
Parameters
exclude_from_pdBit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) bits that needs to be powered on during deep sleep
Returns
none
void POWER_EnterDeepPowerDown ( uint64_t  exclude_from_pd)
Parameters
exclude_from_pdBit mask of the PDRUNCFG0(low 32bits) and PDRUNCFG1(high 32bits) that needs to be powered on during deep power down mode, but this is has no effect as the voltages are cut off.
Returns
none
void POWER_SetVoltageForFreq ( uint32_t  freq)
Parameters
freq- The desired frequency at which the part would like to operate, note that the voltage and flash wait states should be set before changing frequency
Returns
none
uint32_t POWER_GetLibVersion ( void  )
Returns
version number of the power library