nRF5 SDK v14.2.0
Modules | Data Structures | Macros | Typedefs
SoC support in SoftDevice Handler

This file contains the declarations of types and functions required for SoftDevice Handler SoC support. More...

Modules

 SoftDevice SoC event handler configuration
 

Data Structures

struct  nrf_sdh_soc_evt_observer_t
 SoC event observer. More...
 

Macros

#define NRF_SDH_SOC_OBSERVER(_name, _prio, _handler, _context)
 Macro for registering nrf_sdh_soc_evt_observer_t. Modules that want to be notified about SoC events must register the handler using this macro. More...
 
#define NRF_SDH_SOC_EVENT_OBSERVERS(_name, _prio, _handler, _context, _cnt)
 Macro for registering an array of nrf_sdh_soc_evt_observer_t. Modules that want to be notified about SoC events must register the handler using this macro. More...
 

Typedefs

typedef void(* nrf_sdh_soc_evt_handler_t )(uint32_t evt_id, void *p_context)
 SoC event handler.
 

Detailed Description

This file contains the declarations of types and functions required for SoftDevice Handler SoC support.

Macro Definition Documentation

#define NRF_SDH_SOC_EVENT_OBSERVERS (   _name,
  _prio,
  _handler,
  _context,
  _cnt 
)

Macro for registering an array of nrf_sdh_soc_evt_observer_t. Modules that want to be notified about SoC events must register the handler using this macro.

Each observer's handler will be dispatched an event with its relative context from _context. This macro places the observer in a section named "sdh_soc_observers".

Parameters
[in]_nameObserver name.
[in]_prioPriority of the observer event handler. The smaller the number, the higher the priority.
[in]_handlerSoC event handler.
[in]_contextAn array of parameters to the event handler.
[in]_cntNumber of observers to register.
#define NRF_SDH_SOC_OBSERVER (   _name,
  _prio,
  _handler,
  _context 
)

Macro for registering nrf_sdh_soc_evt_observer_t. Modules that want to be notified about SoC events must register the handler using this macro.

This macro places the observer in a section named "sdh_soc_observers".

Parameters
[in]_nameObserver name.
[in]_prioPriority of the observer event handler. The smaller the number, the higher the priority.
[in]_handlerSoC event handler.
[in]_contextParameter to the event handler.

Documentation feedback | Developer Zone | Subscribe | Updated