nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_peripherals_nrf54h.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024, Nordic Semiconductor ASA
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright notice, this
11 * list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18 * contributors may be used to endorse or promote products derived from this
19 * software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 */
34
40#ifndef NRF_802154_PERIPHERALS_NRF54H_H__
41#define NRF_802154_PERIPHERALS_NRF54H_H__
42
43/* This file must not include nrf.h or nrfx.h directly or indirectly,
44 * to avoid circular dependencies.
45 */
46
48#include "nrf_802154_config.h"
49#include "nrf_802154_sl_periphs.h"
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
62#ifndef NRF_802154_EGU_INSTANCE_NO
63#define NRF_802154_EGU_INSTANCE_NO 020
64#endif
65
75#define NRF_802154_EGU_INSTANCE NRFX_CONCAT_2(NRF_EGU, NRF_802154_EGU_INSTANCE_NO)
76
85#define NRF_802154_EGU_IRQ_HANDLER \
86 NRFX_CONCAT_3(EGU, NRF_802154_EGU_INSTANCE_NO, _IRQHandler)
87
93#ifndef NRF_802154_EGU_USED_MASK
94#define NRF_802154_EGU_USED_MASK (1 << NRF_802154_EGU_INSTANCE_NO)
95#endif
96
105#define NRF_802154_CCM_INSTANCE_NO 030
106
115#define NRF_802154_CCM_INSTANCE NRFX_CONCAT_2(NRF_CCM, NRF_802154_CCM_INSTANCE_NO)
116
123#ifndef NRF_802154_RTC_INSTANCE_NO
124#define NRF_802154_RTC_INSTANCE_NO 2
125#endif
126
133#define NRF_802154_DPPIC_INSTANCE_NO 020
134
141#define NRF_802154_DPPIC_INSTANCE NRFX_CONCAT_2(NRF_DPPIC, NRF_802154_DPPIC_INSTANCE_NO)
142
151#ifndef NRF_802154_DPPI_RADIO_DISABLED
152#define NRF_802154_DPPI_RADIO_DISABLED 7U
153#endif
154
163#ifndef NRF_802154_DPPI_RADIO_READY
164#define NRF_802154_DPPI_RADIO_READY 4U
165#endif
166
175#ifndef NRF_802154_DPPI_RADIO_ADDRESS
176#define NRF_802154_DPPI_RADIO_ADDRESS 5U
177#endif
178
187#ifndef NRF_802154_DPPI_RADIO_END
188#define NRF_802154_DPPI_RADIO_END 6U
189#endif
190
199#ifndef NRF_802154_DPPI_RADIO_PHYEND
200#define NRF_802154_DPPI_RADIO_PHYEND 12U
201#endif
202
212#ifndef NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP
213#define NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP 10U
214#endif
215
225#ifndef NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN
226#define NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN 10U
227#endif
228
236#ifndef NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC
237#define NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC 8U
238#endif
239
245#ifndef NRF_802154_DPPI_RADIO_CCAIDLE
246#define NRF_802154_DPPI_RADIO_CCAIDLE 14U
247#endif
248
254#ifndef NRF_802154_DPPI_RADIO_CCABUSY
255#define NRF_802154_DPPI_RADIO_CCABUSY 3U
256#endif
257
263#ifndef NRF_802154_DPPI_RADIO_HW_TRIGGER
264#define NRF_802154_DPPI_RADIO_HW_TRIGGER 15U
265#endif
266
272#ifndef NRF_802154_DPPI_CHANNELS_USED_MASK
273#define NRF_802154_DPPI_CHANNELS_USED_MASK ( \
274 (1UL << NRF_802154_DPPI_RADIO_DISABLED) | \
275 (1UL << NRF_802154_DPPI_RADIO_READY) | \
276 (1UL << NRF_802154_DPPI_RADIO_ADDRESS) | \
277 (1UL << NRF_802154_DPPI_RADIO_END) | \
278 (1UL << NRF_802154_DPPI_RADIO_PHYEND) | \
279 (1UL << NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP) | \
280 (1UL << NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN) | \
281 (1UL << NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC) | \
282 (1UL << NRF_802154_DPPI_RADIO_CCAIDLE) | \
283 (1UL << NRF_802154_DPPI_RADIO_CCABUSY) | \
284 (1UL << NRF_802154_DPPI_RADIO_HW_TRIGGER) | \
285 NRF_802154_SL_PPI_CHANNELS_USED_MASK)
286#endif // NRF_802154_DPPI_CHANNELS_USED_MASK
287
293#ifndef NRF_802154_DPPI_GROUPS_USED_MASK
294#define NRF_802154_DPPI_GROUPS_USED_MASK 0UL
295#endif // NRF_802154_DPPI_GROUPS_USED_MASK
296
303#define NRF_802154_TIMER_INSTANCE_NO 022
304
305#define NRF_802154_ENCRYPTION_ACCELERATOR_CCM
306
307#ifdef __cplusplus
308}
309#endif
310
311#endif // NRF_802154_PERIPHERALS_NRF54H_H__