nrfx 3.3
Enumerations | Functions
CPUCONF HAL

Hardware access layer (HAL) for managing the CPU configuration (CPUCONF) peripheral. More...

Enumerations

enum  nrf_cpuconf_task_t { NRF_CPUCONF_TASK_ERASECACHE = offsetof(NRF_CPUCONF_Type, TASKS_ERASECACHE) }
 CPU configuration tasks. More...
 

Functions

NRF_STATIC_INLINE void nrf_cpuconf_task_trigger (NRF_CPUCONF_Type *p_reg, nrf_cpuconf_task_t task)
 Function for activating the specified CPUCONF task.
 
NRF_STATIC_INLINE void nrf_cpuconf_cpu_start_set (NRF_CPUCONF_Type *p_reg, bool enable)
 Function for setting the CPU start enable.
 
NRF_STATIC_INLINE bool nrf_cpuconf_cpu_start_check (NRF_CPUCONF_Type const *p_reg)
 Function for checking whether the CPU start is enabled.
 
NRF_STATIC_INLINE void nrf_cpuconf_cpu_wait_set (NRF_CPUCONF_Type *p_reg, bool wait)
 Function for setting the CPU wait state.
 
NRF_STATIC_INLINE bool nrf_cpuconf_cpu_wait_check (NRF_CPUCONF_Type const *p_reg)
 Function for checking whether the CPU wait is enabled.
 
NRF_STATIC_INLINE void nrf_cpuconf_secure_vtor_set (NRF_CPUCONF_Type *p_reg, uint32_t vtor)
 Function for setting the initial value of the secure Vector Table Offset Register after CPU reset.
 
NRF_STATIC_INLINE uint32_t nrf_cpuconf_secure_vtor_get (NRF_CPUCONF_Type const *p_reg)
 Function for getting the initial value of the secure Vector Table Offset Register after CPU reset.
 
NRF_STATIC_INLINE void nrf_cpuconf_nonsecure_vtor_set (NRF_CPUCONF_Type *p_reg, uint32_t vtor)
 Function for setting the initial value of the non-secure Vector Table Offset Register after CPU reset.
 
NRF_STATIC_INLINE uint32_t nrf_cpuconf_nonsecure_vtor_get (NRF_CPUCONF_Type const *p_reg)
 Function for getting the initial value of the non-secure Vector Table Offset Register after CPU reset.
 

Detailed Description

Hardware access layer (HAL) for managing the CPU configuration (CPUCONF) peripheral.

Enumeration Type Documentation

◆ nrf_cpuconf_task_t

CPU configuration tasks.

Enumerator
NRF_CPUCONF_TASK_ERASECACHE 

Erase the caches used by the CPU.

Function Documentation

◆ nrf_cpuconf_cpu_start_check()

NRF_STATIC_INLINE bool nrf_cpuconf_cpu_start_check ( NRF_CPUCONF_Type const *  p_reg)

Function for checking whether the CPU start is enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueCPU is started.
falseCPU is stopped.

◆ nrf_cpuconf_cpu_start_set()

NRF_STATIC_INLINE void nrf_cpuconf_cpu_start_set ( NRF_CPUCONF_Type *  p_reg,
bool  enable 
)

Function for setting the CPU start enable.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue if CPU should be started, false if it should be stopped.

◆ nrf_cpuconf_cpu_wait_check()

NRF_STATIC_INLINE bool nrf_cpuconf_cpu_wait_check ( NRF_CPUCONF_Type const *  p_reg)

Function for checking whether the CPU wait is enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueCPU is waiting.
falseCPU is not waiting.

◆ nrf_cpuconf_cpu_wait_set()

NRF_STATIC_INLINE void nrf_cpuconf_cpu_wait_set ( NRF_CPUCONF_Type *  p_reg,
bool  wait 
)

Function for setting the CPU wait state.

When the CPU wait state is enabled, the CPU will be stopped even if the CPU clock signal is present.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]waitTrue if CPU should wait, false otherwise.

◆ nrf_cpuconf_nonsecure_vtor_get()

NRF_STATIC_INLINE uint32_t nrf_cpuconf_nonsecure_vtor_get ( NRF_CPUCONF_Type const *  p_reg)

Function for getting the initial value of the non-secure Vector Table Offset Register after CPU reset.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Initial value of the non-secure VTOR.

◆ nrf_cpuconf_nonsecure_vtor_set()

NRF_STATIC_INLINE void nrf_cpuconf_nonsecure_vtor_set ( NRF_CPUCONF_Type *  p_reg,
uint32_t  vtor 
)

Function for setting the initial value of the non-secure Vector Table Offset Register after CPU reset.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]vtorValue of the non-secure Vector Table Offset Register to be set.

◆ nrf_cpuconf_secure_vtor_get()

NRF_STATIC_INLINE uint32_t nrf_cpuconf_secure_vtor_get ( NRF_CPUCONF_Type const *  p_reg)

Function for getting the initial value of the secure Vector Table Offset Register after CPU reset.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Initial value of the secure VTOR.

◆ nrf_cpuconf_secure_vtor_set()

NRF_STATIC_INLINE void nrf_cpuconf_secure_vtor_set ( NRF_CPUCONF_Type *  p_reg,
uint32_t  vtor 
)

Function for setting the initial value of the secure Vector Table Offset Register after CPU reset.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]vtorValue of the secure Vector Table Offset Register to be set.

◆ nrf_cpuconf_task_trigger()

NRF_STATIC_INLINE void nrf_cpuconf_task_trigger ( NRF_CPUCONF_Type *  p_reg,
nrf_cpuconf_task_t  task 
)

Function for activating the specified CPUCONF task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask to be activated.

Documentation feedback | Developer Zone | Subscribe | Updated