nrfx 3.3
Functions
IO VDETIO HAL

Hardware access layer for managing the Input/Output Voltage Detector (VDETIO). More...

Functions

NRF_STATIC_INLINE bool nrf_vdetio_thr_status_check (NRF_VDETIO_Type const *p_reg, uint8_t port_idx)
 Function for checking if voltage detected by the power good detector from the specified port has exceeded the threshold value.
 
NRF_STATIC_INLINE void nrf_vedtio_pwrgood_config_set (NRF_VDETIO_Type *p_reg, uint8_t port_idx, bool enable)
 Function for enabling the power good detector for the specified port.
 
NRF_STATIC_INLINE bool nrf_vedtio_pwrgood_config_get (NRF_VDETIO_Type const *p_reg, uint8_t port_idx)
 Function for getting the configuration of the power good detector for the specified port.
 

Detailed Description

Hardware access layer for managing the Input/Output Voltage Detector (VDETIO).

Function Documentation

◆ nrf_vdetio_thr_status_check()

NRF_STATIC_INLINE bool nrf_vdetio_thr_status_check ( NRF_VDETIO_Type const *  p_reg,
uint8_t  port_idx 
)

Function for checking if voltage detected by the power good detector from the specified port has exceeded the threshold value.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]port_idxIndex of power good detector port.
Return values
trueDetected voltage is above the threshold level.
falseDetected voltage is below the threshold level.

◆ nrf_vedtio_pwrgood_config_get()

NRF_STATIC_INLINE bool nrf_vedtio_pwrgood_config_get ( NRF_VDETIO_Type const *  p_reg,
uint8_t  port_idx 
)

Function for getting the configuration of the power good detector for the specified port.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]port_idxIndex of power good detector port.
Returns
True if the detector is enabled, false otherwise.

◆ nrf_vedtio_pwrgood_config_set()

NRF_STATIC_INLINE void nrf_vedtio_pwrgood_config_set ( NRF_VDETIO_Type *  p_reg,
uint8_t  port_idx,
bool  enable 
)

Function for enabling the power good detector for the specified port.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]port_idxIndex of power good detector port.
[in]enableTrue if the power good detector is to be enabled, false otherwise.

Documentation feedback | Developer Zone | Subscribe | Updated