nrfxlib API 3.3.99
Loading...
Searching...
No Matches
mpsl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
16#ifndef MPSL_H__
17#define MPSL_H__
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <stddef.h>
24#include <stdint.h>
25#include <stdbool.h>
26#include "nrfx.h"
27#include "nrf_errno.h"
28#include "mpsl_clock.h"
29#include "mpsl_hwres.h"
30#include "mpsl_hwres_ppi.h"
31
37#define MPSL_HIGH_IRQ_PRIORITY 0
38
40#define MPSL_BUILD_REVISION_SIZE 20
41
59typedef void (*mpsl_assert_handler_t)(const char * const file, const uint32_t line);
60
87int32_t mpsl_init(mpsl_clock_lfclk_cfg_t const * p_clock_config, IRQn_Type low_prio_irq, mpsl_assert_handler_t p_assert_handler);
88
96void mpsl_uninit(void);
97
103
114int32_t mpsl_build_revision_get(uint8_t * p_build_revision);
115
122
132
141
148
158
164
188
208void * mpsl_memcpy(void * restrict p_dest, const void * restrict p_src, size_t num_bytes);
209
210#ifdef __cplusplus
211}
212#endif
213
214#endif // MPSL_H__
215
void mpsl_low_latency_acquire_callback(void)
Acquire low-latency settings to the system.
void mpsl_low_latency_release_callback(void)
Release low-latency settings from the system.
void mpsl_low_priority_process(void)
MPSL low priority processing handler.
void(* mpsl_assert_handler_t)(const char *const file, const uint32_t line)
Function prototype for the assert handler.
Definition mpsl.h:59
int32_t mpsl_build_revision_get(uint8_t *p_build_revision)
Obtain build revision.
void mpsl_uninit(void)
Uninitialize MPSL. Stops clocks and scheduler. This will release all peripherals and reduce power usa...
void MPSL_IRQ_RADIO_Handler(void)
RADIO interrupt handler.
void * mpsl_memcpy(void *restrict p_dest, const void *restrict p_src, size_t num_bytes)
Optimized memory copy helper.
void mpsl_calibration_timer_handle(void)
Application needs to call this when calibration shall occur.
int32_t mpsl_init(mpsl_clock_lfclk_cfg_t const *p_clock_config, IRQn_Type low_prio_irq, mpsl_assert_handler_t p_assert_handler)
MPSL initialization.
void MPSL_IRQ_CLOCK_Handler(void)
POWER_CLOCK interrupt handler.
bool mpsl_is_initialized(void)
Returns true if MPSL is already initialized, false otherwise.
void MPSL_IRQ_RTC0_Handler(void)
RTC0 interrupt handler.
void MPSL_IRQ_TIMER0_Handler(void)
TIMER0 interrupt handler.
Type representing LFCLK oscillator source.
Definition mpsl_clock.h:66