nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches
nrf_sdh_soc.h
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef NRF_SDH_SOC_H__
16#define NRF_SDH_SOC_H__
17
18#include <stdint.h>
19#include <bm/softdevice_handler/nrf_sdh.h>
20#include <zephyr/sys/iterable_sections.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
29typedef void (*nrf_sdh_soc_evt_handler_t)(uint32_t evt_id, void *context);
30
44
54#define NRF_SDH_SOC_OBSERVER(_observer, _handler, _ctx, _prio) \
55 PRIO_LEVEL_IS_VALID(_prio); \
56 static const TYPE_SECTION_ITERABLE(struct nrf_sdh_soc_evt_observer, _observer, \
57 nrf_sdh_soc_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
58 .handler = _handler, \
59 .context = _ctx, \
60 }
61
71const char *nrf_sdh_soc_evt_to_str(uint32_t evt);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* NRF_SDH_SOC_H__ */
78
void(* nrf_sdh_soc_evt_handler_t)(uint32_t evt_id, void *context)
SoftDevice SoC event handler.
Definition nrf_sdh_soc.h:29
const char * nrf_sdh_soc_evt_to_str(uint32_t evt)
Stringify a SoftDevice SoC event.
nrf_sdh_soc_evt_handler_t handler
SoC event handler.
Definition nrf_sdh_soc.h:38
void * context
A parameter to the event handler.
Definition nrf_sdh_soc.h:42
SoftDevice SoC event observer.
Definition nrf_sdh_soc.h:34