|
SmartSnippets DA1459x SDK
|
Power Manager. More...
Files | |
| file | hw_pmu_da1459x.h |
| Power Manager header file for DA1459x. | |
Data Structures | |
| struct | HW_PMU_1V8_RAIL_CONFIG |
| 1V8 power rail configuration More... | |
| struct | HW_PMU_VDCDC_RAIL_CONFIG |
| VDCDC power rail configuration. More... | |
| struct | HW_PMU_VDD_RAIL_CONFIG |
| VDD power rail configuration. More... | |
Power Manager.
| enum HW_PMU_1V8_MAX_LOAD |
| enum HW_PMU_1V8_VOLTAGE |
| enum HW_PMU_ERROR_CODE |
PMU API Error Codes.
| enum HW_PMU_SRC_TYPE |
PMU API Source type.
This allows the user to select a high-efficiency and high-ripple source (DCDC) or low-efficiency and low-ripple source (LDO) for a Power Rail.
| enum HW_PMU_VDCDC_VOLTAGE |
Voltage level options for VDCDC rail applicable in active state.
| enum HW_PMU_VDD_MAX_LOAD |
| enum HW_PMU_VDD_VOLTAGE |
Voltage level options for VDD rail.
| HW_PMU_ERROR_CODE hw_pmu_1v8_onsleep_disable | ( | void | ) |
Disable 1V8 rail in sleep state.
This function disables all the 1V8 power sources used during the sleep state.
| HW_PMU_ERROR_CODE hw_pmu_1v8_onsleep_enable | ( | HW_PMU_1V8_MAX_LOAD | max_load | ) |
Enable 1V8 rail in sleep state.
This function enables the 1V8 power sources used during the sleep state. Depending on the input parameter the power source could be either LDO_IO_RET or VBAT (bypass mode in sleep mode).
If none of the power sources is available HW_PMU_ERROR_NOT_ENOUGH_POWER error code will be returned.
param[in] max_load The maximum current that can be supplied to the loads of the rail
Valid input parameters: max load mA Source HW_PMU_1V8_MAX_LDO_LOAD_2 LDO_IO_RET HW_PMU_1V8_MAX_BYPASS_LOAD_2 VBAT (Bypass mode)
| HW_PMU_ERROR_CODE hw_pmu_1v8_onwakeup_disable | ( | void | ) |
Disable 1V8 rail in wakeup / active state.
This function disables all the 1V8 power sources used during the wakeup / active state.
| HW_PMU_ERROR_CODE hw_pmu_1v8_onwakeup_enable | ( | HW_PMU_1V8_MAX_LOAD | max_load | ) |
Set 1V8 rail wakeup / active configuration.
This function sets the 1V8 rail configuration during the wakeup / active state. This is effective immediately. Depending on the input parameter, the appropriate power source will be selected:
| [in] | max_load | The maximum current that can be supplied to the loads of the rail |
Valid input parameters: max load mA Source HW_PMU_1V8_MAX_LDO_LOAD_20 LDO_IO HW_PMU_1V8_MAX_LDO_LOAD_2 LDO_IO_RET HW_PMU_1V8_MAX_BYPASS_LOAD_20 VBAT (Bypass mode)
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_1v8_active_config | ( | HW_PMU_1V8_RAIL_CONFIG * | rail_config | ) |
Get the 1V8 rail active state configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_1v8_onsleep_config | ( | HW_PMU_1V8_RAIL_CONFIG * | rail_config | ) |
Get the 1V8 rail sleep configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_1v8_onwakeup_config | ( | HW_PMU_1V8_RAIL_CONFIG * | rail_config | ) |
Get the 1V8 rail wakeup configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdcdc_active_config | ( | HW_PMU_VDCDC_RAIL_CONFIG * | rail_config | ) |
Get the VDCDC rail active state configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdcdc_onsleep_config | ( | HW_PMU_VDCDC_RAIL_CONFIG * | rail_config | ) |
Get the VDCDC rail sleep configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdcdc_onwakeup_config | ( | HW_PMU_VDCDC_RAIL_CONFIG * | rail_config | ) |
Get the VDCDC rail wakeup configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdd_active_config | ( | HW_PMU_VDD_RAIL_CONFIG * | rail_config | ) |
Get the VDD rail active state configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdd_onsleep_config | ( | HW_PMU_VDD_RAIL_CONFIG * | rail_config | ) |
Get the VDD rail sleep configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdd_onwakeup_config | ( | HW_PMU_VDD_RAIL_CONFIG * | rail_config | ) |
Get the VDD rail wakeup configuration.
| [out] | rail_config | The rail configuration |
| HW_PMU_ERROR_CODE hw_pmu_vdcdc_onsleep_disable | ( | void | ) |
Disable VDCDC rail in sleep state.
This function disables all the VDCDC power sources used during the sleep state.
| HW_PMU_ERROR_CODE hw_pmu_vdcdc_onsleep_enable | ( | HW_PMU_VDCDC_MAX_LOAD | max_load | ) |
Enable the VDCDC rail in sleep state.
This function enables the VDCDC rail during the sleep state. Depending on the input parameter the power source could be either LDO_IO_LOW_RET or DCDC
If none of the power sources is available HW_PMU_ERROR_NOT_ENOUGH_POWER error code will be returned.
param[in] max_load The maximum current that can be supplied to the loads of the rail
Valid input parameters: max load mA Source HW_PMU_VDCDC_MAX_LDO_LOAD_1 LDO_LOW_RET HW_PMU_VDCDC_MAX_DCDC_LOAD_0_300 DCDC
| HW_PMU_ERROR_CODE hw_pmu_vdcdc_onwakeup_disable | ( | void | ) |
Disable VDCDC rail in wakeup / active state.
This function disables all the VDCDC power sources used during the wakeup / active state.
| HW_PMU_ERROR_CODE hw_pmu_vdcdc_onwakeup_enable | ( | HW_PMU_VDCDC_MAX_LOAD | max_load | ) |
Set VDCDC rail wakeup / active configuration.
This function sets the VDCDC rail configuration during the wakeup / active state. This is effective immediately. Depending on the input parameter, the appropriate power source will be selected:
The rail cannot be enabled if the power sources that supply it are off. In this case HW_PMU_ERROR_NOT_ENOUGH_POWER error code will be returned.
| [in] | max_load | The maximum current that can be supplied to the loads of the rail |
Valid input parameters: max load mA Source HW_PMU_VDCDC_MAX_DCDC_LOAD_40 DCDC HW_PMU_VDCDC_MAX_LDO_LOAD_40 LDO_LOW
| HW_PMU_ERROR_CODE hw_pmu_vdcdc_set_voltage | ( | HW_PMU_VDCDC_VOLTAGE | voltage | ) |
Set the voltage level of VDCDC rail.
This function sets the voltage level of the VDCDC rail during active / wakeup state. The voltage level setting is common no matter the power source (DCDC or LDO_LOW / LDO_LOW_RET).
The input voltage should be set at least 200mV higher than that of VDD. Otherwise an error code is returned.
| [in] | voltage | The voltage of the rail |
Valid input parameters
| HW_PMU_ERROR_CODE hw_pmu_vdd_onsleep_disable | ( | void | ) |
Disable VDD rail in sleep state.
This function disables all the VDD power sources used during the sleep state.
| HW_PMU_ERROR_CODE hw_pmu_vdd_onsleep_enable | ( | HW_PMU_VDD_MAX_LOAD | max_load | ) |
Enable VDD rail in sleep state.
This function enables the VDD power sources used during the sleep state. The only power source is LDO_IO_RET.
If it is not available HW_PMU_ERROR_NOT_ENOUGH_POWER error code will be returned.
param[in] max_load The maximum current that can be supplied to the loads of the rail
Valid input parameters: max load mA Source HW_PMU_VDD_MAX_LOAD_0_400 LDO_CORE_RET
| HW_PMU_ERROR_CODE hw_pmu_vdd_onwakeup_disable | ( | void | ) |
Disable VDD rail in wakeup / active state.
This function disables all the VDD power sources used during the wakeup / active state.
| HW_PMU_ERROR_CODE hw_pmu_vdd_onwakeup_enable | ( | HW_PMU_VDD_MAX_LOAD | max_load | ) |
Set VDD rail wakeup / active configuration.
This function sets the VDD rail configuration during the wakeup / active state. This is effective immediately. Depending on the input parameter, the appropriate power source will be selected:
The rail cannot be enabled if the power sources that supply it are off. In this case HW_PMU_ERROR_NOT_ENOUGH_POWER error code will be returned.
| [in] | max_load | The maximum current that can be supplied to the loads of the rail |
Valid input parameters: max load mA Source HW_PMU_VDD_MAX_LOAD_20 LDO_CORE HW_PMU_VDD_MAX_LOAD_0_400 LDO_CORE_RET
| HW_PMU_ERROR_CODE hw_pmu_vdd_set_voltage | ( | HW_PMU_VDD_VOLTAGE | voltage | ) |
Set the voltage level of VDD rail.
This function sets the voltage level of the VDD rail during active / wakeup or sleep state.
The input voltage should be set at least 200mV lower than that of VDCDC. Otherwise an error code is returned.
| [in] | voltage | The voltage of the rail |
Valid input parameters
1.8.16