SmartSnippets DA1459x SDK
ad_pmu.h
Go to the documentation of this file.
1 
44 #ifndef AD_PMU_H_
45 #define AD_PMU_H_
46 
47 #if dg_configPMU_ADAPTER
48 
49 #include <hw_pmu.h>
50 #include <hw_sys.h>
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
60 typedef enum {
64 } AD_PMU_RAIL;
65 
70 typedef struct {
73  union {
74  struct {
79  } rail_vdd;
80 
81  struct {
85  } rail_vdcdc;
86 
87  struct {
90  } rail_1v8;
91 
92  };
94 
95 
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif /* dg_configPMU_ADAPTER */
111 
112 
113 #endif /* AD_PMU_H_ */
114 
ad_pmu_rail_config_t::enabled_onsleep
bool enabled_onsleep
true if rail is enabled in sleep state
Definition: ad_pmu.h:72
ad_pmu_rail_config_t::current_onsleep
HW_PMU_VDD_MAX_LOAD current_onsleep
VDD rail current configuration in sleep state.
Definition: ad_pmu.h:78
ad_pmu_rail_config_t
Rail configuration.
Definition: ad_pmu.h:70
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_VDCDC_MAX_LOAD
HW_PMU_VDCDC_MAX_LOAD
Maximum load current options for the VDCDC power rail.
Definition: hw_pmu_da1459x.h:147
hw_sys.h
System Driver header file.
ad_pmu_configure_rail
int ad_pmu_configure_rail(AD_PMU_RAIL rail, const ad_pmu_rail_config_t *config)
Configure a power rail.
AD_PMU_RAIL
AD_PMU_RAIL
Rail selection.
Definition: ad_pmu.h:60
PMU_RAIL_1V8
1V8 rail
Definition: ad_pmu.h:63
PMU_RAIL_VDD
VDD rail.
Definition: ad_pmu.h:61
ad_pmu_rail_config_t::voltage_onsleep
HW_PMU_VDD_VOLTAGE voltage_onsleep
VDD rail voltage configuration in sleep state.
Definition: ad_pmu.h:76
ad_pmu_rail_config_t::voltage_onwakeup
HW_PMU_VDCDC_VOLTAGE voltage_onwakeup
VDCDC rail voltage configuration in wakeup / active state.
Definition: ad_pmu.h:82
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_VDD_MAX_LOAD
HW_PMU_VDD_MAX_LOAD
Maximum load current options for the 1V8 power rail.
Definition: hw_pmu_da1459x.h:195
ad_pmu_rail_config_t::current_onwakeup
HW_PMU_VDCDC_MAX_LOAD current_onwakeup
VDCDC rail current configuration in wakeup / active state.
Definition: ad_pmu.h:83
ad_pmu_rail_config_t::current_onwakeup
HW_PMU_1V8_MAX_LOAD current_onwakeup
1V8 rail current configuration in wakeup / active state
Definition: ad_pmu.h:88
ad_pmu_rail_config_t::current_onsleep
HW_PMU_1V8_MAX_LOAD current_onsleep
1V8 rail current configuration in sleep state
Definition: ad_pmu.h:89
PMU_RAIL_VDCDC
VDCDC rail.
Definition: ad_pmu.h:62
ad_pmu_rail_config_t::current_onwakeup
HW_PMU_VDD_MAX_LOAD current_onwakeup
VDD rail current configuration in wakeup / active state.
Definition: ad_pmu.h:77
hw_pmu.h
Power Manager header file.
HW_PMU_VDD_VOLTAGE
HW_PMU_VDD_VOLTAGE
Voltage level options for VDD rail.
Definition: hw_pmu_da1459x.h:169
ad_pmu_rail_config_t::voltage_onwakeup
HW_PMU_VDD_VOLTAGE voltage_onwakeup
VDD rail voltage configuration in wakeup / active state.
Definition: ad_pmu.h:75
ad_pmu_rail_config_t::enabled_onwakeup
bool enabled_onwakeup
true if rail is enabled in wakeup / active state
Definition: ad_pmu.h:71
ad_pmu_rail_config_t::current_onsleep
HW_PMU_VDCDC_MAX_LOAD current_onsleep
VDCDC rail current configuration in sleep state.
Definition: ad_pmu.h:84