Power driver provides APIs to control peripherals power and control the system power mode.
static void POWER_EnablePD |
( |
pd_bit_t |
en | ) |
|
|
inlinestatic |
Note that enabling the bit powers down the peripheral
- Parameters
-
en | peripheral 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
-
en | peripheral for which to disable the PDRUNCFG bit |
- Returns
- none
static void POWER_EnableDeepSleep |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_DisableDeepSleep |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_PowerDownFlash |
( |
void |
| ) |
|
|
inlinestatic |
static void POWER_PowerUpFlash |
( |
void |
| ) |
|
|
inlinestatic |
void POWER_EnterPowerMode |
( |
power_mode_cfg_t |
mode, |
|
|
uint64_t |
exclude_from_pd |
|
) |
| |
- Parameters
-
mode | Power mode. |
exclude_from_pd | Bit mask of the PDRUNCFG bits that needs to be powered on during deep sleep |
- Returns
- none
void POWER_EnterSleep |
( |
void |
| ) |
|
void POWER_EnterDeepSleep |
( |
uint64_t |
exclude_from_pd | ) |
|
- Parameters
-
exclude_from_pd | Bit mask of the PDRUNCFG bits that needs to be powered on during deep sleep |
- Returns
- none
void POWER_EnterDeepPowerDown |
( |
uint64_t |
exclude_from_pd | ) |
|
- Parameters
-
exclude_from_pd | Bit mask of the PDRUNCFG bits 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
void POWER_SetLowPowerVoltageForFreq |
( |
uint32_t |
freq | ) |
|
- Parameters
-
freq | - The desired frequency at which the part would like to operate, note only 12MHz and 48Mhz are supported |
- Returns
- none
uint32_t POWER_GetLibVersion |
( |
void |
| ) |
|
- Returns
- version number of the power library