Hardware access layer for managing the Input/Output Voltage Detector (VDETIO).
More...
|
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.
|
|
Hardware access layer for managing the Input/Output Voltage Detector (VDETIO).
◆ 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_reg | Pointer to the structure of registers of the peripheral. |
[in] | port_idx | Index of power good detector port. |
- Return values
-
true | Detected voltage is above the threshold level. |
false | Detected 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_reg | Pointer to the structure of registers of the peripheral. |
[in] | port_idx | Index 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_reg | Pointer to the structure of registers of the peripheral. |
[in] | port_idx | Index of power good detector port. |
[in] | enable | True if the power good detector is to be enabled, false otherwise. |