SmartSnippets DA1459x SDK
hw_pmu_da1459x.h
Go to the documentation of this file.
1 
42 #ifndef HW_PMU_DA1459x_H_
43 #define HW_PMU_DA1459x_H_
44 
45 
46 #if dg_configUSE_HW_PMU
47 
48 
49 #include "sdk_defs.h"
50 
55 typedef enum {
74 
81 typedef enum {
86 
93 typedef enum {
97 
102 typedef enum {
105 
110 typedef enum {
116 
121 typedef struct {
122  HW_PMU_1V8_VOLTAGE voltage;
123  HW_PMU_1V8_MAX_LOAD current;
124  HW_PMU_SRC_TYPE src_type;
126 
127 
132 typedef enum {
142 
147 typedef enum {
153 
158 typedef struct {
159  HW_PMU_VDCDC_VOLTAGE voltage;
160  HW_PMU_VDCDC_MAX_LOAD current;
161  HW_PMU_SRC_TYPE src_type;
163 
164 
169 typedef enum {
170  /* active state */
179 
180  /* sleep state
181  * Only the last bit of the enumerated value is used
182  * for programming the rail
183  */
184 
187 
190 
195 typedef enum {
199 
204 typedef struct {
205  HW_PMU_VDD_VOLTAGE voltage;
206  HW_PMU_VDD_MAX_LOAD current;
207  HW_PMU_SRC_TYPE src_type;
209 
210 
234 
243 
263 
272 
282 
292 
302 
320 
344 
353 
372 
381 
391 
401 
411 
428 
453 
462 
480 
489 
499 
509 
519 
520 
521 #endif /* dg_configUSE_HW_PMU */
522 
523 
524 #endif /* HW_PMU_DA1459x_H_ */
525 
POWER_RAIL_ENABLED
The rail is enabled.
Definition: hw_pmu_da1459x.h:95
HW_PMU_VDCDC_MAX_DCDC_LOAD_0_300
300uA
Definition: hw_pmu_da1459x.h:148
HW_PMU_1V8_MAX_BYPASS_LOAD_2
2mA supplied by VBAT
Definition: hw_pmu_da1459x.h:112
HW_PMU_VDD_VOLTAGE_1V25
1.25V during active state
Definition: hw_pmu_da1459x.h:178
HW_PMU_1V8_MAX_LDO_LOAD_20
20mA supplied by LDO_IO
Definition: hw_pmu_da1459x.h:113
HW_PMU_VDCDC_VOLTAGE_1V30
1.30V
Definition: hw_pmu_da1459x.h:137
HW_PMU_VDCDC_VOLTAGE
HW_PMU_VDCDC_VOLTAGE
Voltage level options for VDCDC rail applicable in active state.
Definition: hw_pmu_da1459x.h:132
HW_PMU_ERROR_ACTION_NOT_POSSIBLE
Action not possible to execute.
Definition: hw_pmu_da1459x.h:67
HW_PMU_VDCDC_MAX_LDO_LOAD_1
1mA
Definition: hw_pmu_da1459x.h:149
POWER_RAIL_DISABLED
The rail is disabled.
Definition: hw_pmu_da1459x.h:94
HW_PMU_VDCDC_MAX_LOAD
HW_PMU_VDCDC_MAX_LOAD
Maximum load current options for the VDCDC power rail.
Definition: hw_pmu_da1459x.h:147
HW_PMU_VDD_VOLTAGE_1V20
1.20V during active state
Definition: hw_pmu_da1459x.h:177
HW_PMU_VDD_VOLTAGE_1V15
1.15V during active state
Definition: hw_pmu_da1459x.h:176
HW_PMU_ERROR_BOD_IS_ACTIVE
BOD is active.
Definition: hw_pmu_da1459x.h:69
HW_PMU_1V8_MAX_LDO_LOAD_2
2mA supplied by LDO_IO_RET
Definition: hw_pmu_da1459x.h:111
hw_pmu_vdd_onsleep_disable
HW_PMU_ERROR_CODE hw_pmu_vdd_onsleep_disable(void)
Disable VDD rail in sleep state.
sdk_defs.h
Central include header file with platform definitions.
HW_PMU_VDCDC_VOLTAGE_1V10
1.10V
Definition: hw_pmu_da1459x.h:133
HW_PMU_VDD_VOLTAGE_1V10
1.10V during active state
Definition: hw_pmu_da1459x.h:175
hw_pmu_get_1v8_onsleep_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_1v8_onsleep_config(HW_PMU_1V8_RAIL_CONFIG *rail_config)
Get the 1V8 rail sleep configuration.
hw_pmu_1v8_onwakeup_enable
HW_PMU_ERROR_CODE hw_pmu_1v8_onwakeup_enable(HW_PMU_1V8_MAX_LOAD max_load)
Set 1V8 rail wakeup / active configuration.
hw_pmu_get_vdcdc_onwakeup_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdcdc_onwakeup_config(HW_PMU_VDCDC_RAIL_CONFIG *rail_config)
Get the VDCDC rail wakeup configuration.
hw_pmu_get_vdd_onsleep_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdd_onsleep_config(HW_PMU_VDD_RAIL_CONFIG *rail_config)
Get the VDD rail sleep configuration.
hw_pmu_1v8_onsleep_enable
HW_PMU_ERROR_CODE hw_pmu_1v8_onsleep_enable(HW_PMU_1V8_MAX_LOAD max_load)
Enable 1V8 rail in sleep state.
HW_PMU_VDD_MAX_LOAD_0_400
400uA
Definition: hw_pmu_da1459x.h:197
HW_PMU_ERROR_SLEEP_LDO
Sleep LDO configured with voltage below 0.9V.
Definition: hw_pmu_da1459x.h:71
HW_PMU_VDCDC_MAX_DCDC_LOAD_40
40mA
Definition: hw_pmu_da1459x.h:150
HW_PMU_SRC_TYPE
HW_PMU_SRC_TYPE
PMU API Source type.
Definition: hw_pmu_da1459x.h:81
HW_PMU_VDCDC_VOLTAGE_1V45
1.45V
Definition: hw_pmu_da1459x.h:140
hw_pmu_vdcdc_onsleep_disable
HW_PMU_ERROR_CODE hw_pmu_vdcdc_onsleep_disable(void)
Disable VDCDC rail in sleep state.
HW_PMU_ERROR_CODE
HW_PMU_ERROR_CODE
PMU API Error Codes.
Definition: hw_pmu_da1459x.h:55
hw_pmu_vdcdc_onwakeup_disable
HW_PMU_ERROR_CODE hw_pmu_vdcdc_onwakeup_disable(void)
Disable VDCDC rail in wakeup / active state.
HW_PMU_SRC_TYPE_LDO_LOW_RIPPLE
Low ripple source (LDO)
Definition: hw_pmu_da1459x.h:82
hw_pmu_1v8_onwakeup_disable
HW_PMU_ERROR_CODE hw_pmu_1v8_onwakeup_disable(void)
Disable 1V8 rail in wakeup / active state.
hw_pmu_get_vdd_active_config
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.
hw_pmu_vdd_onwakeup_disable
HW_PMU_ERROR_CODE hw_pmu_vdd_onwakeup_disable(void)
Disable VDD rail in wakeup / active state.
HW_PMU_1V8_MAX_BYPASS_LOAD_20
20mA supplied by VBAT
Definition: hw_pmu_da1459x.h:114
hw_pmu_get_1v8_active_config
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.
hw_pmu_vdd_onwakeup_enable
HW_PMU_ERROR_CODE hw_pmu_vdd_onwakeup_enable(HW_PMU_VDD_MAX_LOAD max_load)
Set VDD rail wakeup / active configuration.
HW_PMU_VDD_VOLTAGE_INVALID
Invalid voltage.
Definition: hw_pmu_da1459x.h:188
HW_PMU_SRC_TYPE_VBAT
Bypass mode for LDO_IO/LDO_IO_RET.
Definition: hw_pmu_da1459x.h:84
hw_pmu_vdcdc_set_voltage
HW_PMU_ERROR_CODE hw_pmu_vdcdc_set_voltage(HW_PMU_VDCDC_VOLTAGE voltage)
Set the voltage level of VDCDC rail.
HW_PMU_VDCDC_VOLTAGE_1V40
1.40V
Definition: hw_pmu_da1459x.h:139
HW_PMU_VDD_VOLTAGE_1V00
1.00V during active state
Definition: hw_pmu_da1459x.h:173
HW_PMU_ERROR_XTAL32M_DBLR_ON
Doubler is on.
Definition: hw_pmu_da1459x.h:59
HW_PMU_ERROR_BOD_THRESHOLD
BOD threshold level.
Definition: hw_pmu_da1459x.h:70
HW_PMU_1V8_MAX_LOAD
HW_PMU_1V8_MAX_LOAD
Maximum load current options for the 1V8 power rail.
Definition: hw_pmu_da1459x.h:110
HW_PMU_ERROR_NOT_ENOUGH_POWER
Current LDO config cannot supply enough power for this config.
Definition: hw_pmu_da1459x.h:58
HW_PMU_VDCDC_VOLTAGE_1V35
1.35V
Definition: hw_pmu_da1459x.h:138
HW_PMU_ERROR_FAST_WAKEUP_ON
Fast wakeup is on.
Definition: hw_pmu_da1459x.h:66
HW_PMU_VDD_MAX_LOAD
HW_PMU_VDD_MAX_LOAD
Maximum load current options for the 1V8 power rail.
Definition: hw_pmu_da1459x.h:195
HW_PMU_ERROR_EFLASH_OPS
eFLASH write or erase operation is ongoing
Definition: hw_pmu_da1459x.h:72
HW_PMU_VDD_VOLTAGE_1V05
1.05V during active state
Definition: hw_pmu_da1459x.h:174
hw_pmu_vdd_set_voltage
HW_PMU_ERROR_CODE hw_pmu_vdd_set_voltage(HW_PMU_VDD_VOLTAGE voltage)
Set the voltage level of VDD rail.
HW_PMU_VDCDC_MAX_LDO_LOAD_40
40mA
Definition: hw_pmu_da1459x.h:151
hw_pmu_get_1v8_onwakeup_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_1v8_onwakeup_config(HW_PMU_1V8_RAIL_CONFIG *rail_config)
Get the 1V8 rail wakeup configuration.
HW_PMU_ERROR_XTAL32K_LP
XTAL32K set as LP clock.
Definition: hw_pmu_da1459x.h:65
hw_pmu_vdcdc_onwakeup_enable
HW_PMU_ERROR_CODE hw_pmu_vdcdc_onwakeup_enable(HW_PMU_VDCDC_MAX_LOAD max_load)
Set VDCDC rail wakeup / active configuration.
HW_PMU_VDCDC_VOLTAGE_1V25
1.25V
Definition: hw_pmu_da1459x.h:136
HW_PMU_VDCDC_RAIL_CONFIG
VDCDC power rail configuration.
Definition: hw_pmu_da1459x.h:158
hw_pmu_get_vdcdc_active_config
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.
HW_PMU_VDCDC_VOLTAGE_1V20
1.20V
Definition: hw_pmu_da1459x.h:135
hw_pmu_get_vdd_onwakeup_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdd_onwakeup_config(HW_PMU_VDD_RAIL_CONFIG *rail_config)
Get the VDD rail wakeup configuration.
HW_PMU_ERROR_RCX_ON
RCX is on.
Definition: hw_pmu_da1459x.h:62
HW_PMU_1V8_VOLTAGE_1V8
1.8V
Definition: hw_pmu_da1459x.h:103
HW_PMU_ERROR_NOERROR
No Error.
Definition: hw_pmu_da1459x.h:56
HW_PMU_VDCDC_VOLTAGE_1V15
1.15V
Definition: hw_pmu_da1459x.h:134
HW_PMU_VDD_VOLTAGE_SLEEP_0V90
0.90V during sleep state
Definition: hw_pmu_da1459x.h:186
HW_PMU_POWER_RAIL_STATE
HW_PMU_POWER_RAIL_STATE
Power rail state (enabled or disabled)
Definition: hw_pmu_da1459x.h:93
HW_PMU_ERROR_XTAL32K_ON
XTAL32K is on.
Definition: hw_pmu_da1459x.h:64
HW_PMU_ERROR_XTAL32M_ON
XTAL32M is on.
Definition: hw_pmu_da1459x.h:60
hw_pmu_1v8_onsleep_disable
HW_PMU_ERROR_CODE hw_pmu_1v8_onsleep_disable(void)
Disable 1V8 rail in sleep state.
HW_PMU_ERROR_INVALID_ARGS
Invalid arguments.
Definition: hw_pmu_da1459x.h:57
HW_PMU_VDD_MAX_LOAD_20
20mA
Definition: hw_pmu_da1459x.h:196
HW_PMU_ERROR_RC32M_ON
RC32M is on.
Definition: hw_pmu_da1459x.h:61
HW_PMU_VDD_RAIL_CONFIG
VDD power rail configuration.
Definition: hw_pmu_da1459x.h:204
HW_PMU_VDD_VOLTAGE_SLEEP_0V75
0.75V during sleep state
Definition: hw_pmu_da1459x.h:185
hw_pmu_get_vdcdc_onsleep_config
HW_PMU_POWER_RAIL_STATE hw_pmu_get_vdcdc_onsleep_config(HW_PMU_VDCDC_RAIL_CONFIG *rail_config)
Get the VDCDC rail sleep configuration.
HW_PMU_VDD_VOLTAGE
HW_PMU_VDD_VOLTAGE
Voltage level options for VDD rail.
Definition: hw_pmu_da1459x.h:169
HW_PMU_SRC_TYPE_DCDC_HIGH_EFFICIENCY
High efficiency (and ripple) source (DCDC)
Definition: hw_pmu_da1459x.h:83
HW_PMU_ERROR_OTHER_LOADS_DEPENDENCY
Other loads dependency.
Definition: hw_pmu_da1459x.h:68
hw_pmu_vdd_onsleep_enable
HW_PMU_ERROR_CODE hw_pmu_vdd_onsleep_enable(HW_PMU_VDD_MAX_LOAD max_load)
Enable VDD rail in sleep state.
HW_PMU_ERROR_RCX_LP
RCX set as LP clock.
Definition: hw_pmu_da1459x.h:63
HW_PMU_VDD_VOLTAGE_0V90
0.90V during active state
Definition: hw_pmu_da1459x.h:171
hw_pmu_vdcdc_onsleep_enable
HW_PMU_ERROR_CODE hw_pmu_vdcdc_onsleep_enable(HW_PMU_VDCDC_MAX_LOAD max_load)
Enable the VDCDC rail in sleep state.
HW_PMU_VDD_VOLTAGE_0V95
0.95V during active state
Definition: hw_pmu_da1459x.h:172
HW_PMU_1V8_VOLTAGE
HW_PMU_1V8_VOLTAGE
Voltage level options for the 1V8 power rail.
Definition: hw_pmu_da1459x.h:102
HW_PMU_1V8_RAIL_CONFIG
1V8 power rail configuration
Definition: hw_pmu_da1459x.h:121