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
25
extern
"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
57
typedef
struct
58
{
66
void (*rand_poll)(uint8_t *p_buff, uint8_t length);
67
}
sdc_rand_source_t
;
68
77
int32_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__ */
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.
nrf_errno.h
sdc_rand_source_t
Functions used by the SoftDevice Controller to obtain random numbers.
Definition
sdc_soc.h:58
softdevice_controller
include
sdc_soc.h
Generated on Tue Nov 5 2024 14:26:54 for nrfxlib API by
1.12.0