nrfx 3.3
Macros | Functions
SWEXT HAL

Hardware access layer for managing the Switch for 1.8V to External (SWEXT). More...

Macros

#define NRF_SWEXT_HAS_CONTROL   1
 Symbol indicating whether CONTROL register is present.
 

Functions

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.
 

Detailed Description

Hardware access layer for managing the Switch for 1.8V to External (SWEXT).

Function Documentation

◆ 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_regPointer to the structure of registers of the peripheral.
Return values
trueThe switch is enabled.
falseThe 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_regPointer to the structure of registers of the peripheral.
[in]enableTrue if the switch is to be enabled, false otherwise.

Documentation feedback | Developer Zone | Subscribe | Updated