RTEMS 6.1-rc1
|
Data Structures | |
struct | _pmu_static_lpsr_ana_ldo_config |
LPSR ANA LDO config. More... | |
struct | _pmu_static_lpsr_dig_config |
LPSR DIG LDO Config in Static/Software Mode. More... | |
struct | _pmu_snvs_dig_config |
SNVS DIG LDO config. More... | |
struct | _pmu_static_bandgap_config |
Bandgap config in static mode. More... | |
union | _pmu_well_bias_option |
The union of well bias basic options, such as clock source, power source and so on. More... | |
struct | _pmu_well_bias_config |
The structure of well bias configuration. More... | |
struct | _pmu_gpc_body_bias_config |
The stucture of body bias config in GPC mode. More... | |
Macros | |
#define | PMU_HAS_FBB (0U) |
Typedefs | |
typedef enum _pmu_ldo_name | pmu_ldo_name_t |
The name of LDOs. | |
typedef enum _pmu_body_bias_name | pmu_body_bias_name_t |
The name of body bias. | |
typedef enum _pmu_control_mode | pmu_control_mode_t |
The control mode of LDOs/Bandgaps/Body Bias. | |
typedef enum _pmu_ldo_operate_mode | pmu_ldo_operate_mode_t |
The operation mode for the LDOs. | |
typedef enum _pmu_lpsr_ana_ldo_charge_pump_current | pmu_lpsr_ana_ldo_charge_pump_current_t |
The enumeration of LPSR ANA LDO's charge pump current. | |
typedef enum _pmu_lpsr_ana_ldo_output_range | pmu_lpsr_ana_ldo_output_range_t |
The enumeration of LPSR ANA LDO's output range. | |
typedef enum _pmu_lpsr_dig_voltage_step_time | pmu_lpsr_dig_voltage_step_time_t |
The enumeration of voltage step time for LPSR DIG LDO. | |
typedef enum _pmu_lpsr_dig_target_output_voltage | pmu_lpsr_dig_target_output_voltage_t |
The target output voltage of LPSR DIG LDO. | |
typedef enum _pmu_snvs_dig_charge_pump_current | pmu_snvs_dig_charge_pump_current_t |
The enumeration of the SNVS DIG LDO's charge pump current. | |
typedef enum _pmu_snvs_dig_discharge_resistor_value | pmu_snvs_dig_discharge_resistor_value_t |
The enumeration of the SNVS DIG LDO's discharge resistor. | |
typedef enum _pmu_bandgap_output_VBG_voltage_value | pmu_bandgap_output_VBG_voltage_value_t |
The enumeration of output VBG voltage. | |
typedef enum _pmu_bandgap_output_current_value | pmu_bandgap_output_current_value_t |
The enumeration of output current. | |
typedef enum _pmu_well_bias_power_source | pmu_well_bias_power_source_t |
The enumerator of well bias power source. | |
typedef enum _pmu_bias_area_size | pmu_bias_area_size_t |
The enumerator of bias area size. | |
typedef enum _pmu_well_bias_typical_freq | pmu_well_bias_typical_freq_t |
The enumerator of well bias typical frequency. | |
typedef enum _pmu_adaptive_clock_source | pmu_adaptive_clock_source_t |
The enumerator of well bias adaptive clock source. | |
typedef enum _pmu_freq_reduction | pmu_freq_reduction_t |
The enumerator of frequency reduction due to cap increment. | |
typedef enum _pmu_well_bias_1P8_adjustment | pmu_well_bias_1P8_adjustment_t |
The enumerator of well bias 1P8 adjustment. | |
typedef struct _pmu_static_lpsr_ana_ldo_config | pmu_static_lpsr_ana_ldo_config_t |
LPSR ANA LDO config. | |
typedef struct _pmu_static_lpsr_dig_config | pmu_static_lpsr_dig_config_t |
LPSR DIG LDO Config in Static/Software Mode. | |
typedef struct _pmu_snvs_dig_config | pmu_snvs_dig_config_t |
SNVS DIG LDO config. | |
typedef struct _pmu_static_bandgap_config | pmu_static_bandgap_config_t |
Bandgap config in static mode. | |
typedef union _pmu_well_bias_option | pmu_well_bias_option_t |
The union of well bias basic options, such as clock source, power source and so on. | |
typedef struct _pmu_well_bias_config | pmu_well_bias_config_t |
The structure of well bias configuration. | |
typedef struct _pmu_gpc_body_bias_config | pmu_gpc_body_bias_config_t |
The stucture of body bias config in GPC mode. | |
LDOs Control APIs | |
void | PMU_SetPllLdoControlMode (ANADIG_PMU_Type *base, pmu_control_mode_t mode) |
Selects the control mode of the PLL LDO. More... | |
void | PMU_SwitchPllLdoToGPCMode (ANADIG_PMU_Type *base) |
Switches the PLL LDO from Static/Software Mode to GPC/Hardware Mode. More... | |
void | PMU_StaticEnablePllLdo (ANADIG_PMU_Type *base) |
Enables PLL LDO via AI interface in Static/Software mode. More... | |
void | PMU_StaticDisablePllLdo (void) |
Disables PLL LDO via AI interface in Static/Software mode. More... | |
void | PMU_SetLpsrAnaLdoControlMode (ANADIG_LDO_SNVS_Type *base, pmu_control_mode_t mode) |
Selects the control mode of the LPSR ANA LDO. More... | |
void | PMU_StaticEnableLpsrAnaLdoBypassMode (ANADIG_LDO_SNVS_Type *base, bool enable) |
Sets the Bypass mode of the LPSR ANA LDO. More... | |
void | PMU_StaticGetLpsrAnaLdoDefaultConfig (pmu_static_lpsr_ana_ldo_config_t *config) |
Fill the LPSR ANA LDO configuration structure with default settings. More... | |
void | PMU_StaticLpsrAnaLdoInit (ANADIG_LDO_SNVS_Type *base, const pmu_static_lpsr_ana_ldo_config_t *config) |
Initialize the LPSR ANA LDO in Static/Sofware Mode. More... | |
void | PMU_StaticLpsrAnaLdoDeinit (ANADIG_LDO_SNVS_Type *base) |
Disable the output of LPSR ANA LDO. More... | |
void | PMU_SetLpsrDigLdoControlMode (ANADIG_LDO_SNVS_Type *base, pmu_control_mode_t mode) |
Selects the control mode of the LPSR DIG LDO. More... | |
void | PMU_StaticEnableLpsrDigLdoBypassMode (ANADIG_LDO_SNVS_Type *base, bool enable) |
Turn on/off Bypass mode of the LPSR DIG LDO in Static/Software mode. More... | |
void | PMU_StaticGetLpsrDigLdoDefaultConfig (pmu_static_lpsr_dig_config_t *config) |
Gets the default configuration of LPSR DIG LDO. More... | |
void | PMU_StaticLpsrDigLdoInit (ANADIG_LDO_SNVS_Type *base, const pmu_static_lpsr_dig_config_t *config) |
Initialize the LPSR DIG LDO in static mode. More... | |
void | PMU_StaticLpsrDigLdoDeinit (ANADIG_LDO_SNVS_Type *base) |
Disable the LPSR DIG LDO. More... | |
void | PMU_GPCSetLpsrDigLdoTargetVoltage (uint32_t setpointMap, pmu_lpsr_dig_target_output_voltage_t voltageValue) |
Sets the voltage step of LPSR DIG LDO in certain setpoint during GPC mode. More... | |
void | PMU_GetSnvsDigLdoDefaultConfig (pmu_snvs_dig_config_t *config) |
Gets the default config of the SNVS DIG LDO. More... | |
void | PMU_SnvsDigLdoInit (ANADIG_LDO_SNVS_DIG_Type *base, pmu_ldo_operate_mode_t mode) |
Initialize the SNVS DIG LDO. More... | |
void | PMU_GPCEnableLdo (pmu_ldo_name_t name, uint32_t setpointMap) |
Controls the ON/OFF of the selected LDO in certain setpoints with GPC mode. More... | |
void | PMU_GPCSetLdoOperateMode (pmu_ldo_name_t name, uint32_t setpointMap, pmu_ldo_operate_mode_t mode) |
Sets the operating mode of the selected LDO in certain setpoints with GPC mode. More... | |
void | PMU_GPCEnableLdoTrackingMode (pmu_ldo_name_t name, uint32_t setpointMap) |
Controls the ON/OFF of the selected LDOs' Tracking mode in certain setpoints with GPC mode. More... | |
void | PMU_GPCEnableLdoBypassMode (pmu_ldo_name_t name, uint32_t setpointMap) |
Controls the ON/OFF of the selected LDOs' Bypass mode in certain setpoints with GPC mode. More... | |
void | PMU_GPCEnableLdoStandbyMode (pmu_ldo_name_t name, uint32_t setpointMap) |
When STBY assert, enable/disable the selected LDO enter it's Low power mode. More... | |
Bandgap Control APIs | |
void | PMU_SetBandgapControlMode (ANADIG_PMU_Type *base, pmu_control_mode_t mode) |
Selects the control mode of the Bandgap Reference. More... | |
void | PMU_SwitchBandgapToGPCMode (ANADIG_PMU_Type *base) |
Switches the Bandgap from Static/Software Mode to GPC/Hardware Mode. More... | |
void | PMU_DisableBandgapSelfBiasAfterPowerUp (void) |
Disables Bandgap self bias for best noise performance. More... | |
void | PMU_EnableBandgapSelfBiasBeforePowerDown (void) |
Enables Bandgap self bias before power down. More... | |
void | PMU_StaticBandgapInit (const pmu_static_bandgap_config_t *config) |
Initialize Bandgap. More... | |
Body Bias Control APIs | |
void | PMU_WellBiasInit (ANADIG_PMU_Type *base, const pmu_well_bias_config_t *config) |
Configures Well bias, such as power source, clock source and so on. More... | |
void | PMU_GetWellBiasDefaultConfig (pmu_well_bias_config_t *config) |
Gets the default configuration of well bias. More... | |
void | PMU_SetBodyBiasControlMode (ANADIG_PMU_Type *base, pmu_body_bias_name_t name, pmu_control_mode_t mode) |
Selects the control mode of the Body Bias. More... | |
void | PMU_EnableBodyBias (ANADIG_PMU_Type *base, pmu_body_bias_name_t name, bool enable) |
Enables/disables the selected body bias. More... | |
void | PMU_GPCEnableBodyBias (pmu_body_bias_name_t name, uint32_t setpointMap) |
Controls the ON/OFF of the selected body bias in certain setpoints with GPC mode. More... | |
void | PMU_GPCEnableBodyBiasStandbyMode (pmu_body_bias_name_t name, uint32_t setpointMap) |
Controls the ON/OFF of the selected Body Bias' Wbias power switch in certain setpoints with GPC mode. More... | |
void | PMU_GPCGetBodyBiasDefaultConfig (pmu_gpc_body_bias_config_t *config) |
Gets the default config of body bias in GPC mode. More... | |
void | PMU_GPCSetBodyBiasConfig (pmu_body_bias_name_t name, const pmu_gpc_body_bias_config_t *config) |
Sets the config of the selected Body Bias in GPC mode. More... | |
Driver version | |
#define | FSL_PMU_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
PMU driver version. More... | |
#define FSL_PMU_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
PMU driver version.
Version 2.1.0.
The enumeration of output current.
The enumeration of output VBG voltage.
enum _pmu_bias_area_size |
The enumerator of bias area size.
enum _pmu_body_bias_name |
enum _pmu_control_mode |
enum _pmu_freq_reduction |
The enumerator of frequency reduction due to cap increment.
enum _pmu_ldo_name |
The enumeration of LPSR ANA LDO's charge pump current.
The enumeration of LPSR ANA LDO's output range.
The target output voltage of LPSR DIG LDO.
The enumeration of voltage step time for LPSR DIG LDO.
enum _pmu_setpoint_map |
System setpoints enumeration.
The enumeration of the SNVS DIG LDO's charge pump current.
The enumeration of the SNVS DIG LDO's discharge resistor.
The enumeration of bandgap power down option.
The enumerator of well bias 1P8 adjustment.
The enumerator of well bias typical frequency.
void PMU_DisableBandgapSelfBiasAfterPowerUp | ( | void | ) |
Disables Bandgap self bias for best noise performance.
This function should be invoked after powering up. This function will wait for the bandgap stable and disable the bandgap self bias. After powering up, it need to wait for the bandgap to get stable and then disable Bandgap Self bias for best noise performance.
brief Disables Bandgap self bias for best noise performance.
This function waits for the bandgap to be stable and disables the bandgap self bias. After being powered up, it needs to wait for the bandgap stable to be stable and then disable Bandgap Self bias for best noise performance.
void PMU_EnableBandgapSelfBiasBeforePowerDown | ( | void | ) |
Enables Bandgap self bias before power down.
This function will enable Bandgap self bias feature before powering down or there will be risk of Bandgap not starting properly.
brief Enables Bandgap self bias before power down.
This function will enable Bandgap self bias feature before powering down or there will be risk of Bandgap not starting properly.
void PMU_EnableBodyBias | ( | ANADIG_PMU_Type * | base, |
pmu_body_bias_name_t | name, | ||
bool | enable | ||
) |
Enables/disables the selected body bias.
base | PMU peripheral base address. |
name | The name of the body bias to be turned on/off, please refer to pmu_body_bias_name_t. |
enable | Used to turn on/off the specific body bias.
|
brief Enables/disables the selected body bias.
param base PMU peripheral base address. param name The name of the body bias to be turned on/off, please refer to pmu_body_bias_name_t. param enable Used to turn on/off the specific body bias.
void PMU_GetSnvsDigLdoDefaultConfig | ( | pmu_snvs_dig_config_t * | config | ) |
Gets the default config of the SNVS DIG LDO.
The default values are:
config | Pointer to pmu_snvs_dig_config_t. |
brief Gets the default config of the SNVS DIG LDO.
The default values are: code config->mode = kPMU_LowPowerMode; config->chargePumpCurrent = kPMU_SnvsDigChargePump12P5nA; config->dischargeResistorValue = kPMU_SnvsDigDischargeResistor15K; config->trimValue = 0U; config->enablePullDown = true; config->enableLdoStable = false; endcode
param config Pointer to the structure pmu_snvs_dig_config_t. Please refer to pmu_snvs_dig_config_t.
void PMU_GetWellBiasDefaultConfig | ( | pmu_well_bias_config_t * | config | ) |
Gets the default configuration of well bias.
config | The pointer to the pmu_well_bias_config_t structure. |
brief Enables/disables the selected body bias.
param base PMU peripheral base address. param name The name of the body bias to be turned on/off, please refer to pmu_body_bias_name_t. param enable Used to turn on/off the specific body bias.
void PMU_GPCEnableBodyBias | ( | pmu_body_bias_name_t | name, |
uint32_t | setpointMap | ||
) |
Controls the ON/OFF of the selected body bias in certain setpoints with GPC mode.
name | The name of the selected body bias. Please see enumeration pmu_body_bias_name_t for details. |
setpointMap | The map of setpoints that the specific body bias will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map. |
brief Controls the ON/OFF of the selected body bias in the certain setpoints with GPC mode.
param name The name of the selected body bias. Please see the enumeration pmu_body_bias_name_t for details. param setpointMap The map of setpoints that the specific body bias will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map.
void PMU_GPCEnableBodyBiasStandbyMode | ( | pmu_body_bias_name_t | name, |
uint32_t | setpointMap | ||
) |
Controls the ON/OFF of the selected Body Bias' Wbias power switch in certain setpoints with GPC mode.
name | The name of the selected body bias. Please see the enumeration pmu_body_bias_name_t for details. |
setpointMap | The map of setpoints that the specific body bias's wbias power switch will be turn on in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map. |
brief Controls the ON/OFF of the selected Body Bias' Wbias power switch in certain setpoints with GPC mode.
param name The name of the selected body bias. Please see the enumeration pmu_body_bias_name_t for details. param setpointMap The map of setpoints that the specific body bias's wbias power switch will be turn on in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map.
void PMU_GPCEnableLdo | ( | pmu_ldo_name_t | name, |
uint32_t | setpointMap | ||
) |
Controls the ON/OFF of the selected LDO in certain setpoints with GPC mode.
name | The name of the selected ldo. Please see enumeration pmu_ldo_name_t for details. |
setpointMap | The map of setpoints should be the OR'ed Value of _pmu_setpoint_map, 1b'1 means enable specific ldo in that setpoint. For example, the code PMU_GPCEnableLdo(kPMU_PllLdo, 0x1U) means to enable PLL LDO in setpoint 0 and disable PLL LDO in other setpoint. |
brief Controls the ON/OFF of the selected LDO in the certain setpoints with GPC mode.
param name The name of the selected ldo. Please see the enumeration pmu_ldo_name_t for details. param setpointMap The map of setpoints should be the OR'ed Value of _pmu_setpoint_map, 1b'1 means enable specific ldo in that setpoint. For example, the code PMU_GPCEnableLdo(kPMU_PllLdo, 0x1U) means enable PLL LDO in setpoint 0, disable PLL LDO in other setpoint.
void PMU_GPCEnableLdoBypassMode | ( | pmu_ldo_name_t | name, |
uint32_t | setpointMap | ||
) |
Controls the ON/OFF of the selected LDOs' Bypass mode in certain setpoints with GPC mode.
name | The name of the selected ldo. Please see enumeration pmu_ldo_name_t for details. |
setpointMap | The map of setpoints that the LDO bypass mode will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map. |
brief Controls the ON/OFF of the selected LDOs' Bypass mode in the certain setpoints with GPC mode.
param name The name of the selected ldo. Please see the enumeration pmu_ldo_name_t for details. param setpointMap The map of setpoints that the LDO bypass mode will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map.
void PMU_GPCEnableLdoStandbyMode | ( | pmu_ldo_name_t | name, |
uint32_t | setpointMap | ||
) |
When STBY assert, enable/disable the selected LDO enter it's Low power mode.
name | The name of the selected ldo. Please see enumeration pmu_ldo_name_t for details. |
setpointMap | The map of setpoints that the LDO low power mode will be enabled in those setpoints if STBY assert, this value should be the OR'ed Value of _pmu_setpoint_map. |
brief When STBY assert, enable/disable the selected LDO enter it's Low power mode.
param name The name of the selected ldo. Please see the enumeration pmu_ldo_name_t for details. param setpointMap The map of setpoints that the LDO low power mode will be enabled in those setpoints if STBY assert, this value should be the OR'ed Value of _pmu_setpoint_map.
void PMU_GPCEnableLdoTrackingMode | ( | pmu_ldo_name_t | name, |
uint32_t | setpointMap | ||
) |
Controls the ON/OFF of the selected LDOs' Tracking mode in certain setpoints with GPC mode.
name | The name of the selected ldo. Please see enumeration pmu_ldo_name_t for details. |
setpointMap | The map of setpoints that the LDO tracking mode will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map. |
brief Controls the ON/OFF of the selected LDOs' Tracking mode in the certain setpoints with GPC mode.
param name The name of the selected ldo. Please see the enumeration pmu_ldo_name_t for details. param setpointMap The map of setpoints that the LDO tracking mode will be enabled in those setpoints, this value should be the OR'ed Value of _pmu_setpoint_map.
void PMU_GPCGetBodyBiasDefaultConfig | ( | pmu_gpc_body_bias_config_t * | config | ) |
Gets the default config of body bias in GPC mode.
config | Pointer to structure pmu_gpc_body_bias_config_t. |
brief Gets the default config of body bias in GPC mode.
param config Pointer to the structure pmu_gpc_body_bias_config_t.
void PMU_GPCSetBodyBiasConfig | ( | pmu_body_bias_name_t | name, |
const pmu_gpc_body_bias_config_t * | config | ||
) |
Sets the config of the selected Body Bias in GPC mode.
name | The name of the selected body bias. Please see enumeration pmu_body_bias_name_t for details. |
config | Pointer to structure pmu_gpc_body_bias_config_t. |
brief Sets the config of the selected Body Bias in GPC mode.
param name The name of the selected body bias. Please see the enumeration pmu_body_bias_name_t for details. param config Pointer to the structure pmu_gpc_body_bias_config_t.
void PMU_GPCSetLdoOperateMode | ( | pmu_ldo_name_t | name, |
uint32_t | setpointMap, | ||
pmu_ldo_operate_mode_t | mode | ||
) |
Sets the operating mode of the selected LDO in certain setpoints with GPC mode.
name | The name of the selected ldo. Please see enumeration pmu_ldo_name_t for details. |
setpointMap | The map of setpoints should be the OR'ed Value of _pmu_setpoint_map. |
mode | The operating mode of the selected ldo. Please refer to enumeration pmu_ldo_operate_mode_t for details. |
brief Sets the operating mode of the selected LDO in the certain setpoints with GPC mode.
param name The name of the selected ldo. Please see the enumeration pmu_ldo_name_t for details. param setpointMap The map of setpoints should be the OR'ed Value of _pmu_setpoint_map. param mode The operating mode of the selected ldo. Please refer to the enumeration pmu_ldo_operate_mode_t for details.
void PMU_GPCSetLpsrDigLdoTargetVoltage | ( | uint32_t | setpointMap, |
pmu_lpsr_dig_target_output_voltage_t | voltageValue | ||
) |
Sets the voltage step of LPSR DIG LDO in certain setpoint during GPC mode.
setpointMap | The map of setpoints should be the OR'ed Value of _pmu_setpoint_map. |
voltageValue | The voltage step to be set. See enumeration pmu_lpsr_dig_target_output_voltage_t. |
brief Sets the voltage step of LPSR DIG LDO in the certain setpoint during GPC mode.
note The function provides the feature to set the voltage step to the different setpoints.
param setpointMap The map of setpoints should be the OR'ed Value of _pmu_setpoint_map. param voltageStep The voltage step to be set.
void PMU_SetBandgapControlMode | ( | ANADIG_PMU_Type * | base, |
pmu_control_mode_t | mode | ||
) |
Selects the control mode of the Bandgap Reference.
base | PMU peripheral base address. |
mode | The control mode of the Bandgap Reference. Please refer to pmu_control_mode_t. |
brief Selects the control mode of the Bandgap Reference.
param base PMU peripheral base address. param mode The control mode of the Bandgap Reference. Please refer to pmu_control_mode_t.
void PMU_SetBodyBiasControlMode | ( | ANADIG_PMU_Type * | base, |
pmu_body_bias_name_t | name, | ||
pmu_control_mode_t | mode | ||
) |
Selects the control mode of the Body Bias.
base | PMU peripheral base address. |
name | The name of the body bias. Please refer to pmu_body_bias_name_t. |
mode | The control mode of the Body Bias. Please refer to pmu_control_mode_t. |
brief Selects the control mode of the Body Bias.
param base PMU peripheral base address. param name The name of the body bias. Please refer to pmu_body_bias_name_t. param mode The control mode of the Body Bias. Please refer to pmu_control_mode_t.
void PMU_SetLpsrAnaLdoControlMode | ( | ANADIG_LDO_SNVS_Type * | base, |
pmu_control_mode_t | mode | ||
) |
Selects the control mode of the LPSR ANA LDO.
base | PMU peripheral base address. |
mode | The control mode of the LPSR ANA LDO. Please refer to pmu_control_mode_t. |
brief Selects the control mode of the LPSR ANA LDO.
param base PMU peripheral base address. param mode The control mode of the LPSR ANA LDO. Please refer to pmu_control_mode_t.
void PMU_SetLpsrDigLdoControlMode | ( | ANADIG_LDO_SNVS_Type * | base, |
pmu_control_mode_t | mode | ||
) |
Selects the control mode of the LPSR DIG LDO.
base | PMU peripheral base address. |
mode | The control mode of the LPSR DIG LDO. Please refer to pmu_control_mode_t. |
brief Selects the control mode of the LPSR DIG LDO.
param base ANADIG_LDO_SNVS peripheral base address. param mode The control mode of the LPSR DIG LDO. Please refer to pmu_control_mode_t.
void PMU_SetPllLdoControlMode | ( | ANADIG_PMU_Type * | base, |
pmu_control_mode_t | mode | ||
) |
Selects the control mode of the PLL LDO.
base | PMU peripheral base address. |
mode | The control mode of the PLL LDO. Please refer to pmu_control_mode_t. |
brief Selects the control mode of the PLL LDO.
param base PMU peripheral base address. param mode The control mode of the PLL LDO. Please refer to pmu_control_mode_t.
void PMU_SnvsDigLdoInit | ( | ANADIG_LDO_SNVS_DIG_Type * | base, |
pmu_ldo_operate_mode_t | mode | ||
) |
Initialize the SNVS DIG LDO.
base | LDO SNVS DIG peripheral base address. |
mode | Used to control LDO power mode, please refer to pmu_ldo_operate_mode_t. |
brief Initialize the SNVS DIG LDO.
param base LDO SNVS DIG peripheral base address. param mode Used to control LDO power mode, please refer to pmu_ldo_operate_mode_t.
void PMU_StaticBandgapInit | ( | const pmu_static_bandgap_config_t * | config | ) |
Initialize Bandgap.
config | Pointer to the structure pmu_static_bandgap_config_t. |
brief Init Bandgap.
param config. Pointer to the structure pmu_static_bandgap_config_t. Please refer to pmu_static_bandgap_config_t.
void PMU_StaticDisablePllLdo | ( | void | ) |
Disables PLL LDO via AI interface in Static/Software mode.
brief Disables PLL LDO via AI interface in Static/Software mode.
void PMU_StaticEnableLpsrAnaLdoBypassMode | ( | ANADIG_LDO_SNVS_Type * | base, |
bool | enable | ||
) |
Sets the Bypass mode of the LPSR ANA LDO.
base | ANADIG_LDO_SNVS peripheral base address. |
enable | Enable/Disable bypass mode.
|
brief Sets the Bypass mode of the LPSR ANA LDO.
param base ANADIG_LDO_SNVS peripheral base address. param enable Enable/Disable bypass mode.
void PMU_StaticEnableLpsrDigLdoBypassMode | ( | ANADIG_LDO_SNVS_Type * | base, |
bool | enable | ||
) |
Turn on/off Bypass mode of the LPSR DIG LDO in Static/Software mode.
base | ANADIG_LDO_SNVS peripheral base address. |
enable |
|
brief Turn on/off Bypass mode of the LPSR DIG LDO in Static/Software mode.
param base ANADIG_LDO_SNVS peripheral base address. param enable true - Turn on Bypass mode of the LPSR DIG LDO. false - Turn off Bypass mode of the LPSR DIG LDO.
void PMU_StaticEnablePllLdo | ( | ANADIG_PMU_Type * | base | ) |
Enables PLL LDO via AI interface in Static/Software mode.
base | PMU peripheral base address. |
brief Enables PLL LDO via AI interface in Static/Software mode.
param base PMU peripheral base address.
void PMU_StaticGetLpsrAnaLdoDefaultConfig | ( | pmu_static_lpsr_ana_ldo_config_t * | config | ) |
Fill the LPSR ANA LDO configuration structure with default settings.
The default values are:
config | Pointer to the structure pmu_static_lpsr_ana_ldo_config_t. |
brief Fill the LPSR ANA LDO configuration structure with default settings.
The default values are: code config->mode = kPMU_HighPowerMode; config->enable2mALoad = true; config->enable20uALoad = false; config->enable4mALoad = true; config->enableStandbyMode = false; config->driverStrength = kPMU_LpsrAnaLdoDriverStrength0; config->brownOutDetectorConfig = kPMU_LpsrAnaLdoBrownOutDetectorDisable; config->chargePumpCurrent = kPMU_LpsrAnaChargePump300nA; config->outputRange = kPMU_LpsrAnaLdoOutputFrom1P77To1P83; endcode
param config Pointer to the structure pmu_static_lpsr_ana_ldo_config_t. Please refer to pmu_static_lpsr_ana_ldo_config_t.
void PMU_StaticGetLpsrDigLdoDefaultConfig | ( | pmu_static_lpsr_dig_config_t * | config | ) |
Gets the default configuration of LPSR DIG LDO.
The default values are:
config | Pointer to the structure pmu_static_lpsr_dig_config_t. |
config | Pointer to the structure pmu_static_lpsr_dig_config_t. Please refer to pmu_static_lpsr_dig_config_t. |
void PMU_StaticLpsrAnaLdoDeinit | ( | ANADIG_LDO_SNVS_Type * | base | ) |
Disable the output of LPSR ANA LDO.
base | ANADIG_LDO_SNVS peripheral base address. |
brief Disable the output of LPSR ANA LDO.
param base ANADIG_LDO_SNVS peripheral base address.
void PMU_StaticLpsrAnaLdoInit | ( | ANADIG_LDO_SNVS_Type * | base, |
const pmu_static_lpsr_ana_ldo_config_t * | config | ||
) |
Initialize the LPSR ANA LDO in Static/Sofware Mode.
base | ANADIG_LDO_SNVS peripheral base address. |
config | Pointer to the structure pmu_static_lpsr_ana_ldo_config_t. |
brief Initialize the LPSR ANA LDO in Static/Sofware Mode.
param base ANADIG_LDO_SNVS peripheral base address. param config Pointer to the structure pmu_static_lpsr_ana_ldo_config_t. Please refer to pmu_static_lpsr_ana_ldo_config_t.
void PMU_StaticLpsrDigLdoDeinit | ( | ANADIG_LDO_SNVS_Type * | base | ) |
Disable the LPSR DIG LDO.
base | ANADIG_LDO_SNVS peripheral base address. |
void PMU_StaticLpsrDigLdoInit | ( | ANADIG_LDO_SNVS_Type * | base, |
const pmu_static_lpsr_dig_config_t * | config | ||
) |
Initialize the LPSR DIG LDO in static mode.
base | ANADIG_LDO_SNVS peripheral base address. |
config | Pointer to the structure pmu_static_lpsr_dig_config_t. |
base | ANADIG_LDO_SNVS peripheral base address. |
config | Pointer to the structure pmu_static_lpsr_dig_config_t. Please refer to pmu_static_lpsr_dig_config_t. |
void PMU_SwitchBandgapToGPCMode | ( | ANADIG_PMU_Type * | base | ) |
Switches the Bandgap from Static/Software Mode to GPC/Hardware Mode.
base | PMU peripheral base address. |
brief Switches the Bandgap from Static/Software Mode to GPC/Hardware Mode.
param base PMU peripheral base address.
void PMU_SwitchPllLdoToGPCMode | ( | ANADIG_PMU_Type * | base | ) |
Switches the PLL LDO from Static/Software Mode to GPC/Hardware Mode.
base | PMU peripheral base address. |
brief Switches the PLL LDO from Static/Software Mode to GPC/Hardware Mode.
param base PMU peripheral base address.
void PMU_WellBiasInit | ( | ANADIG_PMU_Type * | base, |
const pmu_well_bias_config_t * | config | ||
) |
Configures Well bias, such as power source, clock source and so on.
base | PMU peripheral base address. |
config | Pointer to the pmu_well_bias_config_t structure. |
brief Configures Well bias, such as power source, clock source and so on.
param base PMU peripheral base address. param config Pointer to the pmu_well_bias_config_t structure.