The MCUXpresso SDK provides a Peripheral driver for the Power Management Controller (PMC) module of MCUXpresso SDK devices. The PMC module contains internal voltage regulator, power on reset, low-voltage detect system, and high-voltage detect system. 
      
        
          | struct pmc_low_volt_detect_config_t | 
        
      
 
 
      
        
          | struct pmc_low_volt_warning_config_t | 
        
      
 
 
      
        
          | struct pmc_bandgap_buffer_config_t | 
        
      
 
      
        
          | bool pmc_bandgap_buffer_config_t::enable | 
        
      
 
 
      
        
          | bool pmc_bandgap_buffer_config_t::enableInLowPowerMode | 
        
      
 
 
 
 
| Enumerator | 
|---|
| kPMC_LowVoltDetectLowTrip  | 
 Low-trip point selected (VLVD = VLVDL )  
 | 
| kPMC_LowVoltDetectHighTrip  | 
 High-trip point selected (VLVD = VLVDH )  
 | 
 
 
| Enumerator | 
|---|
| kPMC_LowVoltWarningLowTrip  | 
 Low-trip point selected (VLVW = VLVW1)  
 | 
| kPMC_LowVoltWarningMid1Trip  | 
 Mid 1 trip point selected (VLVW = VLVW2)  
 | 
| kPMC_LowVoltWarningMid2Trip  | 
 Mid 2 trip point selected (VLVW = VLVW3)  
 | 
| kPMC_LowVoltWarningHighTrip  | 
 High-trip point selected (VLVW = VLVW4)  
 | 
 
 
This function configures the low-voltage detect setting, including the trip point voltage setting, enables or disables the interrupt, enables or disables the system reset.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
    | config | Low-voltage detect configuration structure.  | 
  
   
 
 
  
  
      
        
          | static bool PMC_GetLowVoltDetectFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function reads the current LVDF status. If it returns 1, a low-voltage event is detected.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
  
   
- Returns
 - Current low-voltage detect flag
- true: Low-voltage detected
 
- false: Low-voltage not detected 
 
 
 
 
  
  
      
        
          | static void PMC_ClearLowVoltDetectFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function acknowledges the low-voltage detection errors (write 1 to clear LVDF).
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
  
   
 
 
This function configures the low-voltage warning setting, including the trip point voltage setting and enabling or disabling the interrupt.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
    | config | Low-voltage warning configuration structure.  | 
  
   
 
 
  
  
      
        
          | static bool PMC_GetLowVoltWarningFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function polls the current LVWF status. When 1 is returned, it indicates a low-voltage warning event. LVWF is set when V Supply transitions below the trip point or after reset and V Supply is already below the V LVW.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
  
   
- Returns
 - Current LVWF status
- true: Low-voltage Warning Flag is set.
 
- false: the Low-voltage Warning does not happen. 
 
 
 
 
  
  
      
        
          | static void PMC_ClearLowVoltWarningFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function acknowledges the low voltage warning errors (write 1 to clear LVWF).
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
  
   
 
 
This function configures the PMC bandgap, including the drive select and behavior in low-power mode.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
    | config | Pointer to the configuration structure  | 
  
   
 
 
  
  
      
        
          | static bool PMC_GetPeriphIOIsolationFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function reads the Acknowledge Isolation setting that indicates whether certain peripherals and the I/O pads are in a latched state as a result of having been in the VLLS mode.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
    | base | Base address for current PMC instance.  | 
  
   
- Returns
 - ACK isolation 0 - Peripherals and I/O pads are in a normal run state. 1 - Certain peripherals and I/O pads are in an isolated and latched state. 
 
 
 
  
  
      
        
          | static void PMC_ClearPeriphIOIsolationFlag  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function clears the ACK Isolation flag. Writing one to this setting when it is set releases the I/O pads and certain peripherals to their normal run mode state.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
  
   
 
 
  
  
      
        
          | static bool PMC_IsRegulatorInRunRegulation  | 
          ( | 
          PMC_Type *  | 
          base | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
This function returns the regulator to run a regulation status. It provides the current status of the internal voltage regulator.
- Parameters
 - 
  
    | base | PMC peripheral base address.  | 
    | base | Base address for current PMC instance.  | 
  
   
- Returns
 - Regulation status 0 - Regulator is in a stop regulation or in transition to/from the regulation. 1 - Regulator is in a run regulation.