nrfx 3.3
Enumerations | Functions
GLITCHDET HAL

Hardware access layer for managing the Voltage Glitch Detectors (GLITCHDET) peripheral. More...

Enumerations

enum  nrf_glitchdet_mode_t {
  NRF_GLITCHDET_MODE_HIGH_PASS = GLITCHDET_GLITCHDETECTOR_CONFIG_MODE_HighPassFilter ,
  NRF_GLITCHDET_MODE_CAP_DIV = GLITCHDET_GLITCHDETECTOR_CONFIG_MODE_CapDiv
}
 Glitch detector mode. More...
 

Functions

NRF_STATIC_INLINE bool nrf_glitchdet_enable_check (NRF_GLITCHDET_Type const *p_reg)
 Function for checking whether glitch detector is enabled.
 
NRF_STATIC_INLINE void nrf_glitchdet_enable_set (NRF_GLITCHDET_Type *p_reg, bool enable)
 Function for enabling or disabling glitch detector.
 
NRF_STATIC_INLINE nrf_glitchdet_mode_t nrf_glitchdet_mode_get (NRF_GLITCHDET_Type const *p_reg)
 Function for getting glitch detector mode.
 
NRF_STATIC_INLINE void nrf_glitchdet_mode_set (NRF_GLITCHDET_Type *p_reg, nrf_glitchdet_mode_t mode)
 Function for setting glitch detector mode.
 

Detailed Description

Hardware access layer for managing the Voltage Glitch Detectors (GLITCHDET) peripheral.

Enumeration Type Documentation

◆ nrf_glitchdet_mode_t

Glitch detector mode.

Enumerator
NRF_GLITCHDET_MODE_HIGH_PASS 

High pass filter mode.

NRF_GLITCHDET_MODE_CAP_DIV 

Cap divider mode.

Function Documentation

◆ nrf_glitchdet_enable_check()

NRF_STATIC_INLINE bool nrf_glitchdet_enable_check ( NRF_GLITCHDET_Type const *  p_reg)

Function for checking whether glitch detector is enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueGlitch detector is enabled.
falseGlitch detector is disabled.

◆ nrf_glitchdet_enable_set()

NRF_STATIC_INLINE void nrf_glitchdet_enable_set ( NRF_GLITCHDET_Type *  p_reg,
bool  enable 
)

Function for enabling or disabling glitch detector.

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

◆ nrf_glitchdet_mode_get()

NRF_STATIC_INLINE nrf_glitchdet_mode_t nrf_glitchdet_mode_get ( NRF_GLITCHDET_Type const *  p_reg)

Function for getting glitch detector mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Glitch detector mode.

◆ nrf_glitchdet_mode_set()

NRF_STATIC_INLINE void nrf_glitchdet_mode_set ( NRF_GLITCHDET_Type *  p_reg,
nrf_glitchdet_mode_t  mode 
)

Function for setting glitch detector mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeGlitch detector mode to be set.

Documentation feedback | Developer Zone | Subscribe | Updated