nrfx 3.3
Data Structures | Enumerations | Functions
Always-on 1.8V Voltage Detector HAL

Hardware access layer for managing the Always-on 1.8V Voltage Detector (VDETAO1V8). More...

Data Structures

struct  nrf_vdetao1v8_tcfg_t
 Test mode configuration. More...
 

Enumerations

enum  nrf_vdetao1v8_task_t {
  NRF_VDETAO1V8_TASK_PWR_UP = offsetof(NRF_VDETAO1V8_Type, TASKS_PWRUP) ,
  NRF_VDETAO1V8_TASK_PWR_DOWN = offsetof(NRF_VDETAO1V8_Type, TASKS_PWRDOWN)
}
 VDETAO1V8 tasks. More...
 
enum  nrf_vdetao1v8_event_t {
  NRF_VDETAO1V8_EVENT_READY = offsetof(NRF_VDETAO1V8_Type, EVENTS_READY) ,
  NRF_VDETAO1V8_EVENT_SETTLED = offsetof(NRF_VDETAO1V8_Type, EVENTS_SETTLED) ,
  NRF_VDETAO1V8_EVENT_BROWNOUT_HIGH = offsetof(NRF_VDETAO1V8_Type, EVENTS_BROWNOUTHIGH)
}
 VDETAO1V8 events. More...
 
enum  nrf_vdetao1v8_int_mask_t {
  NRF_VDETAO1V8_INT_READY_MASK = VDETAO1V8_INTEN_READY_Msk ,
  NRF_VDETAO1V8_INT_SETTLED_MASK = VDETAO1V8_INTEN_SETTLED_Msk ,
  NRF_VDETAO1V8_INT_BROWNOUT_HIGH_MASK = VDETAO1V8_INTEN_BROWNOUTHIGH_Msk
}
 VDETAO1V8 interrupts. More...
 
enum  nrf_vdetao1v8_status_t {
  NRF_VDETAO1V8_STATUS_HIGH_POWER = VDETAO1V8_STATUS_MODE_HighPower ,
  NRF_VDETAO1V8_STATUS_LOW_POWER = VDETAO1V8_STATUS_MODE_LowPower ,
  NRF_VDETAO1V8_STATUS_ULP_REFRESH = VDETAO1V8_STATUS_MODE_UltraLowPowerRefresh
}
 STATUS register states. More...
 
enum  nrf_vdetao1v8_statusana_mask_t {
  NRF_VDETAO1V8_STATUSANA_READY_MASK = VDETAO1V8_STATUSANA_READY_Msk ,
  NRF_VDETAO1V8_STATUSANA_SETTLED_MASK = VDETAO1V8_STATUSANA_SETTLED_Msk ,
  NRF_VDETAO1V8_STATUSANA_BODH_MASK = VDETAO1V8_STATUSANA_BODH_Msk
}
 STATUSANA register bit masks. More...
 
enum  nrf_vdetao1v8_brownout_high_hyst_t {
  NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_20_MV = VDETAO1V8_CONFIG_CFG_BROWNOUTHIGHHYST_Val0V020 ,
  NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_40_MV = VDETAO1V8_CONFIG_CFG_BROWNOUTHIGHHYST_Val0V040 ,
  NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_0_MV = VDETAO1V8_CONFIG_CFG_BROWNOUTHIGHHYST_Val0V000 ,
  NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_10_MV = VDETAO1V8_CONFIG_CFG_BROWNOUTHIGHHYST_Val0V010
}
 Brown out detector high level hysteresis voltage value. More...
 
enum  nrf_vdetao1v8_mode_t {
  NRF_VDETAO1V8_MODE_AUTO = VDETAO1V8_MODE_MODE_Auto ,
  NRF_VDETAO1V8_MODE_HIGH_POWER = VDETAO1V8_MODE_MODE_HighPower ,
  NRF_VDETAO1V8_MODE_LOW_POWER = VDETAO1V8_MODE_MODE_LowPower ,
  NRF_VDETAO1V8_MODE_ULP_REFRESH = VDETAO1V8_MODE_MODE_UltraLowPowerRefresh
}
 Voltage detector mode. More...
 
enum  nrf_vdetao1v8_analog_signal_t {
  NRF_VDETAO1V8_ANALOG_SIGNAL_PWRUP ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_RETAIN ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_MODE_LP ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_MODE_ULPR ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_BODL_EN ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_READY ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_SETTLED ,
  NRF_VDETAO1V8_ANALOG_SIGNAL_BODH
}
 Analog signal to be overridden. More...
 
enum  nrf_vdetao1v8_dft_atb0_selmux_t {
  NRF_VDETAO1V8_DFT_ATB0_SELMUX_IDBF_1UA = VDETAO1V8_DFT_ATB0CONFIG_SELMUX_IDBG1u ,
  NRF_VDETAO1V8_DFT_ATB0_SELMUX_VSS = VDETAO1V8_DFT_ATB0CONFIG_SELMUX_VSS ,
  NRF_VDETAO1V8_DFT_ATB0_SELMUX_SPARE = VDETAO1V8_DFT_ATB0CONFIG_SELMUX_Spare ,
  NRF_VDETAO1V8_DFT_ATB0_SELMUX_CONNECT_SENSE_VOLTAGE = VDETAO1V8_DFT_ATB0CONFIG_SELMUX_ConnectSenseVoltage
}
 Select multiplexer for ATB0. More...
 
enum  nrf_vdetao1v8_dft_atb1_selmux_t {
  NRF_VDETAO1V8_DFT_ATB1_SELMUX_HIZ = VDETAO1V8_DFT_ATB1CONFIG_SELMUX_HiZ ,
  NRF_VDETAO1V8_DFT_ATB1_SELMUX_MONITOR_SENSE_VOLTAGE = VDETAO1V8_DFT_ATB1CONFIG_SELMUX_MonitorSenseVoltage ,
  NRF_VDETAO1V8_DFT_ATB1_SELMUX_VREFH = VDETAO1V8_DFT_ATB1CONFIG_SELMUX_VREFH ,
  NRF_VDETAO1V8_DFT_ATB1_SELMUX_VREFL = VDETAO1V8_DFT_ATB1CONFIG_SELMUX_VREFL
}
 Select multiplexer for ATB1. More...
 
enum  nrf_vdetao1v8_dft_dtb0_selmux_t {
  NRF_VDETAO1V8_DFT_DTB0_SELMUX_MODE_LP = VDETAO1V8_DFT_DTB0CONFIG_SELMUX_ModeLP ,
  NRF_VDETAO1V8_DFT_DTB0_SELMUX_MODE_ULPR = VDETAO1V8_DFT_DTB0CONFIG_SELMUX_ModeULPR ,
  NRF_VDETAO1V8_DFT_DTB0_SELMUX_BODL_COMP_OUTPUT = VDETAO1V8_DFT_DTB0CONFIG_SELMUX_BODLCompOutput ,
  NRF_VDETAO1V8_DFT_DTB0_SELMUX_READY = VDETAO1V8_DFT_DTB0CONFIG_SELMUX_Ready
}
 Select multiplexer for DTB0. More...
 
enum  nrf_vdetao1v8_dft_dtb1_selmux_t {
  NRF_VDETAO1V8_DFT_DTB1_SELMUX_SPARE0 = VDETAO1V8_DFT_DTB1CONFIG_SELMUX_Spare0 ,
  NRF_VDETAO1V8_DFT_DTB1_SELMUX_SPARE1 = VDETAO1V8_DFT_DTB1CONFIG_SELMUX_Spare1 ,
  NRF_VDETAO1V8_DFT_DTB1_SELMUX_BODH_COMP_OUTPUT = VDETAO1V8_DFT_DTB1CONFIG_SELMUX_BODHCompOutput ,
  NRF_VDETAO1V8_DFT_DTB1_SELMUX_SETTLED = VDETAO1V8_DFT_DTB1CONFIG_SELMUX_Settled
}
 Select multiplexer for DTB1. More...
 

Functions

NRF_STATIC_INLINE void nrf_vdetao1v8_task_trigger (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_task_t task)
 Function for activating the specified task.
 
NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_task_address_get (NRF_VDETAO1V8_Type const *p_reg, nrf_vdetao1v8_task_t task)
 Function for getting the address of the specified task register.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_event_clear (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_event_t event)
 Function for clearing the specified VDETAO1V8 event.
 
NRF_STATIC_INLINE bool nrf_vdetao1v8_event_check (NRF_VDETAO1V8_Type const *p_reg, nrf_vdetao1v8_event_t event)
 Function for retrieving the state of the VDETAO1V8 event.
 
NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_event_address_get (NRF_VDETAO1V8_Type const *p_reg, nrf_vdetao1v8_event_t event)
 Function for getting the address of the specified event register.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_int_enable (NRF_VDETAO1V8_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_int_disable (NRF_VDETAO1V8_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_int_enable_check (NRF_VDETAO1V8_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_int_pending_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for retrieving the state of pending interrupts.
 
NRF_STATIC_INLINE nrf_vdetao1v8_status_t nrf_vdetao1v8_status_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting VDETAO1V8 status register.
 
NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_statusana_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting VDETAO1V8 status of the analog module output signals.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_config_cfg_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_brownout_high_hyst_t hyst)
 Function for setting voltage detector configuration.
 
NRF_STATIC_INLINE nrf_vdetao1v8_brownout_high_hyst_t nrf_vdetao1v8_config_cfg_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting voltage detector configuration.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_config_brownout_set (NRF_VDETAO1V8_Type *p_reg, bool enable)
 Function for enabling Brownout detector low level.
 
NRF_STATIC_INLINE bool nrf_vdetao1v8_config_brownout_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting Brownout detector low level state.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_trim_brownout_level_high_set (NRF_VDETAO1V8_Type *p_reg, uint8_t val)
 Function for setting Brownout detector high threshold voltage level.
 
NRF_STATIC_INLINE uint8_t nrf_vdetao1v8_trim_brownout_level_high_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting Brownout detector high threshold voltage level.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_trim_brownout_level_low_set (NRF_VDETAO1V8_Type *p_reg, uint8_t val)
 Function for setting Brownout detector low threshold voltage level.
 
NRF_STATIC_INLINE uint8_t nrf_vdetao1v8_trim_brownout_level_low_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting Brownout detector low threshold voltage level.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_mirror_lock_set (NRF_VDETAO1V8_Type *p_reg, bool lock)
 Function for locking mirrored registers.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_mode_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_mode_t mode)
 Function for setting voltage detector mode.
 
NRF_STATIC_INLINE nrf_vdetao1v8_mode_t nrf_vdetao1v8_mode_get (NRF_VDETAO1V8_Type const *p_reg)
 Function for getting voltage detector mode.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_override_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_analog_signal_t signal, bool enable, uint8_t val)
 Function for overriding signal to the analog module.
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_atb0_config_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_dft_atb0_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 0 (ATB0).
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_atb1_config_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_dft_atb1_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 1 (ATB1).
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb0_config_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_dft_dtb0_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 0 (DTB0).
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb1_config_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_dft_dtb1_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 1 (DTB1).
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb3_config_set (NRF_VDETAO1V8_Type *p_reg, bool enable)
 Function for configuring Digital Test Bus 3 (DTB3).
 
NRF_STATIC_INLINE void nrf_vdetao1v8_dft_tcfg_config_set (NRF_VDETAO1V8_Type *p_reg, nrf_vdetao1v8_tcfg_t tcfg)
 Function for configuring test mode.
 

Detailed Description

Hardware access layer for managing the Always-on 1.8V Voltage Detector (VDETAO1V8).

Enumeration Type Documentation

◆ nrf_vdetao1v8_analog_signal_t

Analog signal to be overridden.

Enumerator
NRF_VDETAO1V8_ANALOG_SIGNAL_PWRUP 

Override PWRUP signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_RETAIN 

Override RETAIN signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_MODE_LP 

Override MODE LP signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_MODE_ULPR 

Override MODE ULPR signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_BODL_EN 

Override BODL_EN signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_READY 

Override READY signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_SETTLED 

Override SETTLED signal.

NRF_VDETAO1V8_ANALOG_SIGNAL_BODH 

Override BODH signal.

◆ nrf_vdetao1v8_brownout_high_hyst_t

Brown out detector high level hysteresis voltage value.

Enumerator
NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_20_MV 

Hysteresis voltage is 20mV.

NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_40_MV 

Hysteresis voltage is 40mV.

NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_0_MV 

Hysteresis voltage is 0mV.

NRF_VDETAO1V8_BROWNOUT_HIGH_HYST_10_MV 

Hysteresis voltage is 10mV.

◆ nrf_vdetao1v8_dft_atb0_selmux_t

Select multiplexer for ATB0.

Enumerator
NRF_VDETAO1V8_DFT_ATB0_SELMUX_IDBF_1UA 

BOD CMP IDBG 1u current.

NRF_VDETAO1V8_DFT_ATB0_SELMUX_VSS 

Connect Vss.

NRF_VDETAO1V8_DFT_ATB0_SELMUX_SPARE 

Spare.

NRF_VDETAO1V8_DFT_ATB0_SELMUX_CONNECT_SENSE_VOLTAGE 

Connect internal sense voltage for BOD comparators.

◆ nrf_vdetao1v8_dft_atb1_selmux_t

Select multiplexer for ATB1.

Enumerator
NRF_VDETAO1V8_DFT_ATB1_SELMUX_HIZ 

HiZ.

NRF_VDETAO1V8_DFT_ATB1_SELMUX_MONITOR_SENSE_VOLTAGE 

Monitor internal sense voltage for BOD comparators.

NRF_VDETAO1V8_DFT_ATB1_SELMUX_VREFH 

Connect VREFH.

NRF_VDETAO1V8_DFT_ATB1_SELMUX_VREFL 

Connect VREFL.

◆ nrf_vdetao1v8_dft_dtb0_selmux_t

Select multiplexer for DTB0.

Enumerator
NRF_VDETAO1V8_DFT_DTB0_SELMUX_MODE_LP 

MODE LP is selected.

NRF_VDETAO1V8_DFT_DTB0_SELMUX_MODE_ULPR 

MODE ULPR is selected.

NRF_VDETAO1V8_DFT_DTB0_SELMUX_BODL_COMP_OUTPUT 

BODL comparator output is selected.

NRF_VDETAO1V8_DFT_DTB0_SELMUX_READY 

READY is selected.

◆ nrf_vdetao1v8_dft_dtb1_selmux_t

Select multiplexer for DTB1.

Enumerator
NRF_VDETAO1V8_DFT_DTB1_SELMUX_SPARE0 

Spare.

NRF_VDETAO1V8_DFT_DTB1_SELMUX_SPARE1 

Spare.

NRF_VDETAO1V8_DFT_DTB1_SELMUX_BODH_COMP_OUTPUT 

BODH comparator output is selected.

NRF_VDETAO1V8_DFT_DTB1_SELMUX_SETTLED 

SETTLED is selected.

◆ nrf_vdetao1v8_event_t

VDETAO1V8 events.

Enumerator
NRF_VDETAO1V8_EVENT_READY 

Power up done.

NRF_VDETAO1V8_EVENT_SETTLED 

Settled flag for MODE handshake.

NRF_VDETAO1V8_EVENT_BROWNOUT_HIGH 

Brownout detector high level detected.

◆ nrf_vdetao1v8_int_mask_t

VDETAO1V8 interrupts.

Enumerator
NRF_VDETAO1V8_INT_READY_MASK 

Interrupt on READY.

NRF_VDETAO1V8_INT_SETTLED_MASK 

Interrupt on SETTLED.

NRF_VDETAO1V8_INT_BROWNOUT_HIGH_MASK 

Interrupt on BPREADY.

◆ nrf_vdetao1v8_mode_t

Voltage detector mode.

Enumerator
NRF_VDETAO1V8_MODE_AUTO 

Automatically handled by the peripheral.

NRF_VDETAO1V8_MODE_HIGH_POWER 

High power mode.

NRF_VDETAO1V8_MODE_LOW_POWER 

Low power mode.

NRF_VDETAO1V8_MODE_ULP_REFRESH 

Ultra-low power refresh mode.

◆ nrf_vdetao1v8_status_t

STATUS register states.

Enumerator
NRF_VDETAO1V8_STATUS_HIGH_POWER 

High power mode.

NRF_VDETAO1V8_STATUS_LOW_POWER 

Low power mode.

NRF_VDETAO1V8_STATUS_ULP_REFRESH 

ULP refresh mode.

◆ nrf_vdetao1v8_statusana_mask_t

STATUSANA register bit masks.

Enumerator
NRF_VDETAO1V8_STATUSANA_READY_MASK 

Current value of READY signal.

NRF_VDETAO1V8_STATUSANA_SETTLED_MASK 

Current value of SETTLED signal.

NRF_VDETAO1V8_STATUSANA_BODH_MASK 

Current value of BODH signal.

◆ nrf_vdetao1v8_task_t

VDETAO1V8 tasks.

Enumerator
NRF_VDETAO1V8_TASK_PWR_UP 

Power up voltage detector.

NRF_VDETAO1V8_TASK_PWR_DOWN 

Power down voltage detector.

Function Documentation

◆ nrf_vdetao1v8_config_brownout_get()

NRF_STATIC_INLINE bool nrf_vdetao1v8_config_brownout_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting Brownout detector low level state.

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

◆ nrf_vdetao1v8_config_brownout_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_config_brownout_set ( NRF_VDETAO1V8_Type *  p_reg,
bool  enable 
)

Function for enabling Brownout detector low level.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableSet to true to enable the detector and false to disable.

◆ nrf_vdetao1v8_config_cfg_get()

NRF_STATIC_INLINE nrf_vdetao1v8_brownout_high_hyst_t nrf_vdetao1v8_config_cfg_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting voltage detector configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Brown out detector hysteresis voltage value.

◆ nrf_vdetao1v8_config_cfg_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_config_cfg_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_brownout_high_hyst_t  hyst 
)

Function for setting voltage detector configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]hystBrown out detector hysteresis voltage value.

◆ nrf_vdetao1v8_dft_atb0_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_atb0_config_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_dft_atb1_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_atb1_config_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_dft_dtb0_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb0_config_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_dft_dtb1_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb1_config_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_dft_dtb3_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_dtb3_config_set ( NRF_VDETAO1V8_Type *  p_reg,
bool  enable 
)

Function for configuring Digital Test Bus 3 (DTB3).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue to enable PWRUP delay test circuit.

◆ nrf_vdetao1v8_dft_tcfg_config_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_dft_tcfg_config_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_event_address_get ( NRF_VDETAO1V8_Type const *  p_reg,
nrf_vdetao1v8_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_vdetao1v8_event_check()

NRF_STATIC_INLINE bool nrf_vdetao1v8_event_check ( NRF_VDETAO1V8_Type const *  p_reg,
nrf_vdetao1v8_event_t  event 
)

Function for retrieving the state of the VDETAO1V8 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_vdetao1v8_event_clear()

NRF_STATIC_INLINE void nrf_vdetao1v8_event_clear ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_event_t  event 
)

Function for clearing the specified VDETAO1V8 event.

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

◆ nrf_vdetao1v8_int_disable()

NRF_STATIC_INLINE void nrf_vdetao1v8_int_disable ( NRF_VDETAO1V8_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_vdetao1v8_int_mask_t values for bit masking.

◆ nrf_vdetao1v8_int_enable()

NRF_STATIC_INLINE void nrf_vdetao1v8_int_enable ( NRF_VDETAO1V8_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_vdetao1v8_int_mask_t values for bit masking.

◆ nrf_vdetao1v8_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_int_enable_check ( NRF_VDETAO1V8_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_vdetao1v8_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_vdetao1v8_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_int_pending_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

Note
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_vdetao1v8_int_mask_t values for bit masking.

◆ nrf_vdetao1v8_mirror_lock_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_mirror_lock_set ( NRF_VDETAO1V8_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_vdetao1v8_mode_get()

NRF_STATIC_INLINE nrf_vdetao1v8_mode_t nrf_vdetao1v8_mode_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting voltage detector mode.

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

◆ nrf_vdetao1v8_mode_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_mode_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_mode_t  mode 
)

Function for setting voltage detector mode.

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

◆ nrf_vdetao1v8_override_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_override_set ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_analog_signal_t  signal,
bool  enable,
uint8_t  val 
)

Function for overriding signal to the analog module.

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_vdetao1v8_status_get()

NRF_STATIC_INLINE nrf_vdetao1v8_status_t nrf_vdetao1v8_status_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting VDETAO1V8 status register.

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

◆ nrf_vdetao1v8_statusana_get()

NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_statusana_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting VDETAO1V8 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_vdetao1v8_statusana_mask_t values for bit masking.

◆ nrf_vdetao1v8_task_address_get()

NRF_STATIC_INLINE uint32_t nrf_vdetao1v8_task_address_get ( NRF_VDETAO1V8_Type const *  p_reg,
nrf_vdetao1v8_task_t  task 
)

Function for getting the address of the specified task register.

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

◆ nrf_vdetao1v8_task_trigger()

NRF_STATIC_INLINE void nrf_vdetao1v8_task_trigger ( NRF_VDETAO1V8_Type *  p_reg,
nrf_vdetao1v8_task_t  task 
)

Function for activating the specified task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask to be activated.

◆ nrf_vdetao1v8_trim_brownout_level_high_get()

NRF_STATIC_INLINE uint8_t nrf_vdetao1v8_trim_brownout_level_high_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting Brownout detector high threshold voltage level.

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

◆ nrf_vdetao1v8_trim_brownout_level_high_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_trim_brownout_level_high_set ( NRF_VDETAO1V8_Type *  p_reg,
uint8_t  val 
)

Function for setting Brownout detector high threshold voltage level.

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

◆ nrf_vdetao1v8_trim_brownout_level_low_get()

NRF_STATIC_INLINE uint8_t nrf_vdetao1v8_trim_brownout_level_low_get ( NRF_VDETAO1V8_Type const *  p_reg)

Function for getting Brownout detector low threshold voltage level.

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

◆ nrf_vdetao1v8_trim_brownout_level_low_set()

NRF_STATIC_INLINE void nrf_vdetao1v8_trim_brownout_level_low_set ( NRF_VDETAO1V8_Type *  p_reg,
uint8_t  val 
)

Function for setting Brownout detector low threshold voltage level.

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

Documentation feedback | Developer Zone | Subscribe | Updated