MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
PMC API Specification

Overview

This section describes functions and macros of the driver's API.

Macros

#define PMC_GetLVDF()
 Returns LVDF status. More...
 
#define PMC_GetLVWF()
 Returns LVWF status. More...
 
#define PMC_GetREGONS()
 Returns regulator status. More...
 
#define PMC_GetACKISO()
 Returns state indicating whether certain peripherals and the I/O pads are in a latched state. More...
 
#define PMC_SetACKISO()
 Releases I/O held state. More...
 
#define PMC_SetBGEN()
 Enables bandgap reference in VLPx and VLLSx modes. More...
 
#define PMC_ClrBGEN()
 Disables bandgap reference in VLPx and VLLSx modes. More...
 
#define PMC_SetBGBE()
 Enables bandgap buffer. More...
 
#define PMC_ClrBGBE()
 Disables bandgap buffer. More...
 
#define PMC_Init(cfg1, cfg2, ip, callback)
 PMC initialization. More...
 

Macro Definition Documentation

#define PMC_GetLVDF ( )

This macro returns LVDF status.

Returns
true (non-zero) internal supply voltage falls below the selected internal monitor trip point (VLVD),
false normal operation.
Note
Implemented as an inline macro.
#define PMC_GetLVWF ( )

This macro returns LVWF status.

Returns
true (non-zero) internal supply voltage falls below the selected internal monitor trip point (VLVW),
false normal operation.
Note
Implemented as an inline macro.
#define PMC_GetREGONS ( )

This macro returns regulator status (PMC_REGSC_REGSON).

Returns
true (non-zero) regulator is in stop regulation or in transition to/from it,
false regulator is in run regulation.
Note
Implemented as an inline macro.
#define PMC_GetACKISO ( )

This macro returns state indicating whether certain peripherals and the I/O pads are in a latched state as a result of having been in a VLLS mode. Writing one to this bit when it is set releases the I/O pads and certain peripherals to their normal run mode state.

Returns
true (non-zero) peripherals and I/O pads are in an isolated and latched state,
false peripherals and I/O pads are in normal run state.
Note
Implemented as an inline macro.
See also
PMC_SetACKISO
#define PMC_SetACKISO ( )

This macro releases I/O held state (the I/O states are held on a wakeup event until the wakeup has been acknowledged via a write to ACKISO bit).

Note
Implemented as an inline macro.
See also
PMC_GetACKISO
#define PMC_SetBGEN ( )

This macro enables bandgap reference in VLPx and VLLSx modes.

Note
Implemented as an inline macro.
See also
PMC_ClrBGEN
#define PMC_ClrBGEN ( )

This macro disables bandgap reference in VLPx and VLLSx modes.

Note
Implemented as an inline macro.
See also
PMC_SetBGEN
#define PMC_SetBGBE ( )

This macro enables bandgap buffer.

Note
Implemented as an inline macro.
Warning
Enable bandgap buffer if you want to measure bandgap voltage by ADC or using 1.0V Internal bandgap as the ADC reference.
See also
PMC_ClrBGBE
#define PMC_ClrBGBE ( )

This macro disables bandgap buffer.

Note
Implemented as an inline macro. This function also switches bandgap buffer to low drive mode.
See also
PMC_SetBGBE
#define PMC_Init (   cfg1,
  cfg2,
  ip,
  callback 
)

This function initializes Power Management Controller (PMC) block. Function installs callback function for interrupt vector 22 (PMC).

Parameters
cfg1Select one of the PMC Configuration Structures.
cfg2Select one of the PMC Internal Voltage Regulator Configuration Structures.
ipSelect one of the ARM Cortex-M0+ Interrupt Priority Levels.
callbackPointer to the PMC Callback Function.
Note
Implemented as a function call.