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. | |
Hardware access layer for managing the Main Voltage Regulator (VREGMAIN).
Select multiplexer for ATB0.
Select multiplexer for ATB1.
Select multiplexer for DTB0.
Select multiplexer for DTB1.
Select multiplexer for DTB2.
Select multiplexer for DTB3.
enum nrf_vregmain_event_t |
VREGMAIN events.
VREGMAIN interrupts.
Enum for selecting mode in which current threshold will be configured.
enum nrf_vregmain_mode_t |
Voltage regulator mode.
PWM program values.
Signal to be overridden.
STATUSANA register bit masks.
IBPP current trimming values.
DCDC output current comparator trimming values.
Enum for selecting VDD_1V0 voltage output target.
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | channel | Selected channel to be configured. |
[in] | config | Static configuration. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | config | Static configuration. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
NRF_STATIC_INLINE bool nrf_vregmain_dft_cal_check | ( | NRF_VREGMAIN_Type * | p_reg | ) |
Function for checking calibration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vregmain_dft_cal_set | ( | NRF_VREGMAIN_Type * | p_reg, |
bool | enable | ||
) |
Function for enabling or disabling calibration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if the calibration is to be enabled, false otherwise. |
NRF_STATIC_INLINE uint32_t nrf_vregmain_dft_calcmp_check | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for checking calibration compare.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable test bus. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | tcfg | Test mode configuration. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified 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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about regulator feedback point control configuration. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about regulator feedback point control configuration. |
NRF_STATIC_INLINE nrf_vregmain_hsilimprog_t nrf_vregmain_hsilimprog_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting HS current limiter program.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | HS current limiter value. |
NRF_STATIC_INLINE void nrf_vregmain_int_disable | ( | NRF_VREGMAIN_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_vregmain_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_vregmain_int_enable | ( | NRF_VREGMAIN_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_vregmain_int_mask_t values for bit masking. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_vregmain_int_mask_t values for bit masking. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Mode in which current threshold will be checked. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Mode in which current threshold will be set. |
[in] | thr | Compare value to match PCRM format. |
NRF_STATIC_INLINE void nrf_vregmain_mirror_lock | ( | NRF_VREGMAIN_Type * | p_reg, |
bool | lock | ||
) |
Function for locking mirrored registers.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | lock | When true lock is enabled. When false lock is disabled and mirrored registers can be updated at any time. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_data | Pointer to the structure to be filled with information about voltage regulator mode. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_data | Pointer to the structure filled with information about voltage regulator mode. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | signal | Signal to be overridden. |
[in] | enable | True to enable override and false to disable. |
[in] | val | Override value. |
NRF_STATIC_INLINE nrf_vregmain_pwmprog_t nrf_vregmain_pwmprog_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting PWM program.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vregmain_pwmprog_set | ( | NRF_VREGMAIN_Type * | p_reg, |
nrf_vregmain_pwmprog_t | val | ||
) |
Function for setting PWM program.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | PWM program value. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Power control mode. |
NRF_STATIC_INLINE nrf_vregmain_status_t nrf_vregmain_status_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting VREGMAIN status register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint32_t nrf_vregmain_statusdig_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting STATUSDIG status of digital controllers.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Bias trimming value. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Bias trimming value. The value is 2's complement value from -7.4% to 8.0% in steps of 0.5%. |
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_hsilim_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting HS current limiter trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vregmain_trim_hsilim_set | ( | NRF_VREGMAIN_Type * | p_reg, |
uint8_t | val | ||
) |
Function for setting HS current limiter trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0 +/- 8 percent point steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 8mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 8mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mV -/+ 4mV steps. |
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_vgnd_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting VGND trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vregmain_trim_vgnd_set | ( | NRF_VREGMAIN_Type * | p_reg, |
uint8_t | val | ||
) |
Function for setting VGND trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of +1% +/- 2 percent point steps. |
NRF_STATIC_INLINE uint8_t nrf_vregmain_trim_zcross_get | ( | NRF_VREGMAIN_Type const * | p_reg | ) |
Function for getting zero cross detector current trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Trimming value. The value is 2's complement value of 0mA +/- 3mA steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vout | Output voltage target. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vout | Output voltage target. |
[in] | val | Output voltage value. The value is 0.57V + 10mV steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vout | Output voltage target. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vout | Output voltage target. |
[in] | val | Output voltage value. The value is 1.72V + 0.02V steps. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Output voltage value. The value is 0.32V + 10mV steps. |