nrfxlib API
3.3.99
Loading...
Searching...
No Matches
sdc_soc.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
7
20
#ifndef SDC_SOC_H__
21
#define SDC_SOC_H__
22
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
29
#include <stdint.h>
30
#include "
mpsl_hwres.h
"
31
32
#if defined(NRF52_SERIES)
33
/* PPI channels 17 - 31, for the nRF52 Series */
34
#define SDC_PPI_CHANNELS_USED_MASK (0xfffe0000)
35
#elif defined(NRF53_SERIES)
36
/* PPI channels 3 - 12, for the nRF53 Series */
37
#define SDC_DPPI_CHANNELS_USED_MASK (0x00001ff8)
38
#elif defined(LUMOS_XXAA)
39
#define SDC_DPPIC10_CHANNELS_USED_MASK (0x00000ffe)
40
#define SDC_DPPIC00_CHANNELS_USED_MASK (0x0000000a)
41
#define SDC_PPIB00_CHANNELS_USED_MASK (0x0000000f)
42
#define SDC_PPIB10_CHANNELS_USED_MASK (0x0000000f)
43
#elif defined(NRF54H_SERIES) || defined(GRTC_PRESENT)
44
#define SDC_DPPIC020_CHANNELS_USED_MASK (0x00000ffe)
45
#define SDC_DPPIC030_CHANNELS_USED_MASK (0x0000000a)
46
#define SDC_PPIB020_CHANNELS_USED_MASK (0x0000000f)
47
#define SDC_PPIB030_CHANNELS_USED_MASK (0x0000000f)
48
#endif
49
56
typedef
struct
57
{
65
void (*rand_poll)(uint8_t *p_buff, uint8_t length);
66
}
sdc_rand_source_t
;
67
76
int32_t
sdc_rand_source_register
(
const
sdc_rand_source_t
*rand_source);
77
78
79
#ifdef __cplusplus
80
}
81
#endif
82
85
#endif
/* SDC_SOC_H__ */
sdc_rand_source_register
int32_t sdc_rand_source_register(const sdc_rand_source_t *rand_source)
Pass a source of randomness to the SoftDevice Controller.
mpsl_hwres.h
sdc_rand_source_t
Functions used by the SoftDevice Controller to obtain random numbers.
Definition
sdc_soc.h:57
softdevice_controller
include
sdc_soc.h
Generated on Wed Jun 10 2026 17:21:23 for nrfxlib API by
1.12.0