Hardware access layer for managing the Switch for 1.8V to External (SWEXT).
More...
|
#define | NRF_SWEXT_HAS_CONTROL 1 |
| Symbol indicating whether CONTROL register is present.
|
|
|
NRF_STATIC_INLINE void | nrf_swext_control_set (NRF_SWEXT_Type *p_reg, bool enable) |
| Function for enabling the switch for 1.8V supply to the external circuit.
|
|
NRF_STATIC_INLINE bool | nrf_swext_control_get (NRF_SWEXT_Type const *p_reg) |
| Function for getting configuration of the switch control for the 1.8V supply to the external circuit.
|
|
Hardware access layer for managing the Switch for 1.8V to External (SWEXT).
◆ nrf_swext_control_get()
NRF_STATIC_INLINE bool nrf_swext_control_get |
( |
NRF_SWEXT_Type const * |
p_reg | ) |
|
Function for getting configuration of the switch control for the 1.8V supply to the external circuit.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
true | The switch is enabled. |
false | The switch is disabled. |
◆ nrf_swext_control_set()
NRF_STATIC_INLINE void nrf_swext_control_set |
( |
NRF_SWEXT_Type * |
p_reg, |
|
|
bool |
enable |
|
) |
| |
Function for enabling the switch for 1.8V supply to the external circuit.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if the switch is to be enabled, false otherwise. |