Hardware access layer for managing the Always-on 5.0V Voltage Detector (VDETAO5V0). More...
Data Structures | |
struct | nrf_vdetao5v0_tcfg_t |
Test mode configuration. More... | |
Enumerations | |
enum | nrf_vdetao5v0_task_t { NRF_VDETAO5V0_TASK_PWR_UP = offsetof(NRF_VDETAO5V0_Type, TASKS_PWRUP) , NRF_VDETAO5V0_TASK_PWR_DOWN = offsetof(NRF_VDETAO5V0_Type, TASKS_PWRDOWN) } |
VDETAO5V0 tasks. More... | |
enum | nrf_vdetao5v0_event_t { NRF_VDETAO5V0_EVENT_READY = offsetof(NRF_VDETAO5V0_Type, EVENTS_READY) , NRF_VDETAO5V0_EVENT_SETTLED = offsetof(NRF_VDETAO5V0_Type, EVENTS_SETTLED) } |
VDETAO5V0 events. More... | |
enum | nrf_vdetao5v0_int_mask_t { NRF_VDETAO5V0_INT_READY_MASK = VDETAO5V0_INTEN_READY_Msk , NRF_VDETAO5V0_INT_SETTLED_MASK = VDETAO5V0_INTEN_SETTLED_Msk } |
VDETAO5V0 interrupts. More... | |
enum | nrf_vdetao5v0_status_t { NRF_VDETAO5V0_STATUS_HIGH_POWER = VDETAO5V0_STATUS_MODE_HighPower , NRF_VDETAO5V0_STATUS_LOW_POWER = VDETAO5V0_STATUS_MODE_LowPower , NRF_VDETAO5V0_STATUS_ULP_REFRESH = VDETAO5V0_STATUS_MODE_UltraLowPowerRefresh } |
STATUS register states. More... | |
enum | nrf_vdetao5v0_statusana_mask_t { NRF_VDETAO5V0_STATUSANA_READY_MASK = VDETAO5V0_STATUSANA_READY_Msk , NRF_VDETAO5V0_STATUSANA_SETTLED_MASK = VDETAO5V0_STATUSANA_SETTLED_Msk , NRF_VDETAO5V0_STATUSANA_PGD_MASK = VDETAO5V0_STATUSANA_PGD_Msk } |
STATUSANA register bit masks. More... | |
enum | nrf_vdetao5v0_pwr_good_hyst_t { NRF_VDETAO5V0_PWR_GOOD_HYST_50_MV = VDETAO5V0_CONFIG_CFG_PWRGOODHYST_Val0V050 , NRF_VDETAO5V0_PWR_GOOD_HYST_25_MV = VDETAO5V0_CONFIG_CFG_PWRGOODHYST_Val0V025 , NRF_VDETAO5V0_PWR_GOOD_HYST_150_MV = VDETAO5V0_CONFIG_CFG_PWRGOODHYST_Val0V150 , NRF_VDETAO5V0_PWR_GOOD_HYST_100_MV = VDETAO5V0_CONFIG_CFG_PWRGOODHYST_Val0V100 } |
Power good detector hysteresis voltage value. More... | |
enum | nrf_vdetao5v0_config_thr_t { NRF_VDETAO5V0_CONFIG_THR_PWR_GOOD_LVL , NRF_VDETAO5V0_CONFIG_THR_BROWNOUT_HP , NRF_VDETAO5V0_CONFIG_THR_BROWNOUT_LP , NRF_VDETAO5V0_CONFIG_THR_BROWNOUT_ULV } |
Threshold configuration type. | |
enum | nrf_vdetao5v0_mode_t { NRF_VDETAO5V0_MODE_AUTO = VDETAO5V0_MODE_MODE_Auto , NRF_VDETAO5V0_MODE_HIGH_POWER = VDETAO5V0_MODE_MODE_HighPower , NRF_VDETAO5V0_MODE_LOW_POWER = VDETAO5V0_MODE_MODE_LowPower , NRF_VDETAO5V0_MODE_ULP_REFRESH = VDETAO5V0_MODE_MODE_UltraLowPowerRefresh } |
Voltage detector mode. More... | |
enum | nrf_vdetao5v0_analog_signal_t { NRF_VDETAO5V0_ANALOG_SIGNAL_PWRUP , NRF_VDETAO5V0_ANALOG_SIGNAL_RETAIN , NRF_VDETAO5V0_ANALOG_SIGNAL_MODE_ULPR , NRF_VDETAO5V0_ANALOG_SIGNAL_MODE_LP , NRF_VDETAO5V0_ANALOG_SIGNAL_READY , NRF_VDETAO5V0_ANALOG_SIGNAL_SETTLED , NRF_VDETAO5V0_ANALOG_SIGNAL_PGD } |
Analog signal to be overridden. More... | |
enum | nrf_vdetao5v0_dft_atb0_selmux_t { NRF_VDETAO5V0_DFT_ATB0_SELMUX_NONE = VDETAO5V0_DFT_ATB0CONFIG_SELMUX_None , NRF_VDETAO5V0_DFT_ATB0_SELMUX_CONNECT_IDBG_1U = VDETAO5V0_DFT_ATB0CONFIG_SELMUX_ConnectIDBG1U , NRF_VDETAO5V0_DFT_ATB0_SELMUX_CONNECT_VREF_VFB_DIV = VDETAO5V0_DFT_ATB0CONFIG_SELMUX_ConnectVrefVfbUnbuf , NRF_VDETAO5V0_DFT_ATB0_SELMUX_CONNECT_VSS = VDETAO5V0_DFT_ATB0CONFIG_SELMUX_ConnectVSS } |
Select multiplexer for ATB0. More... | |
enum | nrf_vdetao5v0_dft_atb1_selmux_t { NRF_VDETAO5V0_DFT_ATB1_SELMUX_CONNECT_VREF_BUF = VDETAO5V0_DFT_ATB1CONFIG_SELMUX_ConnectVrefBuf , NRF_VDETAO5V0_DFT_ATB1_SELMUX_CONNECT_VFB_BUF = VDETAO5V0_DFT_ATB1CONFIG_SELMUX_ConnectVfbBuf } |
Select multiplexer for ATB1. More... | |
enum | nrf_vdetao5v0_dft_dtb0_selmux_t { NRF_VDETAO5V0_DFT_DTB0_SELMUX_PGD_COMP_READY = VDETAO5V0_DFT_DTB0CONFIG_SELMUX_PgdCompReady , NRF_VDETAO5V0_DFT_DTB0_SELMUX_PGD_UNLATCHED = VDETAO5V0_DFT_DTB0CONFIG_SELMUX_PgdUnlatched , NRF_VDETAO5V0_DFT_DTB0_SELMUX_MODE_LP = VDETAO5V0_DFT_DTB0CONFIG_SELMUX_ModeLP , NRF_VDETAO5V0_DFT_DTB0_SELMUX_MODE_ULPR = VDETAO5V0_DFT_DTB0CONFIG_SELMUX_ModeULPR } |
Select multiplexer for DTB0. More... | |
enum | nrf_vdetao5v0_dft_dtb1_selmux_t { NRF_VDETAO5V0_DFT_DTB1_SELMUX_PDG = VDETAO5V0_DFT_DTB1CONFIG_SELMUX_Pgd , NRF_VDETAO5V0_DFT_DTB1_SELMUX_PWR_UP = VDETAO5V0_DFT_DTB1CONFIG_SELMUX_Pwrup , NRF_VDETAO5V0_DFT_DTB1_SELMUX_SETTLED = VDETAO5V0_DFT_DTB1CONFIG_SELMUX_Settled , NRF_VDETAO5V0_DFT_DTB1_SELMUX_READY = VDETAO5V0_DFT_DTB1CONFIG_SELMUX_Ready } |
Select multiplexer for DTB1. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_task_trigger (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_task_t task) |
Function for activating the specified task. | |
NRF_STATIC_INLINE uint32_t | nrf_vdetao5v0_task_address_get (NRF_VDETAO5V0_Type const *p_reg, nrf_vdetao5v0_task_t task) |
Function for getting the address of the specified task register. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_event_clear (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_event_t event) |
Function for clearing the specified VDETAO5V0 event. | |
NRF_STATIC_INLINE bool | nrf_vdetao5v0_event_check (NRF_VDETAO5V0_Type const *p_reg, nrf_vdetao5v0_event_t event) |
Function for retrieving the state of the VDETAO5V0 event. | |
NRF_STATIC_INLINE uint32_t | nrf_vdetao5v0_event_address_get (NRF_VDETAO5V0_Type const *p_reg, nrf_vdetao5v0_event_t event) |
Function for getting the address of the specified event register. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_int_enable (NRF_VDETAO5V0_Type *p_reg, uint32_t mask) |
Function for enabling specified interrupts. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_int_disable (NRF_VDETAO5V0_Type *p_reg, uint32_t mask) |
Function for disabling specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_vdetao5v0_int_enable_check (NRF_VDETAO5V0_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_vdetao5v0_int_pending_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for retrieving the state of pending interrupts. | |
NRF_STATIC_INLINE nrf_vdetao5v0_status_t | nrf_vdetao5v0_status_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for getting VDETAO5V0 status register. | |
NRF_STATIC_INLINE uint32_t | nrf_vdetao5v0_statusana_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for getting VDETAO5V0 status of the analog module output signals. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_config_cfg_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_pwr_good_hyst_t hyst, bool sample_time) |
Function for setting voltage detector configuration. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_config_cfg_get (NRF_VDETAO5V0_Type const *p_reg, nrf_vdetao5v0_pwr_good_hyst_t *p_hyst, bool *p_sample_time) |
Function for getting voltage detector configuration. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_config_pwr_good_level_set (NRF_VDETAO5V0_Type *p_reg, uint8_t thr) |
Function for setting power good detector threshold voltage level. | |
NRF_STATIC_INLINE uint8_t | nrf_vdetao5v0_config_pwr_good_level_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for getting power good detector threshold voltage level. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_trim_pwr_good_set (NRF_VDETAO5V0_Type *p_reg, uint8_t val) |
Function for setting power good detector trimming. | |
NRF_STATIC_INLINE uint8_t | nrf_vdetao5v0_trim_pwr_good_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for getting power good detector trimming. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_mirror_lock_set (NRF_VDETAO5V0_Type *p_reg, bool lock) |
Function for locking mirrored registers. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_mode_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_mode_t mode) |
Function for setting voltage detector mode. | |
NRF_STATIC_INLINE nrf_vdetao5v0_mode_t | nrf_vdetao5v0_mode_get (NRF_VDETAO5V0_Type const *p_reg) |
Function for getting voltage detector mode. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_override_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_analog_signal_t signal, bool enable, uint8_t val) |
Function for overriding signal to the analog module. | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_atb0_config_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_dft_atb0_selmux_t selmux, bool enable) |
Function for configuring Analog Test Bus 0 (ATB0). | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_atb1_config_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_dft_atb1_selmux_t selmux, bool enable) |
Function for configuring Analog Test Bus 1 (ATB1). | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_dtb0_config_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_dft_dtb0_selmux_t selmux, bool enable) |
Function for configuring Digital Test Bus 0 (DTB0). | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_dtb1_config_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_dft_dtb1_selmux_t selmux, bool enable) |
Function for configuring Digital Test Bus 1 (DTB1). | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_dtb3_config_set (NRF_VDETAO5V0_Type *p_reg, bool enable) |
Function for configuring Digital Test Bus 3 (DTB3). | |
NRF_STATIC_INLINE void | nrf_vdetao5v0_dft_tcfg_config_set (NRF_VDETAO5V0_Type *p_reg, nrf_vdetao5v0_tcfg_t tcfg) |
Function for configuring test mode. | |
Hardware access layer for managing the Always-on 5.0V Voltage Detector (VDETAO5V0).
Analog signal to be overridden.
enum nrf_vdetao5v0_mode_t |
Power good detector hysteresis voltage value.
enum nrf_vdetao5v0_task_t |
NRF_STATIC_INLINE void nrf_vdetao5v0_config_cfg_get | ( | NRF_VDETAO5V0_Type const * | p_reg, |
nrf_vdetao5v0_pwr_good_hyst_t * | p_hyst, | ||
bool * | p_sample_time | ||
) |
Function for getting voltage detector configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_hyst | Pointer to the location where power good detector hysteresis voltage value is stored. |
[out] | p_sample_time | Pointer to the location where sample time extension state is stored. |
NRF_STATIC_INLINE void nrf_vdetao5v0_config_cfg_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_pwr_good_hyst_t | hyst, | ||
bool | sample_time | ||
) |
Function for setting voltage detector configuration.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | hyst | Power good detector hysteresis voltage value. |
[in] | sample_time | Sample time 200ns extension enable. |
NRF_STATIC_INLINE uint8_t nrf_vdetao5v0_config_pwr_good_level_get | ( | NRF_VDETAO5V0_Type const * | p_reg | ) |
Function for getting power good detector threshold voltage level.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vdetao5v0_config_pwr_good_level_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
uint8_t | thr | ||
) |
Function for setting power good detector threshold voltage level.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | thr | Threshold value. The value is 1.85V + 0.10V steps. |
NRF_STATIC_INLINE void nrf_vdetao5v0_dft_atb0_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_dft_atb1_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_dft_dtb0_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_dft_dtb1_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_dft_dtb3_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
bool | enable | ||
) |
Function for configuring Digital Test Bus 3 (DTB3).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True to enable PWRUP delay test circuit. |
NRF_STATIC_INLINE void nrf_vdetao5v0_dft_tcfg_config_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_event_address_get | ( | NRF_VDETAO5V0_Type const * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_event_check | ( | NRF_VDETAO5V0_Type const * | p_reg, |
nrf_vdetao5v0_event_t | event | ||
) |
Function for retrieving the state of the VDETAO5V0 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_vdetao5v0_event_clear | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_event_t | event | ||
) |
Function for clearing the specified VDETAO5V0 event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_vdetao5v0_int_disable | ( | NRF_VDETAO5V0_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_vdetao5v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_vdetao5v0_int_enable | ( | NRF_VDETAO5V0_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_vdetao5v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_vdetao5v0_int_enable_check | ( | NRF_VDETAO5V0_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_vdetao5v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_vdetao5v0_int_pending_get | ( | NRF_VDETAO5V0_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_vdetao5v0_mirror_lock_set | ( | NRF_VDETAO5V0_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 nrf_vdetao5v0_mode_t nrf_vdetao5v0_mode_get | ( | NRF_VDETAO5V0_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_vdetao5v0_mode_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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_vdetao5v0_override_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_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 and false to disable. |
[in] | val | Override value. |
NRF_STATIC_INLINE nrf_vdetao5v0_status_t nrf_vdetao5v0_status_get | ( | NRF_VDETAO5V0_Type const * | p_reg | ) |
Function for getting VDETAO5V0 status register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint32_t nrf_vdetao5v0_statusana_get | ( | NRF_VDETAO5V0_Type const * | p_reg | ) |
Function for getting VDETAO5V0 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_vdetao5v0_task_address_get | ( | NRF_VDETAO5V0_Type const * | p_reg, |
nrf_vdetao5v0_task_t | task | ||
) |
Function for getting the address of the specified task register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | The specified task. |
NRF_STATIC_INLINE void nrf_vdetao5v0_task_trigger | ( | NRF_VDETAO5V0_Type * | p_reg, |
nrf_vdetao5v0_task_t | task | ||
) |
Function for activating the specified task.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |
NRF_STATIC_INLINE uint8_t nrf_vdetao5v0_trim_pwr_good_get | ( | NRF_VDETAO5V0_Type const * | p_reg | ) |
Function for getting power good detector trimming.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vdetao5v0_trim_pwr_good_set | ( | NRF_VDETAO5V0_Type * | p_reg, |
uint8_t | val | ||
) |
Function for setting power good detector 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 +/- 14.5mV steps. |