Hardware access layer for managing the Voltage Glitch Detectors (GLITCHDET) peripheral.
More...
|
|
#define | NRF_GLITCHDET_HAS_ENABLE 1 |
| | Symbol indicating whether the ENABLE field is present.
|
| |
|
#define | NRF_GLITCHDET_HAS_REQUESTEDSTATE 1 |
| | Symbol indicating whether the REQUESTEDSTATE field is present.
|
| |
Hardware access layer for managing the Voltage Glitch Detectors (GLITCHDET) peripheral.
◆ 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.
|
◆ 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_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
| true | Glitch detector is enabled. |
| false | Glitch 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_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True if glitch detector is to be enabled, false otherwise. |
◆ nrf_glitchdet_mode_get()
Function for getting glitch detector mode.
- Parameters
-
| [in] | p_reg | Pointer 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_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mode | Glitch detector mode to be set. |