![]() |
MKMxxZxxACxx5 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
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... | |
#define PMC_GetLVDF | ( | ) |
This macro returns LVDF status.
#define PMC_GetLVWF | ( | ) |
This macro returns LVWF status.
#define PMC_GetREGONS | ( | ) |
This macro returns regulator status (PMC_REGSC_REGSON).
#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.
#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).
#define PMC_SetBGEN | ( | ) |
This macro enables bandgap reference in VLPx and VLLSx modes.
#define PMC_ClrBGEN | ( | ) |
This macro disables bandgap reference in VLPx and VLLSx modes.
#define PMC_SetBGBE | ( | ) |
This macro enables bandgap buffer.
#define PMC_ClrBGBE | ( | ) |
This macro disables bandgap buffer.
#define PMC_Init | ( | cfg1, | |
cfg2, | |||
ip, | |||
callback | |||
) |
This function initializes Power Management Controller (PMC) block. Function installs callback function for interrupt vector 22 (PMC).
cfg1 | Select one of the PMC Configuration Structures. |
cfg2 | Select one of the PMC Internal Voltage Regulator Configuration Structures. |
ip | Select one of the ARM Cortex-M0+ Interrupt Priority Levels. |
callback | Pointer to the PMC Callback Function. |