nrfx 3.3
Data Structures | Enumerations | Functions
MBIAS HAL

Hardware access layer for managing the Master Bias Generator (MBIAS). More...

Data Structures

struct  nrf_mbias_tcfg_t
 Test mode configuration. More...
 

Enumerations

enum  nrf_mbias_task_t {
  NRF_MBIAS_TASK_PWR_UP_IBPP = offsetof(NRF_MBIAS_Type, TASKS_PWRUPIBPP) ,
  NRF_MBIAS_TASK_PWR_UP_IBPSR = offsetof(NRF_MBIAS_Type, TASKS_PWRUPIBPSR) ,
  NRF_MBIAS_TASK_PWR_DOWN_IBPP = offsetof(NRF_MBIAS_Type, TASKS_PWRDOWNIBPP) ,
  NRF_MBIAS_TASK_PWR_DOWN_IBPSR = offsetof(NRF_MBIAS_Type, TASKS_PWRDOWNIBPSR)
}
 MBIAS tasks. More...
 
enum  nrf_mbias_event_t {
  NRF_MBIAS_EVENT_READY_IBPP = offsetof(NRF_MBIAS_Type, EVENTS_READYIBPP) ,
  NRF_MBIAS_EVENT_READY_IBPSR = offsetof(NRF_MBIAS_Type, EVENTS_READYIBPSR)
}
 MBIAS events. More...
 
enum  nrf_mbias_int_mask_t {
  NRF_MBIAS_INT_READY_IBPP_MASK = MBIAS_INTEN_READYIBPP_Msk ,
  NRF_MBIAS_INT_READY_IBPSR_MASK = MBIAS_INTEN_READYIBPSR_Msk
}
 MBIAS interrupts. More...
 
enum  nrf_mbias_status_t {
  NRF_MBIAS_STATUS_NORMAL = MBIAS_STATUS_MODE_Normal ,
  NRF_MBIAS_STATUS_REFRESH = MBIAS_STATUS_MODE_Refresh
}
 STATUS register states. More...
 
enum  nrf_mbias_statusana_mask_t {
  NRF_MBIAS_STATUSANA_READY_IBPP_MASK = MBIAS_STATUSANA_READYIBPP_Msk ,
  NRF_MBIAS_STATUSANA_READY_IBPSR_MASK = MBIAS_STATUSANA_READYIBPSR_Msk ,
  NRF_MBIAS_STATUSANA_SETTLED_IBPSR_MASK = MBIAS_STATUSANA_SETTLEDIBPSR_Msk
}
 STATUSANA register bit masks. More...
 
enum  nrf_mbias_mode_t {
  NRF_MBIAS_MODE_AUTO = MBIAS_MODE_MODE_Auto ,
  NRF_MBIAS_MODE_NORMAL = MBIAS_MODE_MODE_Normal ,
  NRF_MBIAS_MODE_REFRESH = MBIAS_MODE_MODE_Refresh
}
 MBIAS modes. More...
 
enum  nrf_mbias_analog_signal_t {
  NRF_MBIAS_ANALOG_SIGNAL_PWRUP_IBPP ,
  NRF_MBIAS_ANALOG_SIGNAL_PWRUP_IBPSR ,
  NRF_MBIAS_ANALOG_SIGNAL_RETAIN ,
  NRF_MBIAS_ANALOG_SIGNAL_MODE ,
  NRF_MBIAS_ANALOG_SIGNAL_READY_IBPP ,
  NRF_MBIAS_ANALOG_SIGNAL_READY_IBPSR ,
  NRF_MBIAS_ANALOG_SIGNAL_SETTLED_IBPSR
}
 Analog signal to be overridden. More...
 
enum  nrf_mbias_dft_atb0_selmux_t {
  NRF_MBIAS_DFT_ATB0_SELMUX_NONE = MBIAS_DFT_ATB0CONFIG_SELMUX_None ,
  NRF_MBIAS_DFT_ATB0_SELMUX_AVSS = MBIAS_DFT_ATB0CONFIG_SELMUX_ConnectAVSS ,
  NRF_MBIAS_DFT_ATB0_SELMUX_IBPSR_8UA = MBIAS_DFT_ATB0CONFIG_SELMUX_Connect8uAIBPSRcurrent ,
  NRF_MBIAS_DFT_ATB0_SELMUX_IBPP_50NA = MBIAS_DFT_ATB0CONFIG_SELMUX_Connect50nAIBPPcurrent
}
 Select multiplexer for ATB0. More...
 
enum  nrf_mbias_dft_atb1_selmux_t {
  NRF_MBIAS_DFT_ATB1_SELMUX_VREF_0V9_RFR = MBIAS_DFT_ATB1CONFIG_SELMUX_ConnectbufVREF0V9RFR ,
  NRF_MBIAS_DFT_ATB1_SELMUX_VREF_0V9 = MBIAS_DFT_ATB1CONFIG_SELMUX_ConnectbufVREF0V9
}
 Select multiplexer for ATB1. More...
 
enum  nrf_mbias_dft_dtb0_selmux_t {
  NRF_MBIAS_DFT_DTB0_SELMUX_READY_IBPP = MBIAS_DFT_DTB0CONFIG_SELMUX_READYIBPP ,
  NRF_MBIAS_DFT_DTB0_SELMUX_READY_IBPSR = MBIAS_DFT_DTB0CONFIG_SELMUX_READYIBPSR ,
  NRF_MBIAS_DFT_DTB0_SELMUX_SETTLED_IBPSR_DIGITAL = MBIAS_DFT_DTB0CONFIG_SELMUX_SETTLEDIBPSRDIG ,
  NRF_MBIAS_DFT_DTB0_SELMUX_SETTLED_IBPSR_ANALOG = MBIAS_DFT_DTB0CONFIG_SELMUX_SETTLEDIBPSRANA
}
 Select multiplexer for DTB0. More...
 
enum  nrf_mbias_dft_dtb1_selmux_t {
  NRF_MBIAS_DFT_DTB1_SELMUX_OSC_RFR_ANALOG = MBIAS_DFT_DTB1CONFIG_SELMUX_OSCRFRANA ,
  NRF_MBIAS_DFT_DTB1_SELMUX_SETTLED_IBPSR = MBIAS_DFT_DTB1CONFIG_SELMUX_SETTLEDIBPSR
}
 Select multiplexer for DTB1. More...
 
enum  nrf_mbias_dft_dtb3_selmux_t {
  NRF_MBIAS_DFT_DTB3_SELMUX_PWRUP_IBPP = MBIAS_DFT_DTB3CONFIG_SELMUX_PWRUPIBPP ,
  NRF_MBIAS_DFT_DTB3_SELMUX_PWRUP_IBPSR = MBIAS_DFT_DTB3CONFIG_SELMUX_PWRUPIBPSR
}
 Select multiplexer for DTB3. More...
 
enum  nrf_mbias_trim_ibpp_vref_t {
  NRF_MBIAS_TRIM_IBPP_NORMAL = MBIAS_TRIM_MBIASIBPP_VAL_Normal ,
  NRF_MBIAS_TRIM_IBPP_23 = MBIAS_TRIM_MBIASIBPP_VAL_Val23 ,
  NRF_MBIAS_TRIM_IBPP_54 = MBIAS_TRIM_MBIASIBPP_VAL_Val54 ,
  NRF_MBIAS_TRIM_IBPP_98 = MBIAS_TRIM_MBIASIBPP_VAL_Val98 ,
  NRF_MBIAS_TRIM_IBPP_NEG_51 = MBIAS_TRIM_MBIASIBPP_VAL_ValNeg51 ,
  NRF_MBIAS_TRIM_IBPP_NEG_42 = MBIAS_TRIM_MBIASIBPP_VAL_ValNeg42 ,
  NRF_MBIAS_TRIM_IBPP_NEG_31 = MBIAS_TRIM_MBIASIBPP_VAL_ValNeg31 ,
  NRF_MBIAS_TRIM_IBPP_NEG_18 = MBIAS_TRIM_MBIASIBPP_VAL_ValNeg18
}
 Values for IBPP current trimming. More...
 

Functions

NRF_STATIC_INLINE void nrf_mbias_task_trigger (NRF_MBIAS_Type *p_reg, nrf_mbias_task_t task)
 Function for activating the specified MBIAS task.
 
NRF_STATIC_INLINE uint32_t nrf_mbias_task_address_get (NRF_MBIAS_Type const *p_reg, nrf_mbias_task_t task)
 Function for getting the address of the specified MBIAS task register.
 
NRF_STATIC_INLINE void nrf_mbias_event_clear (NRF_MBIAS_Type *p_reg, nrf_mbias_event_t event)
 Function for clearing the specified MBIAS event.
 
NRF_STATIC_INLINE bool nrf_mbias_event_check (NRF_MBIAS_Type const *p_reg, nrf_mbias_event_t event)
 Function for retrieving the state of the MBIAS event.
 
NRF_STATIC_INLINE uint32_t nrf_mbias_event_address_get (NRF_MBIAS_Type const *p_reg, nrf_mbias_event_t event)
 Function for getting the address of the specified MBIAS event register.
 
NRF_STATIC_INLINE void nrf_mbias_int_enable (NRF_MBIAS_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts.
 
NRF_STATIC_INLINE void nrf_mbias_int_disable (NRF_MBIAS_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_mbias_int_enable_check (NRF_MBIAS_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_mbias_int_pending_get (NRF_MBIAS_Type const *p_reg)
 Function for retrieving the state of pending interrupts.
 
NRF_STATIC_INLINE nrf_mbias_status_t nrf_mbias_status_get (NRF_MBIAS_Type const *p_reg)
 Function for getting MBIAS status register.
 
NRF_STATIC_INLINE uint32_t nrf_mbias_statusana_get (NRF_MBIAS_Type const *p_reg)
 Function for getting MBIAS status of the analog module output signals.
 
NRF_STATIC_INLINE void nrf_mbias_acq_time_config_set (NRF_MBIAS_Type *p_reg, bool enable)
 Function for enabling doubling the acquisition time in refresh mode.
 
NRF_STATIC_INLINE bool nrf_mbias_acq_time_config_get (NRF_MBIAS_Type const *p_reg)
 Function for getting the configuration of the acquisition time in refresh mode.
 
NRF_STATIC_INLINE void nrf_mbias_trim_ibpp_set (NRF_MBIAS_Type *p_reg, nrf_mbias_trim_ibpp_vref_t val)
 Function for setting IBPP current trimming value.
 
NRF_STATIC_INLINE nrf_mbias_trim_ibpp_vref_t nrf_mbias_trim_ibpp_get (NRF_MBIAS_Type const *p_reg)
 Function for getting IBPP current trimming value.
 
NRF_STATIC_INLINE void nrf_mbias_trim_ibpsr_vref_set (NRF_MBIAS_Type *p_reg, uint8_t val)
 Function for setting IBPSR current and VREF voltage trimming value.
 
NRF_STATIC_INLINE uint8_t nrf_mbias_trim_ibpsr_vref_get (NRF_MBIAS_Type const *p_reg)
 Function for getting IBPSR current and VREF voltage trimming value.
 
NRF_STATIC_INLINE void nrf_mbias_mirror_lock_set (NRF_MBIAS_Type *p_reg, bool lock)
 Function for locking mirrored registers.
 
NRF_STATIC_INLINE void nrf_mbias_mode_set (NRF_MBIAS_Type *p_reg, nrf_mbias_mode_t mode)
 Function for setting voltage detector mode.
 
NRF_STATIC_INLINE nrf_mbias_mode_t nrf_mbias_mode_get (NRF_MBIAS_Type const *p_reg)
 Function for getting voltage detector mode.
 
NRF_STATIC_INLINE void nrf_mbias_override_set (NRF_MBIAS_Type *p_reg, nrf_mbias_analog_signal_t signal, bool enable, uint8_t val)
 Function for overriding signal to the analog module.
 
NRF_STATIC_INLINE void nrf_mbias_dft_atb0_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_dft_atb0_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 0 (ATB0).
 
NRF_STATIC_INLINE void nrf_mbias_dft_atb1_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_dft_atb1_selmux_t selmux, bool enable)
 Function for configuring Analog Test Bus 1 (ATB1).
 
NRF_STATIC_INLINE void nrf_mbias_dft_dtb0_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_dft_dtb0_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 0 (DTB0).
 
NRF_STATIC_INLINE void nrf_mbias_dft_dtb1_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_dft_dtb1_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 1 (DTB1).
 
NRF_STATIC_INLINE void nrf_mbias_dft_dtb3_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_dft_dtb3_selmux_t selmux, bool enable)
 Function for configuring Digital Test Bus 3 (DTB3).
 
NRF_STATIC_INLINE void nrf_mbias_dft_tcfg_config_set (NRF_MBIAS_Type *p_reg, nrf_mbias_tcfg_t tcfg)
 Function for configuring test mode.
 

Detailed Description

Hardware access layer for managing the Master Bias Generator (MBIAS).

Enumeration Type Documentation

◆ nrf_mbias_analog_signal_t

Analog signal to be overridden.

Enumerator
NRF_MBIAS_ANALOG_SIGNAL_PWRUP_IBPP 

Override PWRUP_IBPP signal.

NRF_MBIAS_ANALOG_SIGNAL_PWRUP_IBPSR 

Override PWRUP_IBPSR signal.

NRF_MBIAS_ANALOG_SIGNAL_RETAIN 

Override RETAIN signal.

NRF_MBIAS_ANALOG_SIGNAL_MODE 

Override MODE signal.

NRF_MBIAS_ANALOG_SIGNAL_READY_IBPP 

Override READY_IBPP signal.

NRF_MBIAS_ANALOG_SIGNAL_READY_IBPSR 

Override READY_IBPSR signal.

NRF_MBIAS_ANALOG_SIGNAL_SETTLED_IBPSR 

Override SETTLED_IBPSR signal.

◆ nrf_mbias_dft_atb0_selmux_t

Select multiplexer for ATB0.

Enumerator
NRF_MBIAS_DFT_ATB0_SELMUX_NONE 

No mulitplexer is selected.

NRF_MBIAS_DFT_ATB0_SELMUX_AVSS 

Connect AVSS.

NRF_MBIAS_DFT_ATB0_SELMUX_IBPSR_8UA 

Connect 8uA IBPSR current.

NRF_MBIAS_DFT_ATB0_SELMUX_IBPP_50NA 

Connect 50nA IBPP current.

◆ nrf_mbias_dft_atb1_selmux_t

Select multiplexer for ATB1.

Enumerator
NRF_MBIAS_DFT_ATB1_SELMUX_VREF_0V9_RFR 

Connect buffered VREF_0V9_RFR.

NRF_MBIAS_DFT_ATB1_SELMUX_VREF_0V9 

Connect buffered VREF_0V9.

◆ nrf_mbias_dft_dtb0_selmux_t

Select multiplexer for DTB0.

Enumerator
NRF_MBIAS_DFT_DTB0_SELMUX_READY_IBPP 

READY_IBPP is selected.

NRF_MBIAS_DFT_DTB0_SELMUX_READY_IBPSR 

READY_IBPSR is selected.

NRF_MBIAS_DFT_DTB0_SELMUX_SETTLED_IBPSR_DIGITAL 

SETTLED_IBPSR_DIGITAL is selected.

NRF_MBIAS_DFT_DTB0_SELMUX_SETTLED_IBPSR_ANALOG 

SETTLED_IBPSR_ANALOG is selected.

◆ nrf_mbias_dft_dtb1_selmux_t

Select multiplexer for DTB1.

Enumerator
NRF_MBIAS_DFT_DTB1_SELMUX_OSC_RFR_ANALOG 

OSC_RFR_ANALOG is selected.

NRF_MBIAS_DFT_DTB1_SELMUX_SETTLED_IBPSR 

SETTLED_IBPSR is selected.

◆ nrf_mbias_dft_dtb3_selmux_t

Select multiplexer for DTB3.

Enumerator
NRF_MBIAS_DFT_DTB3_SELMUX_PWRUP_IBPP 

PWRUP_IBPP is selected.

NRF_MBIAS_DFT_DTB3_SELMUX_PWRUP_IBPSR 

PWRUP_IBPSR is selected.

◆ nrf_mbias_event_t

MBIAS events.

Enumerator
NRF_MBIAS_EVENT_READY_IBPP 

Power up for IBPP currents is done.

NRF_MBIAS_EVENT_READY_IBPSR 

Power up for IBPSR currents is done.

◆ nrf_mbias_int_mask_t

MBIAS interrupts.

Enumerator
NRF_MBIAS_INT_READY_IBPP_MASK 

Interrupt on READY_IBPP event.

NRF_MBIAS_INT_READY_IBPSR_MASK 

Interrupt on READY_IBPSR event.

◆ nrf_mbias_mode_t

MBIAS modes.

Enumerator
NRF_MBIAS_MODE_AUTO 

Automatically handled by the peripheral.

NRF_MBIAS_MODE_NORMAL 

Normal mode - IBPSR currents are continuously ON.

NRF_MBIAS_MODE_REFRESH 

Refresh mode - IBPSR currents are duty-cycled.

◆ nrf_mbias_status_t

STATUS register states.

Enumerator
NRF_MBIAS_STATUS_NORMAL 

Normal mode.

NRF_MBIAS_STATUS_REFRESH 

Refresh mode.

◆ nrf_mbias_statusana_mask_t

STATUSANA register bit masks.

Enumerator
NRF_MBIAS_STATUSANA_READY_IBPP_MASK 

Current value of the READY_IBPP signal from the analog module.

NRF_MBIAS_STATUSANA_READY_IBPSR_MASK 

Current value of the READY_IBPSR signal from the analog module.

NRF_MBIAS_STATUSANA_SETTLED_IBPSR_MASK 

Current value of the SETTLED_IBPSR signal from the analog module.

◆ nrf_mbias_task_t

MBIAS tasks.

Enumerator
NRF_MBIAS_TASK_PWR_UP_IBPP 

Power up IBPP currents.

NRF_MBIAS_TASK_PWR_UP_IBPSR 

Power up IBPSR currents.

NRF_MBIAS_TASK_PWR_DOWN_IBPP 

Power down IBPP currents.

NRF_MBIAS_TASK_PWR_DOWN_IBPSR 

Power down IBPSR currents.

◆ nrf_mbias_trim_ibpp_vref_t

Values for IBPP current trimming.

Enumerator
NRF_MBIAS_TRIM_IBPP_NORMAL 

Normal trim value.

NRF_MBIAS_TRIM_IBPP_23 

The trim value is 23%.

NRF_MBIAS_TRIM_IBPP_54 

The trim value is 54%.

NRF_MBIAS_TRIM_IBPP_98 

The trim value is 98%.

NRF_MBIAS_TRIM_IBPP_NEG_51 

The trim value is -51%.

NRF_MBIAS_TRIM_IBPP_NEG_42 

The trim value is -42%.

NRF_MBIAS_TRIM_IBPP_NEG_31 

The trim value is -31%.

NRF_MBIAS_TRIM_IBPP_NEG_18 

The trim value is -18%.

Function Documentation

◆ nrf_mbias_acq_time_config_get()

NRF_STATIC_INLINE bool nrf_mbias_acq_time_config_get ( NRF_MBIAS_Type const *  p_reg)

Function for getting the configuration of the acquisition time in refresh mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueThe doubling of the acquisition time is enabled.
falseThe doubling of the acquisition time is disabled.

◆ nrf_mbias_acq_time_config_set()

NRF_STATIC_INLINE void nrf_mbias_acq_time_config_set ( NRF_MBIAS_Type *  p_reg,
bool  enable 
)

Function for enabling doubling the acquisition time in refresh mode.

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

◆ nrf_mbias_dft_atb0_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_atb0_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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_mbias_dft_atb1_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_atb1_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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_mbias_dft_dtb0_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_dtb0_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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_mbias_dft_dtb1_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_dtb1_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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_mbias_dft_dtb3_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_dtb3_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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 PWRUP delay test circuit.

◆ nrf_mbias_dft_tcfg_config_set()

NRF_STATIC_INLINE void nrf_mbias_dft_tcfg_config_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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_mbias_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_mbias_event_address_get ( NRF_MBIAS_Type const *  p_reg,
nrf_mbias_event_t  event 
)

Function for getting the address of the specified MBIAS 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_mbias_event_check()

NRF_STATIC_INLINE bool nrf_mbias_event_check ( NRF_MBIAS_Type const *  p_reg,
nrf_mbias_event_t  event 
)

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

NRF_STATIC_INLINE void nrf_mbias_event_clear ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_event_t  event 
)

Function for clearing the specified MBIAS event.

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

◆ nrf_mbias_int_disable()

NRF_STATIC_INLINE void nrf_mbias_int_disable ( NRF_MBIAS_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_mbias_int_mask_t values for bit masking.

◆ nrf_mbias_int_enable()

NRF_STATIC_INLINE void nrf_mbias_int_enable ( NRF_MBIAS_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_mbias_int_mask_t values for bit masking.

◆ nrf_mbias_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_mbias_int_enable_check ( NRF_MBIAS_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_mbias_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_mbias_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_mbias_int_pending_get ( NRF_MBIAS_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_mbias_int_mask_t values for bit masking.

◆ nrf_mbias_mirror_lock_set()

NRF_STATIC_INLINE void nrf_mbias_mirror_lock_set ( NRF_MBIAS_Type *  p_reg,
bool  lock 
)

Function for locking mirrored registers.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]lockTrue if lock is enabled. False if lock is disabled, so mirrored registers can be updated at any time.

◆ nrf_mbias_mode_get()

NRF_STATIC_INLINE nrf_mbias_mode_t nrf_mbias_mode_get ( NRF_MBIAS_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_mbias_mode_set()

NRF_STATIC_INLINE void nrf_mbias_mode_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_mode_t  mode 
)

Function for setting voltage detector mode.

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

◆ nrf_mbias_override_set()

NRF_STATIC_INLINE void nrf_mbias_override_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_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, false to disable.
[in]valOverriden value.

◆ nrf_mbias_status_get()

NRF_STATIC_INLINE nrf_mbias_status_t nrf_mbias_status_get ( NRF_MBIAS_Type const *  p_reg)

Function for getting MBIAS status register.

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

◆ nrf_mbias_statusana_get()

NRF_STATIC_INLINE uint32_t nrf_mbias_statusana_get ( NRF_MBIAS_Type const *  p_reg)

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

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

◆ nrf_mbias_task_address_get()

NRF_STATIC_INLINE uint32_t nrf_mbias_task_address_get ( NRF_MBIAS_Type const *  p_reg,
nrf_mbias_task_t  task 
)

Function for getting the address of the specified MBIAS 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_mbias_task_trigger()

NRF_STATIC_INLINE void nrf_mbias_task_trigger ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_task_t  task 
)

Function for activating the specified MBIAS task.

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

◆ nrf_mbias_trim_ibpp_get()

NRF_STATIC_INLINE nrf_mbias_trim_ibpp_vref_t nrf_mbias_trim_ibpp_get ( NRF_MBIAS_Type const *  p_reg)

Function for getting IBPP current trimming value.

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

◆ nrf_mbias_trim_ibpp_set()

NRF_STATIC_INLINE void nrf_mbias_trim_ibpp_set ( NRF_MBIAS_Type *  p_reg,
nrf_mbias_trim_ibpp_vref_t  val 
)

Function for setting IBPP current trimming value.

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

◆ nrf_mbias_trim_ibpsr_vref_get()

NRF_STATIC_INLINE uint8_t nrf_mbias_trim_ibpsr_vref_get ( NRF_MBIAS_Type const *  p_reg)

Function for getting IBPSR current and VREF voltage trimming value.

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

◆ nrf_mbias_trim_ibpsr_vref_set()

NRF_STATIC_INLINE void nrf_mbias_trim_ibpsr_vref_set ( NRF_MBIAS_Type *  p_reg,
uint8_t  val 
)

Function for setting IBPSR current and VREF voltage trimming value.

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

Documentation feedback | Developer Zone | Subscribe | Updated