nrfxlib API 2.8.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
25extern "C" {
26#endif
27
28
29#include <stdint.h>
30#include <stdbool.h>
31#include "nrf_errno.h"
32
33#if defined(NRF52_SERIES)
34 /* PPI channels 17 - 31, for the nRF52 Series */
35 #define SDC_PPI_CHANNELS_USED_MASK (0xfffe0000)
36#elif defined(NRF53_SERIES)
37 /* PPI channels 3 - 12, for the nRF53 Series */
38 #define SDC_DPPI_CHANNELS_USED_MASK (0x00001ff8)
39#elif defined(NRF54L_SERIES)
40 #define SDC_DPPIC10_CHANNELS_USED_MASK (0x00000ffe)
41 #define SDC_DPPIC00_CHANNELS_USED_MASK (0x0000000a)
42 #define SDC_PPIB00_CHANNELS_USED_MASK (0x0000000f)
43 #define SDC_PPIB10_CHANNELS_USED_MASK (0x0000000f)
44#elif defined(NRF54H) || defined(GRTC_PRESENT)
45 #define SDC_DPPIC020_CHANNELS_USED_MASK (0x00000ffe)
46 #define SDC_DPPIC030_CHANNELS_USED_MASK (0x0000000a)
47 #define SDC_PPIB020_CHANNELS_USED_MASK (0x0000000f)
48 #define SDC_PPIB030_CHANNELS_USED_MASK (0x0000000f)
49#endif
50
57typedef struct
58{
66 void (*rand_poll)(uint8_t *p_buff, uint8_t length);
68
77int32_t sdc_rand_source_register(const sdc_rand_source_t *rand_source);
78
79
80#ifdef __cplusplus
81}
82#endif
83
86#endif /* SDC_SOC_H__ */
int32_t sdc_rand_source_register(const sdc_rand_source_t *rand_source)
Pass a source of randomness to the SoftDevice Controller.
Functions used by the SoftDevice Controller to obtain random numbers.
Definition sdc_soc.h:58