nrfx 3.3
Data Structures | Enumerations | Functions
Main Voltage Regulator HAL

Hardware access layer for managing the Main Voltage Regulator (VREGMAIN). More...

Data Structures

struct  nrf_vregmain_config_static_t
 Static configuration structure. More...
 
struct  nrf_vregmain_config_channel_t
 Channel configuration structure. More...
 
struct  nrf_vregmain_mode_config_t
 Voltage regulator mode configuration structure. More...
 
struct  nrf_vregmain_fbctrl_t
 Regulator feedback point control structure. More...
 
struct  nrf_vregmain_tcfg_t
 Test mode configuration. More...
 

Enumerations

enum  nrf_vregmain_event_t {
  NRF_VREGMAIN_EVENT_READY = offsetof(NRF_VREGMAIN_Type, EVENTS_READY) ,
  NRF_VREGMAIN_EVENT_SETTLED = offsetof(NRF_VREGMAIN_Type, EVENTS_SETTLED) ,
  NRF_VREGMAIN_EVENT_SETTLED_CH1 = offsetof(NRF_VREGMAIN_Type, EVENTS_SETTLEDCH1) ,
  NRF_VREGMAIN_EVENT_SETTLED_CH2 = offsetof(NRF_VREGMAIN_Type, EVENTS_SETTLEDCH2) ,
  NRF_VREGMAIN_EVENT_SETTLED_CH3 = offsetof(NRF_VREGMAIN_Type, EVENTS_SETTLEDCH3) ,
  NRF_VREGMAIN_EVENT_IOUTCMP = offsetof(NRF_VREGMAIN_Type, EVENTS_IOUTCMP) ,
  NRF_VREGMAIN_EVENT_LP2HP = offsetof(NRF_VREGMAIN_Type, EVENTS_LP2HP) ,
  NRF_VREGMAIN_EVENT_HP2LP = offsetof(NRF_VREGMAIN_Type, EVENTS_HP2LP)
}
 VREGMAIN events. More...
 
enum  nrf_vregmain_int_mask_t {
  NRF_VREGMAIN_INT_READY_MASK = VREGMAIN_INTEN_READY_Msk ,
  NRF_VREGMAIN_INT_SETTLED_MASK = VREGMAIN_INTEN_SETTLED_Msk ,
  NRF_VREGMAIN_INT_SETTLED_CH1_MASK = VREGMAIN_INTEN_SETTLEDCH1_Msk ,
  NRF_VREGMAIN_INT_SETTLED_CH2_MASK = VREGMAIN_INTEN_SETTLEDCH2_Msk ,
  NRF_VREGMAIN_INT_SETTLED_CH3_MASK = VREGMAIN_INTEN_SETTLEDCH3_Msk ,
  NRF_VREGMAIN_INT_IOUTCMP_MASK = VREGMAIN_INTEN_IOUTCMP_Msk ,
  NRF_VREGMAIN_INT_LP2HP_MASK = VREGMAIN_INTEN_LP2HP_Msk ,
  NRF_VREGMAIN_INT_HP2LP_MASK = VREGMAIN_INTEN_HP2LP_Msk
}
 VREGMAIN interrupts. More...
 
enum  nrf_vregmain_status_t {
  NRF_VREGMAIN_STATUS_HIGH_POWER = VREGMAIN_STATUS_MODE_HP ,
  NRF_VREGMAIN_STATUS_LOW_POWER = VREGMAIN_STATUS_MODE_LP ,
  NRF_VREGMAIN_STATUS_ULP_REFRESH = VREGMAIN_STATUS_MODE_ULP ,
  NRF_VREGMAIN_STATUS_PWM = VREGMAIN_STATUS_MODE_PWM
}
 STATUS register states. More...
 
enum  nrf_vregmain_statusana_mask_t {
  NRF_VREGMAIN_STATUSANA_READY_MASK = VREGMAIN_STATUSANA_READY_Msk ,
  NRF_VREGMAIN_STATUSANA_SETTLED_MODE_MASK = VREGMAIN_STATUSANA_SETTLEDMODE_Msk ,
  NRF_VREGMAIN_STATUSANA_SETTLED_CH1_MASK = VREGMAIN_STATUSANA_SETTLEDCH1_Msk ,
  NRF_VREGMAIN_STATUSANA_SETTLED_CH2_MASK = VREGMAIN_STATUSANA_SETTLEDCH2_Msk ,
  NRF_VREGMAIN_STATUSANA_SETTLED_CH3_MASK = VREGMAIN_STATUSANA_SETTLEDCH3_Msk ,
  NRF_VREGMAIN_STATUSANA_CHRG_CH1_MASK = VREGMAIN_STATUSANA_CHRGCH1_Msk ,
  NRF_VREGMAIN_STATUSANA_CHRG_CH2_MASK = VREGMAIN_STATUSANA_CHRGCH2_Msk ,
  NRF_VREGMAIN_STATUSANA_CHRG_CH3_MASK = VREGMAIN_STATUSANA_CHRGCH3_Msk ,
  NRF_VREGMAIN_STATUSANA_ICMP_MASK = VREGMAIN_STATUSANA_ICMP_Msk
}
 STATUSANA register bit masks. More...
 
enum  nrf_vregmain_statusdig_mask_t {
  NRF_VREGMAIN_STATUSDIG_FSM_MASTER_MASK = VREGMAIN_STATUSDIG_FSMMASTER_Msk ,
  NRF_VREGMAIN_STATUSDIG_FSM_1V8_MASK = VREGMAIN_STATUSDIG_FSM1V8_Msk ,
  NRF_VREGMAIN_STATUSDIG_FSM_0V8_MASK = VREGMAIN_STATUSDIG_FSM0V8_Msk
}
 STATUSDIG register bit masks. More...
 
enum  nrf_vregmain_hyst_ctrl_t {
  NRF_VREGMMAIN_HYST_CTRL_4MV = VREGMAIN_CONFIG_CFGSTATIC_HYSTCTRL_Hyst4mV ,
  NRF_VREGMMAIN_HYST_CTRL_8MV = VREGMAIN_CONFIG_CFGSTATIC_HYSTCTRL_Hyst8mV
}
 Available amounts of hysteresis for HYSTCTRL field in CONFIG.CFGSTATIC register. More...
 
enum  nrf_vregmain_hyst_run_ctrl_t {
  NRF_VREGMMAIN_HYST_RUN_CTRL_VOUT_CMP = VREGMAIN_CONFIG_CFGSTATIC_HYSTRUNCTRL_HystVoutCmp ,
  NRF_VREGMMAIN_HYST_RUN_CTRL_MBIAS_CORE = VREGMAIN_CONFIG_CFGSTATIC_HYSTRUNCTRL_HystMbiasCore
}
 Available hysteresis feedback control sources for HYSTRUNCTRL field in CONFIG.CFGSTATIC register. More...
 
enum  nrf_vregmain_channel_t {
  NRF_VREGMAIN_CHANNEL_1 ,
  NRF_VREGMAIN_CHANNEL_2 ,
  NRF_VREGMAIN_CHANNEL_3
}
 Enum for selecting CFG channel to be configured. More...
 
enum  nrf_vregmain_trim_biasibpp_t {
  NRF_VREGMAIN_TRIM_BIASIBPP_NORMAL = VREGMAIN_TRIM_BIASIBPP_VAL_Normal ,
  NRF_VREGMAIN_TRIM_BIASIBPP_23 = VREGMAIN_TRIM_BIASIBPP_VAL_Val23 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_54 = VREGMAIN_TRIM_BIASIBPP_VAL_Val54 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_98 = VREGMAIN_TRIM_BIASIBPP_VAL_Val98 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_NEG_51 = VREGMAIN_TRIM_BIASIBPP_VAL_ValNeg51 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_NEG_42 = VREGMAIN_TRIM_BIASIBPP_VAL_ValNeg42 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_NEG_31 = VREGMAIN_TRIM_BIASIBPP_VAL_ValNeg31 ,
  NRF_VREGMAIN_TRIM_BIASIBPP_NEG_18 = VREGMAIN_TRIM_BIASIBPP_VAL_ValNeg18
}
 IBPP current trimming values. More...
 
enum  nrf_vregmain_trim_icmp_t {
  NRF_VREGMAIN_TRIM_ICMP_0 = VREGMAIN_TRIM_ICMP_VAL_Val0 ,
  NRF_VREGMAIN_TRIM_ICMP_25 = VREGMAIN_TRIM_ICMP_VAL_Val25 ,
  NRF_VREGMAIN_TRIM_ICMP_NEG_50 = VREGMAIN_TRIM_ICMP_VAL_ValNeg50 ,
  NRF_VREGMAIN_TRIM_ICMP_NEG_25 = VREGMAIN_TRIM_ICMP_VAL_ValNeg25
}
 DCDC output current comparator trimming values. More...
 
enum  nrf_vregmain_pwrupctrl_t {
  NRF_VREGMAIN_PWRUPCTRL_AUTO = VREGMAIN_PWRUPCTRL_CTRL_Auto ,
  NRF_VREGMAIN_PWRUPCTRL_POWER_UP = VREGMAIN_PWRUPCTRL_CTRL_PowerUp ,
  NRF_VREGMAIN_PWRUPCTRL_POWER_DOWN = VREGMAIN_PWRUPCTRL_CTRL_PowerDown
}
 PWRUPCTRL register modes. More...
 
enum  nrf_vregmain_mode_t {
  NRF_VREGMAIN_MODE_AUTO = VREGMAIN_MODE_MODE_Auto ,
  NRF_VREGMAIN_MODE_HIGH_POWER = VREGMAIN_MODE_MODE_HP ,
  NRF_VREGMAIN_MODE_LOW_POWER = VREGMAIN_MODE_MODE_LP ,
  NRF_VREGMAIN_MODE_ULP_REFRESH = VREGMAIN_MODE_MODE_ULP ,
  NRF_VREGMAIN_MODE_PWM = VREGMAIN_MODE_MODE_PWM
}
 Voltage regulator mode. More...
 
enum  nrf_vregmain_vdd_ao_1v8_output_t {
  NRF_VREGMAIN_VDD_AO_1V8_OUTPUT_NORMAL ,
  NRF_VREGMAIN_VDD_AO_1V8_OUTPUT_LP
}
 Enum for selecting VDD_AO_1V8 voltage output target. More...
 
enum  nrf_vregmain_vdd_1v0_output_t {
  NRF_VREGMAIN_VDD_1V0_OUTPUT_NORMAL ,
  NRF_VREGMAIN_VDD_1V0_OUTPUT_RADIO ,
  NRF_VREGMAIN_VDD_1V0_OUTPUT_LP ,
  NRF_VREGMAIN_VDD_1V0_OUTPUT_LP_RADIO ,
  NRF_VREGMAIN_VDD_1V0_OUTPUT_ULP
}
 Enum for selecting VDD_1V0 voltage output target. More...
 
enum  nrf_vregmain_hsilimprog_t {
  NRF_VREGMAIN_HSILIMPROG_150MA = VREGMAIN_HSILIMPROG_VAL_Val150mA ,
  NRF_VREGMAIN_HSILIMPROG_250MA = VREGMAIN_HSILIMPROG_VAL_Val250mA ,
  NRF_VREGMAIN_HSILIMPROG_350MA = VREGMAIN_HSILIMPROG_VAL_Val350mA ,
  NRF_VREGMAIN_HSILIMPROG_450MA = VREGMAIN_HSILIMPROG_VAL_Val450mA
}
 HS current limiter values. More...
 
enum  nrf_vregmain_pwmprog_t {
  NRF_VREGMAIN_PWMPROG_VAL0 = VREGMAIN_PWMPROG_VAL_PWMVal0 ,
  NRF_VREGMAIN_PWMPROG_VAL1 = VREGMAIN_PWMPROG_VAL_PWMVal1 ,
  NRF_VREGMAIN_PWMPROG_VAL2 = VREGMAIN_PWMPROG_VAL_PWMVal2 ,
  NRF_VREGMAIN_PWMPROG_VAL3 = VREGMAIN_PWMPROG_VAL_PWMVal3
}
 PWM program values. More...
 
enum  nrf_vregmain_fbctrl_vdd1v8_t {
  NRF_VREGMAIN_FBCTRL_VDD1V8_VDD_1V8 = VREGMAIN_FBCTRL_VDD1V8_VDD1V8FB ,
  NRF_VREGMAIN_FBCTRL_VDD1V8_SEC_1V8 = VREGMAIN_FBCTRL_VDD1V8_SEC1V8FB ,
  NRF_VREGMAIN_FBCTRL_VDD1V8_VDD_SEC_1V8 = VREGMAIN_FBCTRL_VDD1V8_VDDSEC1V8FB
}
 DD_1V8 feedback configurations. More...
 
enum  nrf_vregmain_fbctrl_vdd1v0_t {
  NRF_VREGMAIN_FBCTRL_VDD1V0_VDD_1V0 = VREGMAIN_FBCTRL_VDD1V0_VDD1V0FB ,
  NRF_VREGMAIN_FBCTRL_VDD1V0_SEC_1V0 = VREGMAIN_FBCTRL_VDD1V0_SEC1V0FB ,
  NRF_VREGMAIN_FBCTRL_VDD1V0_VDD_SEC_1V0 = VREGMAIN_FBCTRL_VDD1V0_VDDSEC1V0FB ,
  NRF_VREGMAIN_FBCTRL_VDD1V0_VDDAO_0V8_SEC_1V0 = VREGMAIN_FBCTRL_VDD1V0_VDDAOSEC1V0FB
}
 DD_1V0 feedback configurations. More...
 
enum  nrf_vregmain_fbctrl_vdd0v8_t {
  NRF_VREGMAIN_FBCTRL_VDD0V8_VDDVS_0V8 = VREGMAIN_FBCTRL_VDD0V8_VDDVS0V8FB ,
  NRF_VREGMAIN_FBCTRL_VDD0V8_SEC_0V8 = VREGMAIN_FBCTRL_VDD0V8_SEC0V8FB ,
  NRF_VREGMAIN_FBCTRL_VDD0V8_VDDVS_SEC_0V8 = VREGMAIN_FBCTRL_VDD0V8_VDDVS0V8SEC0V8FB
}
 VDD_0V8 feedback configurations. More...
 
enum  nrf_vregmain_ithreshold_t {
  NRF_VREGMAIN_ITHRESHOLD_HP_LP ,
  NRF_VREGMAIN_ITHRESHOLD_PWM ,
  NRF_VREGMAIN_ITHRESHOLD_0V8_LOW
}
 Enum for selecting mode in which current threshold will be configured. More...
 
enum  nrf_vregmain_signal_t {
  NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH1 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH2 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH3 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH1 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH2 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH3 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_ICMP ,
  NRF_VREGMAIN_SIGNAL_ANALOG_MODE_LP ,
  NRF_VREGMAIN_SIGNAL_ANALOG_MODE_PWM ,
  NRF_VREGMAIN_SIGNAL_ANALOG_MODE_ULP ,
  NRF_VREGMAIN_SIGNAL_ANALOG_PWRUP ,
  NRF_VREGMAIN_SIGNAL_ANALOG_READY ,
  NRF_VREGMAIN_SIGNAL_ANALOG_RETAIN ,
  NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH1 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH2 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH3 ,
  NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_MODE ,
  NRF_VREGMAIN_SIGNAL_CFG_ALL_STATIC ,
  NRF_VREGMAIN_SIGNAL_SELMUX_VOLT1V0_HP_BANK ,
  NRF_VREGMAIN_SIGNAL_SELMUX_VOLT1V0_LP_BANK
}
 Signal to be overridden. More...
 
enum  nrf_vregmain_dft_atb0_selmux_t {
  NRF_VREGMAIN_DFT_ATB0_SELMUX_ATB0_EXT = VREGMAIN_DFT_ATB0CONFIG_SELMUX_ATB0EXT ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_0V9 = VREGMAIN_DFT_ATB0CONFIG_SELMUX_VFB0V9 ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_1V0 = VREGMAIN_DFT_ATB0CONFIG_SELMUX_VFB1V0 ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_0V8 = VREGMAIN_DFT_ATB0CONFIG_SELMUX_VFB0V8 ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_AVSS_VGND = VREGMAIN_DFT_ATB0CONFIG_SELMUX_AVSSVGND ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_MBIAS_IBPP_50N = VREGMAIN_DFT_ATB0CONFIG_SELMUX_MBIASIBPP50N ,
  NRF_VREGMAIN_DFT_ATB0_SELMUX_MBIAS_IBPSR_8U = VREGMAIN_DFT_ATB0CONFIG_SELMUX_MBIASIBPSR8U
}
 Select multiplexer for ATB0. More...
 
enum  nrf_vregmain_dft_atb1_selmux_t {
  NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_0V9 = VREGMAIN_DFT_ATB1CONFIG_SELMUX_VREF0V9 ,
  NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_1V0 = VREGMAIN_DFT_ATB1CONFIG_SELMUX_VREF1V0 ,
  NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_0V8 = VREGMAIN_DFT_ATB1CONFIG_SELMUX_VREF0V8 ,
  NRF_VREGMAIN_DFT_ATB1_SELMUX_VGND_REF5V = VREGMAIN_DFT_ATB1CONFIG_SELMUX_VGNDREF5V ,
  NRF_VREGMAIN_DFT_ATB1_SELMUX_MBIAS_VREF = VREGMAIN_DFT_ATB1CONFIG_SELMUX_MBIASVREF ,
  NRF_VREGMAIN_DFT_ATB1_SELMUX_AVSS_SIMO = VREGMAIN_DFT_ATB1CONFIG_SELMUX_AVSSSIMO
}
 Select multiplexer for ATB1. More...
 
enum  nrf_vregmain_dft_dtb0_selmux_t {
  NRF_VREGMAIN_DFT_DTB0_SELMUX_CLK = VREGMAIN_DFT_DTB0CONFIG_SELMUX_CLK ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_IBPP_READY = VREGMAIN_DFT_DTB0CONFIG_SELMUX_IBPPREADY ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_REQUEST = VREGMAIN_DFT_DTB0CONFIG_SELMUX_REQUESTMBIAS ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_READY = VREGMAIN_DFT_DTB0CONFIG_SELMUX_MBIASREADY ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_SEL_VOLT_LP = VREGMAIN_DFT_DTB0CONFIG_SELMUX_SELVOLTLP ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_DRVHS = VREGMAIN_DFT_DTB0CONFIG_SELMUX_DRVHS ,
  NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_SETTLED = VREGMAIN_DFT_DTB0CONFIG_SELMUX_MBIASSETTLED
}
 Select multiplexer for DTB0. More...
 
enum  nrf_vregmain_dft_dtb1_selmux_t {
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWRUPCH1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWRUPCH1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_VOUTCMP1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_VOUTCMP1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWMCMP1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWMCMP1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_DRVSEC1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_DRVSEC1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_ZCROSS = VREGMAIN_DFT_DTB1CONFIG_SELMUX_ZCROSS ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PD_CCHR_EADY = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PDCCHREADY ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_MODE_LP = VREGMAIN_DFT_DTB1CONFIG_SELMUX_MODELP ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_HVBUCK_READY = VREGMAIN_DFT_DTB1CONFIG_SELMUX_HVBUCKREADY ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_SETTLED_CH3 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_SETTLEDCH3 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_ILIM2 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWMILIM2 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_OC1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWMOC1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_SKIP1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWMSKIP1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_FAULT1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_PWMFAULT1 ,
  NRF_VREGMAIN_DFT_DTB1_SELMUX_CHRG1 = VREGMAIN_DFT_DTB1CONFIG_SELMUX_CHRG1
}
 Select multiplexer for DTB1. More...
 
enum  nrf_vregmain_dft_dtb2_selmux_t {
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWRUP_PWM = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWRUPPWM ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWRUPCH2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWRUPCH2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_VOUTCMP3 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_VOUTCMP3 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWMCMP2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWMCMP2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_DRVSEC2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_DRVSEC2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_HSLIM = VREGMAIN_DFT_DTB2CONFIG_SELMUX_HSLIM ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_DRVLS = VREGMAIN_DFT_DTB2CONFIG_SELMUX_DRVLS ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_MODE_HP = VREGMAIN_DFT_DTB2CONFIG_SELMUX_MODEHP ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_HVBUCK_SETTLED = VREGMAIN_DFT_DTB2CONFIG_SELMUX_HVBUCKSETTLED ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_SETTLED_CH1 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_SETTLEDCH1 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_LIM1_1V8 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWMLIM11V8 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_OC2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWMOC2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_SKIP2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWMSKIP2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_FAULT2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_PWMFAULT2 ,
  NRF_VREGMAIN_DFT_DTB2_SELMUX_CHRG2 = VREGMAIN_DFT_DTB2CONFIG_SELMUX_CHRG2
}
 Select multiplexer for DTB2. More...
 
enum  nrf_vregmain_dft_dtb3_selmux_t {
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWRUP_HYST = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWRUPHYST ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWRUPCH3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWRUPCH3 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_VOUTCMP2 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_VOUTCMP2 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWMCMP3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWMCMP3 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_DRVSEC3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_DRVSEC3 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_SECREADY = VREGMAIN_DFT_DTB3CONFIG_SELMUX_SECREADY ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_MODE_PWM = VREGMAIN_DFT_DTB3CONFIG_SELMUX_MODEPWM ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_SETTLED_CH2 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_SETTLEDCH2 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_ILIM3_1V8 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWMILIM31V8 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_OC3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWMOC3 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_SKIP3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWMSKIP3 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_FAULT2 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_PWMFAULT2 ,
  NRF_VREGMAIN_DFT_DTB3_SELMUX_CHRG3 = VREGMAIN_DFT_DTB3CONFIG_SELMUX_CHRG3
}
 Select multiplexer for DTB3. More...
 
enum  nrf_vregmain_dft_tcfg_drvsec_t {
  NRF_VREGMAIN_DFT_TCFG_DRVSEC_NORMAL = VREGMAIN_DFT_TCFG_DRVSEC_Normal ,
  NRF_VREGMAIN_DFT_TCFG_DRVSEC_1 = VREGMAIN_DFT_TCFG_DRVSEC_DRVSEC1 ,
  NRF_VREGMAIN_DFT_TCFG_DRVSEC_2 = VREGMAIN_DFT_TCFG_DRVSEC_DRVSEC2 ,
  NRF_VREGMAIN_DFT_TCFG_DRVSEC_OFF = VREGMAIN_DFT_TCFG_DRVSEC_OFF
}
 Select DRVSEC mode for test mode configuration (DFT.TCFG). More...
 
enum  nrf_vregmain_dft_tcfg_hsforceon_t {
  NRF_VREGMAIN_DFT_TCFG_HSFORCEON_NORMAL = VREGMAIN_DFT_TCFG_HSFORCEON_Normal ,
  NRF_VREGMAIN_DFT_TCFG_HSFORCEON_HSILIM = VREGMAIN_DFT_TCFG_HSFORCEON_HSILIM ,
  NRF_VREGMAIN_DFT_TCFG_HSFORCEON_GPI = VREGMAIN_DFT_TCFG_HSFORCEON_GPI ,
  NRF_VREGMAIN_DFT_TCFG_HSFORCEON_HS_FORCE_ON = VREGMAIN_DFT_TCFG_HSFORCEON_HSforceon
}
 Select HSFORCEON mode for test mode configuration (DFT.TCFG). More...
 
enum  nrf_vregmain_dft_tcfg_lsforceon_t {
  NRF_VREGMAIN_DFT_TCFG_LSFORCEON_NORMAL = VREGMAIN_DFT_TCFG_LSFORCEON_Normal ,
  NRF_VREGMAIN_DFT_TCFG_LSFORCEON_LS_FORCE_OFF = VREGMAIN_DFT_TCFG_LSFORCEON_LSforceoff ,
  NRF_VREGMAIN_DFT_TCFG_LSFORCEON_GPI = VREGMAIN_DFT_TCFG_LSFORCEON_GPI ,
  NRF_VREGMAIN_DFT_TCFG_LSFORCEON_LS_FORCE_ON = VREGMAIN_DFT_TCFG_LSFORCEON_LSforceon
}
 Select LSFORCEON mode for test mode configuration (DFT.TCFG). More...
 

Functions

NRF_STATIC_INLINE void nrf_vregmain_event_clear (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_event_t event)
 Function for clearing the specified VREGMAIN event.
 
NRF_STATIC_INLINE bool nrf_vregmain_event_check (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_event_t event)
 Function for retrieving the state of the VREGMAIN event.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_event_address_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_event_t event)
 Function for getting the address of the specified event register.
 
NRF_STATIC_INLINE void nrf_vregmain_int_enable (NRF_VREGMAIN_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts.
 
NRF_STATIC_INLINE void nrf_vregmain_int_disable (NRF_VREGMAIN_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_int_enable_check (NRF_VREGMAIN_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_int_pending_get (NRF_VREGMAIN_Type const *p_reg)
 Function for retrieving the state of pending interrupts.
 
NRF_STATIC_INLINE nrf_vregmain_status_t nrf_vregmain_status_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VREGMAIN status register.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_statusana_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VREGMAIN status of the analog module output signals.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_statusdig_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting STATUSDIG status of digital controllers.
 
NRF_STATIC_INLINE void nrf_vregmain_config_cfgstatic_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_config_static_t config)
 Function for setting static voltage regulator configuration.
 
NRF_STATIC_INLINE void nrf_vregmain_config_cfgch_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_channel_t channel, nrf_vregmain_config_channel_t config)
 Function for setting specific channel voltage regulator configuration.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_biasibpp_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_trim_biasibpp_t val)
 Function for setting IBPP current bias trimming.
 
NRF_STATIC_INLINE nrf_vregmain_trim_biasibpp_t nrf_vregmain_trim_biasibpp_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting IBPP current bias trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_biasibpsr_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting IBPSR current and VREF voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_biasibpsr_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting IBPSR current and VREF voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vddao1v8hystoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_AO_1V8 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddao1v8hystoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_AO_1V8 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vddao1v8pwmoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_AO_1V8 PWM output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddao1v8pwmoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_AO_1V8 PWM output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vdd1v0hystoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_1V0 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vdd1v0hystoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_1V0 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vddvs0v8hystoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_VS_0V8 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddvs0v8hystoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_VS_0V8 hysteretic (HYST) output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vddvs0v8pwmoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_VS_0V8 PWM output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddvs0v8pwmoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_VS_0V8 PWM output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vdd1v0pwmoutput_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_1V0 PWM PWM output voltage trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vdd1v0pwmoutput_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_1V0 PWM output voltage trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_zcross_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting zero cross detector current trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_zcross_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting zero cross detector current trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_hsilim_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting HS current limiter trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_hsilim_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting HS current limiter trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_icmp_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_trim_icmp_t val)
 Function for setting DCDC output current comparator trimming.
 
NRF_STATIC_INLINE nrf_vregmain_trim_icmp_t nrf_vregmain_trim_icmp_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting DCDC output current comparator trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_trim_vgnd_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VGND trimming.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vgnd_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VGND trimming.
 
NRF_STATIC_INLINE void nrf_vregmain_mirror_lock (NRF_VREGMAIN_Type *p_reg, bool lock)
 Function for locking mirrored registers.
 
NRF_STATIC_INLINE void nrf_vregmain_pwrupctrl_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_pwrupctrl_t mode)
 Function for VREGMAIN power up control register.
 
NRF_STATIC_INLINE nrf_vregmain_pwrupctrl_t nrf_vregmain_pwrupctrl_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VREGMAIN power up control register.
 
NRF_STATIC_INLINE void nrf_vregmain_mode_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_mode_config_t const *p_data)
 Function for setting voltage regulator mode.
 
NRF_STATIC_INLINE void nrf_vregmain_mode_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_mode_config_t *p_data)
 Function for getting voltage regulator mode.
 
NRF_STATIC_INLINE void nrf_vregmain_vdd_ao_1v8_out_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_vdd_ao_1v8_output_t vout, uint8_t val)
 Function for setting VDD_AO_1V8 output voltage.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_ao_1v8_out_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_vdd_ao_1v8_output_t vout)
 Function for getting VDD_AO_1V8 output voltage.
 
NRF_STATIC_INLINE void nrf_vregmain_vdd_1v0_out_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_vdd_1v0_output_t vout, uint8_t val)
 Function for setting VDD_AO_1V8 output voltage.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_1v0_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_vdd_1v0_output_t vout)
 Function for getting VDD_AO_1V8 output voltage.
 
NRF_STATIC_INLINE void nrf_vregmain_vdd_vs_0v8_out_set (NRF_VREGMAIN_Type *p_reg, uint8_t val)
 Function for setting VDD_VS_0V8 output voltage.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_vs_0v8_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting VDD_VS_0V8 output voltage.
 
NRF_STATIC_INLINE void nrf_vregmain_hsilimprog_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_hsilimprog_t val)
 Function for setting HS current limiter program.
 
NRF_STATIC_INLINE nrf_vregmain_hsilimprog_t nrf_vregmain_hsilimprog_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting HS current limiter program.
 
NRF_STATIC_INLINE void nrf_vregmain_pwmprog_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_pwmprog_t val)
 Function for setting PWM program.
 
NRF_STATIC_INLINE nrf_vregmain_pwmprog_t nrf_vregmain_pwmprog_get (NRF_VREGMAIN_Type const *p_reg)
 Function for getting PWM program.
 
NRF_STATIC_INLINE void nrf_vregmain_fbctrl_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_fbctrl_t const *p_data)
 Function for setting regulator feedback point control configuration.
 
NRF_STATIC_INLINE void nrf_vregmain_fbctrl_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_fbctrl_t *p_data)
 Function for regulator feedback point control configuration.
 
NRF_STATIC_INLINE void nrf_vregmain_ithreshold_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_ithreshold_t mode, uint8_t thr)
 Function for setting current threshold for HP/LP mode transistion.
 
NRF_STATIC_INLINE uint8_t nrf_vregmain_ithreshold_get (NRF_VREGMAIN_Type const *p_reg, nrf_vregmain_ithreshold_t mode)
 Function for getting current threshold for HP/LP mode transistion.
 
NRF_STATIC_INLINE void nrf_vregmain_override (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_signal_t signal, bool enable, uint8_t val)
 Function for override signal.
 
NRF_STATIC_INLINE void nrf_vregmain_dft_atb0_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_atb0_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 0 (ATB0).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_atb1_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_atb1_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 1 (ATB1).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_dtb0_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_dtb0_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 0 (DTB0).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_dtb1_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_dtb1_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 1 (DTB1).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_dtb2_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_dtb2_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 2 (DTB2).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_dtb3_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_dft_dtb3_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 3 (DTB3).
 
NRF_STATIC_INLINE void nrf_vregmain_dft_tcfg_config_set (NRF_VREGMAIN_Type *p_reg, nrf_vregmain_tcfg_t tcfg)
 Function for configuring test mode.
 
NRF_STATIC_INLINE void nrf_vregmain_dft_cal_set (NRF_VREGMAIN_Type *p_reg, bool enable)
 Function for enabling or disabling calibration.
 
NRF_STATIC_INLINE bool nrf_vregmain_dft_cal_check (NRF_VREGMAIN_Type *p_reg)
 Function for checking calibration.
 
NRF_STATIC_INLINE uint32_t nrf_vregmain_dft_calcmp_check (NRF_VREGMAIN_Type const *p_reg)
 Function for checking calibration compare.
 

Detailed Description

Hardware access layer for managing the Main Voltage Regulator (VREGMAIN).

Enumeration Type Documentation

◆ nrf_vregmain_channel_t

Enum for selecting CFG channel to be configured.

Enumerator
NRF_VREGMAIN_CHANNEL_1 

Channel 1.

NRF_VREGMAIN_CHANNEL_2 

Channel 2.

NRF_VREGMAIN_CHANNEL_3 

Channel 3.

◆ nrf_vregmain_dft_atb0_selmux_t

Select multiplexer for ATB0.

Enumerator
NRF_VREGMAIN_DFT_ATB0_SELMUX_ATB0_EXT 

ATB0_EXT selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_0V9 

VFB_0V9 selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_1V0 

VFB_1V0 selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_VFB_0V8 

VFB_0V8 selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_AVSS_VGND 

AVSS_VGND selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_MBIAS_IBPP_50N 

MBIAS_IBPP_50N selected.

NRF_VREGMAIN_DFT_ATB0_SELMUX_MBIAS_IBPSR_8U 

MBIAS_IBPSR_8U selected.

◆ nrf_vregmain_dft_atb1_selmux_t

Select multiplexer for ATB1.

Enumerator
NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_0V9 

VREF_0V9 selected.

NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_1V0 

VREF_1V0 selected.

NRF_VREGMAIN_DFT_ATB1_SELMUX_VREF_0V8 

VREF_0V8 selected.

NRF_VREGMAIN_DFT_ATB1_SELMUX_VGND_REF5V 

VGNDREF_5V selected.

NRF_VREGMAIN_DFT_ATB1_SELMUX_MBIAS_VREF 

MBIAS_VREF selected.

NRF_VREGMAIN_DFT_ATB1_SELMUX_AVSS_SIMO 

AVSS_SIMO selected.

◆ nrf_vregmain_dft_dtb0_selmux_t

Select multiplexer for DTB0.

Enumerator
NRF_VREGMAIN_DFT_DTB0_SELMUX_CLK 

CLK selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_IBPP_READY 

IBPP_READY selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_REQUEST 

REQUEST_MBIAS selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_READY 

MBIAS_READY selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_SEL_VOLT_LP 

SEL_VOLT_LP selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_DRVHS 

DRVHS selected.

NRF_VREGMAIN_DFT_DTB0_SELMUX_MBIAS_SETTLED 

MBIAS_SETTLED selected.

◆ nrf_vregmain_dft_dtb1_selmux_t

Select multiplexer for DTB1.

Enumerator
NRF_VREGMAIN_DFT_DTB1_SELMUX_PWRUPCH1 

PWRUPCH1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_VOUTCMP1 

VOUTCMP1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PWMCMP1 

PWMCMP1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_DRVSEC1 

DRVSEC1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_ZCROSS 

ZCROSS selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PD_CCHR_EADY 

P_DCCH_READY selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_MODE_LP 

MODE_LP selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_HVBUCK_READY 

HVBUCK_READY selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_SETTLED_CH3 

SETTLED_CH3 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_ILIM2 

PWM_ILIM2 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_OC1 

PWM_OC1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_SKIP1 

PWM_SKIP1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_PWM_FAULT1 

PWM_FAULT1 selected.

NRF_VREGMAIN_DFT_DTB1_SELMUX_CHRG1 

CHRG1 selected.

◆ nrf_vregmain_dft_dtb2_selmux_t

Select multiplexer for DTB2.

Enumerator
NRF_VREGMAIN_DFT_DTB2_SELMUX_PWRUP_PWM 

PWRUP_PWM selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWRUPCH2 

PWRUPCH2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_VOUTCMP3 

VOUTCMP3 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWMCMP2 

PWMCMP2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_DRVSEC2 

DRVSEC2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_HSLIM 

HSLIM selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_DRVLS 

DRVLS selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_MODE_HP 

MODE_HP selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_HVBUCK_SETTLED 

HVBUCK_SETTLED selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_SETTLED_CH1 

SETTLED_CH1 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_LIM1_1V8 

PWM_LIM1_1V8 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_OC2 

PWM_OC2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_SKIP2 

PWM_SKIP2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_PWM_FAULT2 

PWM_FAULT2 selected.

NRF_VREGMAIN_DFT_DTB2_SELMUX_CHRG2 

CHRG2 selected.

◆ nrf_vregmain_dft_dtb3_selmux_t

Select multiplexer for DTB3.

Enumerator
NRF_VREGMAIN_DFT_DTB3_SELMUX_PWRUP_HYST 

PWRUP_HYST selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWRUPCH3 

PWRUPCH3 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_VOUTCMP2 

VOUTCMP2 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWMCMP3 

PWMCMP3 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_DRVSEC3 

DRVSEC3 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_SECREADY 

SECREADY selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_MODE_PWM 

MODE_PWM selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_SETTLED_CH2 

SETTLED_CH2 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_ILIM3_1V8 

PWM_ILIM3_1V8 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_OC3 

PWM_OC3 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_SKIP3 

PWM_SKIP3 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_PWM_FAULT2 

PWM_FAULT2 selected.

NRF_VREGMAIN_DFT_DTB3_SELMUX_CHRG3 

CHRG3 selected.

◆ nrf_vregmain_dft_tcfg_drvsec_t

Select DRVSEC mode for test mode configuration (DFT.TCFG).

Enumerator
NRF_VREGMAIN_DFT_TCFG_DRVSEC_NORMAL 

Normal mode, DRVSEC2 in reset.

NRF_VREGMAIN_DFT_TCFG_DRVSEC_1 

DRVSEC1 selected.

NRF_VREGMAIN_DFT_TCFG_DRVSEC_2 

DRVSEC2 selected.

NRF_VREGMAIN_DFT_TCFG_DRVSEC_OFF 

OFF.

◆ nrf_vregmain_dft_tcfg_hsforceon_t

Select HSFORCEON mode for test mode configuration (DFT.TCFG).

Enumerator
NRF_VREGMAIN_DFT_TCFG_HSFORCEON_NORMAL 

Normal mode.

NRF_VREGMAIN_DFT_TCFG_HSFORCEON_HSILIM 

HS force on HSILIM gating.

NRF_VREGMAIN_DFT_TCFG_HSFORCEON_GPI 

GPI.

NRF_VREGMAIN_DFT_TCFG_HSFORCEON_HS_FORCE_ON 

HS force on.

◆ nrf_vregmain_dft_tcfg_lsforceon_t

Select LSFORCEON mode for test mode configuration (DFT.TCFG).

Enumerator
NRF_VREGMAIN_DFT_TCFG_LSFORCEON_NORMAL 

Normal mode.

NRF_VREGMAIN_DFT_TCFG_LSFORCEON_LS_FORCE_OFF 

LS force off-zx gating.

NRF_VREGMAIN_DFT_TCFG_LSFORCEON_GPI 

GPI.

NRF_VREGMAIN_DFT_TCFG_LSFORCEON_LS_FORCE_ON 

LS force on.

◆ nrf_vregmain_event_t

VREGMAIN events.

Enumerator
NRF_VREGMAIN_EVENT_READY 

Power up done.

NRF_VREGMAIN_EVENT_SETTLED 

Settled flag for MODE handshake.

NRF_VREGMAIN_EVENT_SETTLED_CH1 

Settled flag for CH1 enable.

NRF_VREGMAIN_EVENT_SETTLED_CH2 

Settled flag for CH2 enable.

NRF_VREGMAIN_EVENT_SETTLED_CH3 

Settled flag for CH3 enable.

NRF_VREGMAIN_EVENT_IOUTCMP 

Analog current comparator.

NRF_VREGMAIN_EVENT_LP2HP 

Current consumption above threshold.

NRF_VREGMAIN_EVENT_HP2LP 

Current consumption below threshold.

◆ nrf_vregmain_fbctrl_vdd0v8_t

VDD_0V8 feedback configurations.

Enumerator
NRF_VREGMAIN_FBCTRL_VDD0V8_VDDVS_0V8 

VDD_VS_0V8 feedback.

NRF_VREGMAIN_FBCTRL_VDD0V8_SEC_0V8 

SEC_0V8 feedback.

NRF_VREGMAIN_FBCTRL_VDD0V8_VDDVS_SEC_0V8 

VDD_VS_0V8 and SEC_0V8 feedback.

◆ nrf_vregmain_fbctrl_vdd1v0_t

DD_1V0 feedback configurations.

Enumerator
NRF_VREGMAIN_FBCTRL_VDD1V0_VDD_1V0 

VDD_1V0 feedback.

NRF_VREGMAIN_FBCTRL_VDD1V0_SEC_1V0 

SEC_1V0 feedback.

NRF_VREGMAIN_FBCTRL_VDD1V0_VDD_SEC_1V0 

VDD_1V0 and SEC_1V0 feedback.

NRF_VREGMAIN_FBCTRL_VDD1V0_VDDAO_0V8_SEC_1V0 

VDD_AO_0V8 and SEC_1V0 feedback.

◆ nrf_vregmain_fbctrl_vdd1v8_t

DD_1V8 feedback configurations.

Enumerator
NRF_VREGMAIN_FBCTRL_VDD1V8_VDD_1V8 

VDD_1V8 feedback.

NRF_VREGMAIN_FBCTRL_VDD1V8_SEC_1V8 

SEC_1V8 feedback.

NRF_VREGMAIN_FBCTRL_VDD1V8_VDD_SEC_1V8 

VDD_1V8 and SEC_1V8 feedback.

◆ nrf_vregmain_hsilimprog_t

HS current limiter values.

Enumerator
NRF_VREGMAIN_HSILIMPROG_150MA 

Current limit to 150mA.

NRF_VREGMAIN_HSILIMPROG_250MA 

Current limit to 250mA.

NRF_VREGMAIN_HSILIMPROG_350MA 

Current limit to 350mA.

NRF_VREGMAIN_HSILIMPROG_450MA 

Current limit to 450mA (PWM mode only).

◆ nrf_vregmain_hyst_ctrl_t

Available amounts of hysteresis for HYSTCTRL field in CONFIG.CFGSTATIC register.

Enumerator
NRF_VREGMMAIN_HYST_CTRL_4MV 

4mV Hysteresis.

NRF_VREGMMAIN_HYST_CTRL_8MV 

8mV hysteresis.

◆ nrf_vregmain_hyst_run_ctrl_t

Available hysteresis feedback control sources for HYSTRUNCTRL field in CONFIG.CFGSTATIC register.

Enumerator
NRF_VREGMMAIN_HYST_RUN_CTRL_VOUT_CMP 

Hysteresis feedback from VOUTCMP.

NRF_VREGMMAIN_HYST_RUN_CTRL_MBIAS_CORE 

Hysteresis feedback on MBIAS_CORE pwrup.

◆ nrf_vregmain_int_mask_t

VREGMAIN interrupts.

Enumerator
NRF_VREGMAIN_INT_READY_MASK 

Interrupt on READY.

NRF_VREGMAIN_INT_SETTLED_MASK 

Interrupt on SETTLED.

NRF_VREGMAIN_INT_SETTLED_CH1_MASK 

Interrupt on SETTLEDCH1.

NRF_VREGMAIN_INT_SETTLED_CH2_MASK 

Interrupt on SETTLEDCH2.

NRF_VREGMAIN_INT_SETTLED_CH3_MASK 

Interrupt on SETTLEDCH3.

NRF_VREGMAIN_INT_IOUTCMP_MASK 

Interrupt on IOUTCMP.

NRF_VREGMAIN_INT_LP2HP_MASK 

Interrupt on LP2HP.

NRF_VREGMAIN_INT_HP2LP_MASK 

Interrupt on HP2LP.

◆ nrf_vregmain_ithreshold_t

Enum for selecting mode in which current threshold will be configured.

Enumerator
NRF_VREGMAIN_ITHRESHOLD_HP_LP 

Current threshold for HP/LP mode transistion.

NRF_VREGMAIN_ITHRESHOLD_PWM 

Current threshold for half clock speed in PWM mode.

NRF_VREGMAIN_ITHRESHOLD_0V8_LOW 

Current threshold LDO toggle at low 0V8 current consumption.

◆ nrf_vregmain_mode_t

Voltage regulator mode.

Enumerator
NRF_VREGMAIN_MODE_AUTO 

Automatically handled by the peripheral.

NRF_VREGMAIN_MODE_HIGH_POWER 

High power hysteretic mode.

NRF_VREGMAIN_MODE_LOW_POWER 

Autonomous hysteretic low power mode.

NRF_VREGMAIN_MODE_ULP_REFRESH 

Refresh based ultra-Low power mode.

NRF_VREGMAIN_MODE_PWM 

PWM mode is fixed frequency DCDC operation mode.

◆ nrf_vregmain_pwmprog_t

PWM program values.

Enumerator
NRF_VREGMAIN_PWMPROG_VAL0 

VDD_AO_1V8 = 1/3, VDD_1V0 = 1/3, VDD_VS_0V8 = 1/3.

NRF_VREGMAIN_PWMPROG_VAL1 

VDD_AO_1V8 = 2/4, VDD_1V0 = 1/4, VDD_VS_0V8 = 1/4.

NRF_VREGMAIN_PWMPROG_VAL2 

VDD_AO_1V8 = 1/4, VDD_1V0 = 2/4, VDD_VS_0V8 = 1/4.

NRF_VREGMAIN_PWMPROG_VAL3 

VDD_AO_1V8 = 1/4, VDD_1V0 = 1/4, VDD_VS_0V8 = 2/4.

◆ nrf_vregmain_pwrupctrl_t

PWRUPCTRL register modes.

Enumerator
NRF_VREGMAIN_PWRUPCTRL_AUTO 

Automatically handled by the peripheral.

NRF_VREGMAIN_PWRUPCTRL_POWER_UP 

Power up.

NRF_VREGMAIN_PWRUPCTRL_POWER_DOWN 

Power down.

◆ nrf_vregmain_signal_t

Signal to be overridden.

Enumerator
NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH1 

Override the CH1 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH2 

Override the CH2 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_CHRH_CH3 

Override the CH3 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH1 

Override the EN_CH1 signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH2 

Override the EN_CH2 signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_EN_CH3 

Override the EN_CH3 signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_ICMP 

Override the ICMP signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_MODE_LP 

Override the MODE_LP signal to the analog module

NRF_VREGMAIN_SIGNAL_ANALOG_MODE_PWM 

Override the MODE_PWM signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_MODE_ULP 

Override the MODE_ULP signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_PWRUP 

Override the PWRUP signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_READY 

Override the READY signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_RETAIN 

Override the RETAIN signal to the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH1 

Override the CH1 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH2 

Override the CH2 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_CH3 

Override the CH3 SETTLED signal from the analog module.

NRF_VREGMAIN_SIGNAL_ANALOG_SETTLED_MODE 

Override the SETTLED_MODE signal from the analog module.

NRF_VREGMAIN_SIGNAL_CFG_ALL_STATIC 

Route all CFG bits as static CFGs.

NRF_VREGMAIN_SIGNAL_SELMUX_VOLT1V0_HP_BANK 

Override the VOLT_HP_VDD1V0 bank select multiplexer.

NRF_VREGMAIN_SIGNAL_SELMUX_VOLT1V0_LP_BANK 

Override the VOLT_LP_VDD1V0 bank select multiplexer.

◆ nrf_vregmain_status_t

STATUS register states.

Enumerator
NRF_VREGMAIN_STATUS_HIGH_POWER 

High power hysteretic mode.

NRF_VREGMAIN_STATUS_LOW_POWER 

Autonomous hysteretic low power mode.

NRF_VREGMAIN_STATUS_ULP_REFRESH 

Refresh based ultra-Low power mode.

NRF_VREGMAIN_STATUS_PWM 

Refresh based ultra-Low power mode.

◆ nrf_vregmain_statusana_mask_t

STATUSANA register bit masks.

Enumerator
NRF_VREGMAIN_STATUSANA_READY_MASK 

Current value of READY signal.

NRF_VREGMAIN_STATUSANA_SETTLED_MODE_MASK 

Current value of SETTLED_CH1 signal.

NRF_VREGMAIN_STATUSANA_SETTLED_CH1_MASK 

Current value of CH1 SETTLED signal.

NRF_VREGMAIN_STATUSANA_SETTLED_CH2_MASK 

Current value of CH2 SETTLED signal.

NRF_VREGMAIN_STATUSANA_SETTLED_CH3_MASK 

Current value of CH3 SETTLED signal.

NRF_VREGMAIN_STATUSANA_CHRG_CH1_MASK 

Current value of CH1 CHRG signal.

NRF_VREGMAIN_STATUSANA_CHRG_CH2_MASK 

Current value of CH2 CHRG signal.

NRF_VREGMAIN_STATUSANA_CHRG_CH3_MASK 

Current value of CH3 CHRG signal.

NRF_VREGMAIN_STATUSANA_ICMP_MASK 

Current value of ICMP signal..

◆ nrf_vregmain_statusdig_mask_t

STATUSDIG register bit masks.

Enumerator
NRF_VREGMAIN_STATUSDIG_FSM_MASTER_MASK 

State of MMI master FSM.

NRF_VREGMAIN_STATUSDIG_FSM_1V8_MASK 

State of MMI 1V8 FSM.

NRF_VREGMAIN_STATUSDIG_FSM_0V8_MASK 

State of MMI 0V8 FSM.

◆ nrf_vregmain_trim_biasibpp_t

IBPP current trimming values.

Enumerator
NRF_VREGMAIN_TRIM_BIASIBPP_NORMAL 

Normal trim value.

NRF_VREGMAIN_TRIM_BIASIBPP_23 

The trim value is 23%.

NRF_VREGMAIN_TRIM_BIASIBPP_54 

The trim value is 54%.

NRF_VREGMAIN_TRIM_BIASIBPP_98 

The trim value is 98%.

NRF_VREGMAIN_TRIM_BIASIBPP_NEG_51 

The trim value is -51%.

NRF_VREGMAIN_TRIM_BIASIBPP_NEG_42 

The trim value is -42%.

NRF_VREGMAIN_TRIM_BIASIBPP_NEG_31 

The trim value is -31%.

NRF_VREGMAIN_TRIM_BIASIBPP_NEG_18 

The trim value is -18%.

◆ nrf_vregmain_trim_icmp_t

DCDC output current comparator trimming values.

Enumerator
NRF_VREGMAIN_TRIM_ICMP_0 

DCDC output current comparator trim 0%.

NRF_VREGMAIN_TRIM_ICMP_25 

DCDC output current comparator trim 25%.

NRF_VREGMAIN_TRIM_ICMP_NEG_50 

DCDC output current comparator trim -50%.

NRF_VREGMAIN_TRIM_ICMP_NEG_25 

DCDC output current comparator trim -25%.

◆ nrf_vregmain_vdd_1v0_output_t

Enum for selecting VDD_1V0 voltage output target.

Enumerator
NRF_VREGMAIN_VDD_1V0_OUTPUT_NORMAL 

VDD_1V0 output voltage.

NRF_VREGMAIN_VDD_1V0_OUTPUT_RADIO 

VDD_1V0 output voltage, radio upscaling.

NRF_VREGMAIN_VDD_1V0_OUTPUT_LP 

VDD_1V0 LP output voltage.

NRF_VREGMAIN_VDD_1V0_OUTPUT_LP_RADIO 

VDD_1V0 LP output voltage, radio upscaling.

NRF_VREGMAIN_VDD_1V0_OUTPUT_ULP 

VDD_1V0 ULP output voltage.

◆ nrf_vregmain_vdd_ao_1v8_output_t

Enum for selecting VDD_AO_1V8 voltage output target.

Enumerator
NRF_VREGMAIN_VDD_AO_1V8_OUTPUT_NORMAL 

VDD_AO_1V8 output voltage.

NRF_VREGMAIN_VDD_AO_1V8_OUTPUT_LP 

VDD_AO_1V8 Low Power output voltage.

Function Documentation

◆ nrf_vregmain_config_cfgch_set()

NRF_STATIC_INLINE void nrf_vregmain_config_cfgch_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_channel_t  channel,
nrf_vregmain_config_channel_t  config 
)

Function for setting specific channel voltage regulator configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]channelSelected channel to be configured.
[in]configStatic configuration.

◆ nrf_vregmain_config_cfgstatic_set()

NRF_STATIC_INLINE void nrf_vregmain_config_cfgstatic_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_config_static_t  config 
)

Function for setting static voltage regulator configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]configStatic configuration.

◆ nrf_vregmain_dft_atb0_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_atb0_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_atb0_selmux_t  selmux,
bool  enable 
)

Function for configuring Analog Test Bus 0 (ATB0).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_atb1_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_atb1_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_atb1_selmux_t  selmux,
bool  enable 
)

Function for configuring Analog Test Bus 1 (ATB1).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_cal_check()

NRF_STATIC_INLINE bool nrf_vregmain_dft_cal_check ( NRF_VREGMAIN_Type *  p_reg)

Function for checking calibration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
True if calibration is enabled, false otherwise.

◆ nrf_vregmain_dft_cal_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_cal_set ( NRF_VREGMAIN_Type *  p_reg,
bool  enable 
)

Function for enabling or disabling calibration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue if the calibration is to be enabled, false otherwise.

◆ nrf_vregmain_dft_calcmp_check()

NRF_STATIC_INLINE uint32_t nrf_vregmain_dft_calcmp_check ( NRF_VREGMAIN_Type const *  p_reg)

Function for checking calibration compare.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Calibration compare.

◆ nrf_vregmain_dft_dtb0_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_dtb0_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_dtb0_selmux_t  selmux,
bool  enable 
)

Function for configuring Digital Test Bus 0 (DTB0).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_dtb1_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_dtb1_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_dtb1_selmux_t  selmux,
bool  enable 
)

Function for configuring Digital Test Bus 1 (DTB1).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_dtb2_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_dtb2_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_dtb2_selmux_t  selmux,
bool  enable 
)

Function for configuring Digital Test Bus 2 (DTB2).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_dtb3_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_dtb3_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_dft_dtb3_selmux_t  selmux,
bool  enable 
)

Function for configuring Digital Test Bus 3 (DTB3).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]selmuxMultiplexer configuration.
[in]enableTrue to enable test bus.

◆ nrf_vregmain_dft_tcfg_config_set()

NRF_STATIC_INLINE void nrf_vregmain_dft_tcfg_config_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_tcfg_t  tcfg 
)

Function for configuring test mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]tcfgTest mode configuration.

◆ nrf_vregmain_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_vregmain_event_address_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_event_t  event 
)

Function for getting the address of the specified event register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventThe specified event.
Returns
Address of the specified event register.

◆ nrf_vregmain_event_check()

NRF_STATIC_INLINE bool nrf_vregmain_event_check ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_event_t  event 
)

Function for retrieving the state of the VREGMAIN event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_vregmain_event_clear()

NRF_STATIC_INLINE void nrf_vregmain_event_clear ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_event_t  event 
)

Function for clearing the specified VREGMAIN event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be cleared.

◆ nrf_vregmain_fbctrl_get()

NRF_STATIC_INLINE void nrf_vregmain_fbctrl_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_fbctrl_t p_data 
)

Function for regulator feedback point control configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_dataPointer to the structure to be filled with information about regulator feedback point control configuration.

◆ nrf_vregmain_fbctrl_set()

NRF_STATIC_INLINE void nrf_vregmain_fbctrl_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_fbctrl_t const *  p_data 
)

Function for setting regulator feedback point control configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_dataPointer to the structure filled with information about regulator feedback point control configuration.

◆ nrf_vregmain_hsilimprog_get()

NRF_STATIC_INLINE nrf_vregmain_hsilimprog_t nrf_vregmain_hsilimprog_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting HS current limiter program.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
HS current limiter value.

◆ nrf_vregmain_hsilimprog_set()

NRF_STATIC_INLINE void nrf_vregmain_hsilimprog_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_hsilimprog_t  val 
)

Function for setting HS current limiter program.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valHS current limiter value.

◆ nrf_vregmain_int_disable()

NRF_STATIC_INLINE void nrf_vregmain_int_disable ( NRF_VREGMAIN_Type *  p_reg,
uint32_t  mask 
)

Function for disabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_vregmain_int_mask_t values for bit masking.

◆ nrf_vregmain_int_enable()

NRF_STATIC_INLINE void nrf_vregmain_int_enable ( NRF_VREGMAIN_Type *  p_reg,
uint32_t  mask 
)

Function for enabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_vregmain_int_mask_t values for bit masking.

◆ nrf_vregmain_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_vregmain_int_enable_check ( NRF_VREGMAIN_Type const *  p_reg,
uint32_t  mask 
)

Function for checking if the specified interrupts are enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked. Use nrf_vregmain_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_vregmain_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_vregmain_int_pending_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bitmask with information about pending interrupts. Use nrf_vregmain_int_mask_t values for bit masking.

◆ nrf_vregmain_ithreshold_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_ithreshold_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_ithreshold_t  mode 
)

Function for getting current threshold for HP/LP mode transistion.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeMode in which current threshold will be checked.
Returns
Current consumption threshold value.

◆ nrf_vregmain_ithreshold_set()

NRF_STATIC_INLINE void nrf_vregmain_ithreshold_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_ithreshold_t  mode,
uint8_t  thr 
)

Function for setting current threshold for HP/LP mode transistion.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeMode in which current threshold will be set.
[in]thrCompare value to match PCRM format.

◆ nrf_vregmain_mirror_lock()

NRF_STATIC_INLINE void nrf_vregmain_mirror_lock ( NRF_VREGMAIN_Type *  p_reg,
bool  lock 
)

Function for locking mirrored registers.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]lockWhen true lock is enabled. When false lock is disabled and mirrored registers can be updated at any time.

◆ nrf_vregmain_mode_get()

NRF_STATIC_INLINE void nrf_vregmain_mode_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_mode_config_t p_data 
)

Function for getting voltage regulator mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_dataPointer to the structure to be filled with information about voltage regulator mode.

◆ nrf_vregmain_mode_set()

NRF_STATIC_INLINE void nrf_vregmain_mode_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_mode_config_t const *  p_data 
)

Function for setting voltage regulator mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_dataPointer to the structure filled with information about voltage regulator mode.

◆ nrf_vregmain_override()

NRF_STATIC_INLINE void nrf_vregmain_override ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_signal_t  signal,
bool  enable,
uint8_t  val 
)

Function for override signal.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]signalSignal to be overridden.
[in]enableTrue to enable override and false to disable.
[in]valOverride value.

◆ nrf_vregmain_pwmprog_get()

NRF_STATIC_INLINE nrf_vregmain_pwmprog_t nrf_vregmain_pwmprog_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting PWM program.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
PWM program value.

◆ nrf_vregmain_pwmprog_set()

NRF_STATIC_INLINE void nrf_vregmain_pwmprog_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_pwmprog_t  val 
)

Function for setting PWM program.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valPWM program value.

◆ nrf_vregmain_pwrupctrl_get()

NRF_STATIC_INLINE nrf_vregmain_pwrupctrl_t nrf_vregmain_pwrupctrl_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VREGMAIN power up control register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Power control mode.

◆ nrf_vregmain_pwrupctrl_set()

NRF_STATIC_INLINE void nrf_vregmain_pwrupctrl_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_pwrupctrl_t  mode 
)

Function for VREGMAIN power up control register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modePower control mode.

◆ nrf_vregmain_status_get()

NRF_STATIC_INLINE nrf_vregmain_status_t nrf_vregmain_status_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VREGMAIN status register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The STATUS register value.

◆ nrf_vregmain_statusana_get()

NRF_STATIC_INLINE uint32_t nrf_vregmain_statusana_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VREGMAIN status of the analog module output signals.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The STATUSANA register value. Use nrf_vregmain_statusana_mask_t values for bit masking.

◆ nrf_vregmain_statusdig_get()

NRF_STATIC_INLINE uint32_t nrf_vregmain_statusdig_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting STATUSDIG status of digital controllers.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The STATUSDIG register value. Use nrf_vregmain_statusdig_mask_t values for bit masking.

◆ nrf_vregmain_trim_biasibpp_get()

NRF_STATIC_INLINE nrf_vregmain_trim_biasibpp_t nrf_vregmain_trim_biasibpp_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting IBPP current bias trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bias trimming value.

◆ nrf_vregmain_trim_biasibpp_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_biasibpp_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_trim_biasibpp_t  val 
)

Function for setting IBPP current bias trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valBias trimming value.

◆ nrf_vregmain_trim_biasibpsr_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_biasibpsr_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting IBPSR current and VREF voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bias trimming value. The value is 2's complement value from -7.4% to 8.0% in steps of 0.5%.

◆ nrf_vregmain_trim_biasibpsr_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_biasibpsr_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting IBPSR current and VREF voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valBias trimming value. The value is 2's complement value from -7.4% to 8.0% in steps of 0.5%.

◆ nrf_vregmain_trim_hsilim_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_hsilim_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting HS current limiter trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0 +/- 8 percent point steps.

◆ nrf_vregmain_trim_hsilim_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_hsilim_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting HS current limiter trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0 +/- 8 percent point steps.

◆ nrf_vregmain_trim_icmp_get()

NRF_STATIC_INLINE nrf_vregmain_trim_icmp_t nrf_vregmain_trim_icmp_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting DCDC output current comparator trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value.

◆ nrf_vregmain_trim_icmp_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_icmp_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_trim_icmp_t  val 
)

Function for setting DCDC output current comparator trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value.

◆ nrf_vregmain_trim_vdd1v0hystoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vdd1v0hystoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_1V0 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vdd1v0hystoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vdd1v0hystoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_1V0 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vdd1v0pwmoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vdd1v0pwmoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_1V0 PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vdd1v0pwmoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vdd1v0pwmoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_1V0 PWM PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vddao1v8hystoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddao1v8hystoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_AO_1V8 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 8mV steps.

◆ nrf_vregmain_trim_vddao1v8hystoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vddao1v8hystoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_AO_1V8 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 8mV steps.

◆ nrf_vregmain_trim_vddao1v8pwmoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddao1v8pwmoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_AO_1V8 PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 8mV steps.

◆ nrf_vregmain_trim_vddao1v8pwmoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vddao1v8pwmoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_AO_1V8 PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 8mV steps.

◆ nrf_vregmain_trim_vddvs0v8hystoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddvs0v8hystoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_VS_0V8 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vddvs0v8hystoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vddvs0v8hystoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_VS_0V8 hysteretic (HYST) output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vddvs0v8pwmoutput_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vddvs0v8pwmoutput_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_VS_0V8 PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vddvs0v8pwmoutput_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vddvs0v8pwmoutput_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_VS_0V8 PWM output voltage trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mV -/+ 4mV steps.

◆ nrf_vregmain_trim_vgnd_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vgnd_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VGND trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of +1% +/- 2 percent point steps.

◆ nrf_vregmain_trim_vgnd_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_vgnd_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VGND trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of +1% +/- 2 percent point steps.

◆ nrf_vregmain_trim_zcross_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_zcross_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting zero cross detector current trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value. The value is 2's complement value of 0mA +/- 3mA steps.

◆ nrf_vregmain_trim_zcross_set()

NRF_STATIC_INLINE void nrf_vregmain_trim_zcross_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting zero cross detector current trimming.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is 2's complement value of 0mA +/- 3mA steps.

◆ nrf_vregmain_vdd_1v0_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_1v0_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_vdd_1v0_output_t  vout 
)

Function for getting VDD_AO_1V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]voutOutput voltage target.
Returns
Output voltage value. The value is 0.57V + 10mV steps.

◆ nrf_vregmain_vdd_1v0_out_set()

NRF_STATIC_INLINE void nrf_vregmain_vdd_1v0_out_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_vdd_1v0_output_t  vout,
uint8_t  val 
)

Function for setting VDD_AO_1V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]voutOutput voltage target.
[in]valOutput voltage value. The value is 0.57V + 10mV steps.

◆ nrf_vregmain_vdd_ao_1v8_out_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_ao_1v8_out_get ( NRF_VREGMAIN_Type const *  p_reg,
nrf_vregmain_vdd_ao_1v8_output_t  vout 
)

Function for getting VDD_AO_1V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]voutOutput voltage target.
Returns
Output voltage value. The value is 1.72V + 0.02V steps.

◆ nrf_vregmain_vdd_ao_1v8_out_set()

NRF_STATIC_INLINE void nrf_vregmain_vdd_ao_1v8_out_set ( NRF_VREGMAIN_Type *  p_reg,
nrf_vregmain_vdd_ao_1v8_output_t  vout,
uint8_t  val 
)

Function for setting VDD_AO_1V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]voutOutput voltage target.
[in]valOutput voltage value. The value is 1.72V + 0.02V steps.

◆ nrf_vregmain_vdd_vs_0v8_get()

NRF_STATIC_INLINE uint8_t nrf_vregmain_vdd_vs_0v8_get ( NRF_VREGMAIN_Type const *  p_reg)

Function for getting VDD_VS_0V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Output voltage value. The value is 0.32V + 10mV steps.

◆ nrf_vregmain_vdd_vs_0v8_out_set()

NRF_STATIC_INLINE void nrf_vregmain_vdd_vs_0v8_out_set ( NRF_VREGMAIN_Type *  p_reg,
uint8_t  val 
)

Function for setting VDD_VS_0V8 output voltage.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valOutput voltage value. The value is 0.32V + 10mV steps.

Documentation feedback | Developer Zone | Subscribe | Updated