Hardware access layer for managing the 1.0V Voltage Detector (VDET1V0). More...
Data Structures | |
struct | nrf_vdet1v0_tcfg_t |
Test mode configuration. More... | |
Enumerations | |
enum | nrf_vdet1v0_event_t { NRF_VDET1V0_EVENT_READY = offsetof(NRF_VDET1V0_Type, EVENTS_READY) , NRF_VDET1V0_EVENT_SETTLED = offsetof(NRF_VDET1V0_Type, EVENTS_SETTLED) , NRF_VDET1V0_EVENT_PWR_GOOD = offsetof(NRF_VDET1V0_Type, EVENTS_PWRGOOD) , NRF_VDET1V0_EVENT_PWR_NOT_GOOD = offsetof(NRF_VDET1V0_Type, EVENTS_PWRNOTGOOD) } |
VDET1V0 events. More... | |
enum | nrf_vdet1v0_task_t { NRF_VDET1V0_TASK_PWR_UP = offsetof(NRF_VDET1V0_Type, TASKS_PWRUP) , NRF_VDET1V0_TASK_PWR_DOWN = offsetof(NRF_VDET1V0_Type, TASKS_PWRDOWN) } |
VDET1V0 tasks. More... | |
enum | nrf_vdet1v0_int_mask_t { NRF_VDET1V0_INT_READY_MASK = VDET1V0_INTEN_READY_Msk , NRF_VDET1V0_INT_SETTLED_MASK = VDET1V0_INTEN_SETTLED_Msk , NRF_VDET1V0_INT_PWR_GOOD_MASK = VDET1V0_INTEN_PWRGOOD_Msk , NRF_VDET1V0_INT_PWR_NOT_GOOD_MASK = VDET1V0_INTEN_PWRNOTGOOD_Msk } |
VDET1V0 interrupts. More... | |
enum | nrf_vdet1v0_statusana_mask_t { NRF_VDET1V0_STATUSANA_READY_MASK = VDET1V0_STATUSANA_READY_Msk , NRF_VDET1V0_STATUSANA_SETTLED_MASK = VDET1V0_STATUSANA_SETTLED_Msk , NRF_VDET1V0_STATUSANA_PGD_MASK = VDET1V0_STATUSANA_PGD_Msk } |
STATUSANA register bit masks. More... | |
enum | nrf_vdet1v0_pwr_good_hyst_t { NRF_VDET1V0_PWR_GOOD_HYST_LOW = VDET1V0_CONFIG_CFG_PWRGOODHYST_HystLow , NRF_VDET1V0_PWR_GOOD_HYST_HIGH = VDET1V0_CONFIG_CFG_PWRGOODHYST_HystHigh } |
Power good detector hysteresis settings. More... | |
enum | nrf_vdet1v0_analog_signal_t { NRF_VDET1V0_ANALOG_SIGNAL_PWRUP , NRF_VDET1V0_ANALOG_SIGNAL_RETAIN , NRF_VDET1V0_ANALOG_SIGNAL_READY , NRF_VDET1V0_ANALOG_SIGNAL_SETTLED , NRF_VDET1V0_ANALOG_SIGNAL_PGD } |
Analog signal to be overridden. More... | |
enum | nrf_vdet1v0_dft_atb0_selmux_t { NRF_VDET1V0_DFT_ATB0_SELMUX_CONNECT_VSS = VDET1V0_DFT_ATB0CONFIG_SELMUX_ConnectVSS , NRF_VDET1V0_DFT_ATB0_SELMUX_CONNECT_SENSE_VOLTAGE = VDET1V0_DFT_ATB0CONFIG_SELMUX_ConnectSenseVoltage } |
Select multiplexer for ATB0. More... | |
enum | nrf_vdet1v0_dft_dtb0_selmux_t { NRF_VDET1V0_DFT_DTB0_SELMUX_READY_PGD_SW = VDET1V0_DFT_DTB0CONFIG_SELMUX_ReadyPgdSw , NRF_VDET1V0_DFT_DTB0_SELMUX_SETTLED = VDET1V0_DFT_DTB0CONFIG_SELMUX_Settled , NRF_VDET1V0_DFT_DTB0_SELMUX_PGD_COMP = VDET1V0_DFT_DTB0CONFIG_SELMUX_PgdCmp , NRF_VDET1V0_DFT_DTB0_SELMUX_PGD_UNBUF = VDET1V0_DFT_DTB0CONFIG_SELMUX_PgdUnbuf } |
Select multiplexer for DTB0. More... | |
enum | nrf_vdet1v0_dft_dtb1_selmux_t { NRF_VDET1V0_DFT_DTB1_SELMUX_SPARE0 = VDET1V0_DFT_DTB1CONFIG_SELMUX_Spare0 , NRF_VDET1V0_DFT_DTB1_SELMUX_READY = VDET1V0_DFT_DTB1CONFIG_SELMUX_Ready } |
Select multiplexer for DTB1. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_vdet1v0_task_trigger (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_task_t task) |
Function for activating the specified VDET1V0 task. | |
NRF_STATIC_INLINE uint32_t | nrf_vdet1v0_task_address_get (NRF_VDET1V0_Type const *p_reg, nrf_vdet1v0_task_t task) |
Function for getting the address of the specified VDET1V0 task register. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_event_clear (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_event_t event) |
Function for clearing the specified VDET1V0 event. | |
NRF_STATIC_INLINE bool | nrf_vdet1v0_event_check (NRF_VDET1V0_Type const *p_reg, nrf_vdet1v0_event_t event) |
Function for retrieving the state of the VDET1V0 event. | |
NRF_STATIC_INLINE uint32_t | nrf_vdet1v0_event_address_get (NRF_VDET1V0_Type const *p_reg, nrf_vdet1v0_event_t event) |
Function for getting the address of the specified VDET1V0 event register. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_int_enable (NRF_VDET1V0_Type *p_reg, uint32_t mask) |
Function for enabling specified interrupts. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_int_disable (NRF_VDET1V0_Type *p_reg, uint32_t mask) |
Function for disabling specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_vdet1v0_int_enable_check (NRF_VDET1V0_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_vdet1v0_int_pending_get (NRF_VDET1V0_Type const *p_reg) |
Function for retrieving the state of pending interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_vdet1v0_statusana_get (NRF_VDET1V0_Type const *p_reg) |
Function for getting VDET1V0 status of the analog module output signals. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_config_cfg_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_pwr_good_hyst_t pwr_good_hyst) |
Function for setting configuration of voltage detector. | |
NRF_STATIC_INLINE nrf_vdet1v0_pwr_good_hyst_t | nrf_vdet1v0_config_cfg_get (NRF_VDET1V0_Type const *p_reg) |
Function for getting configuration of voltage detector. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_config_pwr_good_thr_set (NRF_VDET1V0_Type *p_reg, uint8_t thr) |
Function for setting threshold voltage level of power good detector. | |
NRF_STATIC_INLINE uint8_t | nrf_vdet1v0_config_pwr_good_thr_get (NRF_VDET1V0_Type const *p_reg) |
Function for getting threshold voltage level of voltage detector. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_trim_pwr_good_set (NRF_VDET1V0_Type *p_reg, uint8_t val) |
Function for setting voltage trimming value of power good detector. | |
NRF_STATIC_INLINE uint8_t | nrf_vdet1v0_trim_pwr_good_get (NRF_VDET1V0_Type const *p_reg) |
Function for getting voltage trimming value of power good detector. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_mirror_lock_set (NRF_VDET1V0_Type *p_reg, bool lock) |
Function for locking mirrored registers. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_override_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_analog_signal_t signal, bool enable, uint8_t val) |
Function for overriding signal to the analog module. | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_atb0_config_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_dft_atb0_selmux_t selmux, bool enable) |
Function for configuring Analog Test Bus 0 (ATB0). | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_atb1_config_set (NRF_VDET1V0_Type *p_reg, bool enable) |
Function for configuring Analog Test Bus 1 (ATB1). | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_dtb0_config_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_dft_dtb0_selmux_t selmux, bool enable) |
Function for configuring Digital Test Bus 0 (DTB0). | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_dtb1_config_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_dft_dtb1_selmux_t selmux, bool enable) |
Function for configuring Digital Test Bus 1 (DTB1). | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_dtb3_config_set (NRF_VDET1V0_Type *p_reg, bool enable) |
Function for configuring Digital Test Bus 3 (DTB3). | |
NRF_STATIC_INLINE void | nrf_vdet1v0_dft_tcfg_config_set (NRF_VDET1V0_Type *p_reg, nrf_vdet1v0_tcfg_t tcfg) |
Function for configuring test mode. | |
Hardware access layer for managing the 1.0V Voltage Detector (VDET1V0).
Analog signal to be overridden.
enum nrf_vdet1v0_event_t |
VDET1V0 events.
enum nrf_vdet1v0_task_t |
NRF_STATIC_INLINE nrf_vdet1v0_pwr_good_hyst_t nrf_vdet1v0_config_cfg_get | ( | NRF_VDET1V0_Type const * | p_reg | ) |
Function for getting configuration of voltage detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vdet1v0_config_cfg_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_pwr_good_hyst_t | pwr_good_hyst | ||
) |
Function for setting configuration of voltage detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | pwr_good_hyst | Power good detector hysteresis setting. |
NRF_STATIC_INLINE uint8_t nrf_vdet1v0_config_pwr_good_thr_get | ( | NRF_VDET1V0_Type const * | p_reg | ) |
Function for getting threshold voltage level of voltage detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vdet1v0_config_pwr_good_thr_set | ( | NRF_VDET1V0_Type * | p_reg, |
uint8_t | thr | ||
) |
Function for setting threshold voltage level of power good detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | thr | Threshold voltage value. The value is 0.77V + 0.01V steps. |
NRF_STATIC_INLINE void nrf_vdet1v0_dft_atb0_config_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_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_vdet1v0_dft_atb1_config_set | ( | NRF_VDET1V0_Type * | p_reg, |
bool | enable | ||
) |
Function for configuring Analog Test Bus 1 (ATB1).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True to enable test bus. |
NRF_STATIC_INLINE void nrf_vdet1v0_dft_dtb0_config_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_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_vdet1v0_dft_dtb1_config_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_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_vdet1v0_dft_dtb3_config_set | ( | NRF_VDET1V0_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_vdet1v0_dft_tcfg_config_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_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_vdet1v0_event_address_get | ( | NRF_VDET1V0_Type const * | p_reg, |
nrf_vdet1v0_event_t | event | ||
) |
Function for getting the address of the specified VDET1V0 event register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified event. |
NRF_STATIC_INLINE bool nrf_vdet1v0_event_check | ( | NRF_VDET1V0_Type const * | p_reg, |
nrf_vdet1v0_event_t | event | ||
) |
Function for retrieving the state of the VDET1V0 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_vdet1v0_event_clear | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_event_t | event | ||
) |
Function for clearing the specified VDET1V0 event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_vdet1v0_int_disable | ( | NRF_VDET1V0_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_vdet1v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_vdet1v0_int_enable | ( | NRF_VDET1V0_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_vdet1v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_vdet1v0_int_enable_check | ( | NRF_VDET1V0_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_vdet1v0_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_vdet1v0_int_pending_get | ( | NRF_VDET1V0_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_vdet1v0_mirror_lock_set | ( | NRF_VDET1V0_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, and mirrored registers can be updated at any time. |
NRF_STATIC_INLINE void nrf_vdet1v0_override_set | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_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 uint32_t nrf_vdet1v0_statusana_get | ( | NRF_VDET1V0_Type const * | p_reg | ) |
Function for getting VDET1V0 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_vdet1v0_task_address_get | ( | NRF_VDET1V0_Type const * | p_reg, |
nrf_vdet1v0_task_t | task | ||
) |
Function for getting the address of the specified VDET1V0 task register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | The specified task. |
NRF_STATIC_INLINE void nrf_vdet1v0_task_trigger | ( | NRF_VDET1V0_Type * | p_reg, |
nrf_vdet1v0_task_t | task | ||
) |
Function for activating the specified VDET1V0 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_vdet1v0_trim_pwr_good_get | ( | NRF_VDET1V0_Type const * | p_reg | ) |
Function for getting voltage trimming value of power good detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_vdet1v0_trim_pwr_good_set | ( | NRF_VDET1V0_Type * | p_reg, |
uint8_t | val | ||
) |
Function for setting voltage trimming value of power good detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | val | Threshold voltage trimming value. The value is 2's complement value of 0mV +/- 5mV steps. |