GLITCHDET HAL

group nrf_glitchdet_hal

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

Enums

enum nrf_glitchdet_mode_t

Glitch detector mode.

Values:

enumerator NRF_GLITCHDET_MODE_HIGH_PASS

High pass filter mode.

enumerator NRF_GLITCHDET_MODE_CAP_DIV

Cap divider mode.

Functions

NRF_STATIC_INLINE bool nrf_glitchdet_enable_check(NRF_GLITCHDET_Type const *p_reg)

Function for checking whether glitch detector is enabled.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

Return values:
  • true – Glitch detector is enabled.

  • false – Glitch detector is disabled.

NRF_STATIC_INLINE void nrf_glitchdet_enable_set(NRF_GLITCHDET_Type *p_reg, bool enable)

Function for enabling or disabling glitch detector.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • enable[in] True if glitch detector is to be enabled, false otherwise.

NRF_STATIC_INLINE nrf_glitchdet_mode_t nrf_glitchdet_mode_get(NRF_GLITCHDET_Type const *p_reg)

Function for getting glitch detector mode.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

Returns:

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.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • mode[in] Glitch detector mode to be set.