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. | |
Hardware access layer for managing the Master Bias Generator (MBIAS).
Analog signal to be overridden.
Select multiplexer for DTB0.
enum nrf_mbias_event_t |
enum nrf_mbias_int_mask_t |
enum nrf_mbias_mode_t |
enum nrf_mbias_status_t |
STATUSANA register bit masks.
enum nrf_mbias_task_t |
Values for IBPP current trimming.
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | The doubling of the acquisition time is enabled. |
false | The doubling of the acquisition time is disabled. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if the doubling of the acquisition time is to be enabled, false otherwise. |
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).
[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_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).
[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_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).
[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_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).
[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_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).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selmux | Multiplexer configuration. |
[in] | enable | True to enable PWRUP delay test circuit. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | tcfg | Test mode configuration. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified 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.
[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_mbias_event_clear | ( | NRF_MBIAS_Type * | p_reg, |
nrf_mbias_event_t | event | ||
) |
Function for clearing the specified MBIAS event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_mbias_int_disable | ( | NRF_MBIAS_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_mbias_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_mbias_int_enable | ( | NRF_MBIAS_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_mbias_int_mask_t values for bit masking. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_mbias_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_mbias_int_pending_get | ( | NRF_MBIAS_Type const * | p_reg | ) |
Function for retrieving the state of pending interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mbias_mirror_lock_set | ( | NRF_MBIAS_Type * | p_reg, |
bool | lock | ||
) |
Function for locking mirrored registers.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | lock | True if lock is enabled. False if lock is disabled, so mirrored registers can be updated at any time. |
NRF_STATIC_INLINE nrf_mbias_mode_t nrf_mbias_mode_get | ( | NRF_MBIAS_Type const * | p_reg | ) |
Function for getting voltage detector mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_mbias_mode_set | ( | NRF_MBIAS_Type * | p_reg, |
nrf_mbias_mode_t | mode | ||
) |
Function for setting voltage detector mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | 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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | signal | Signal to be overridden. |
[in] | enable | True to enable override, false to disable. |
[in] | val | Overriden value. |
NRF_STATIC_INLINE nrf_mbias_status_t nrf_mbias_status_get | ( | NRF_MBIAS_Type const * | p_reg | ) |
Function for getting MBIAS status register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | The specified task. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | IBPP current 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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | 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%. |