nrfxlib API 2.8.99
Loading...
Searching...
No Matches
nrf_gzll_constants.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef NRF_GZLL_CONSTANTS_H__
15#define NRF_GZLL_CONSTANTS_H__
16
17#include "nrf_gzll_glue.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
30/*****************************************************************************/
33/*****************************************************************************/
34#define NRF_GZLL_SWI_IRQn nrf_gzll_swi_irqn
35#define NRF_GZLL_SWI_IRQ_HANDLER nrf_gzll_swi_irq_handler
36#define NRF_GZLL_TIMER nrf_gzll_timer
37#define NRF_GZLL_TIMER_IRQn nrf_gzll_timer_irqn
38#define NRF_GZLL_TIMER_IRQ_HANDLER nrf_gzll_timer_irq_handler
39
40// In addition, Gazell uses the radio peripheral and radio interrupts.
41
42/*
43 * PPI configuration
44 */
45#if defined(PPI_PRESENT) || defined(DOXYGEN)
46#define NRF_GZLL_PPI_EEP0 (*nrf_gzll_ppi_eep0)
47#define NRF_GZLL_PPI_TEP0 (*nrf_gzll_ppi_tep0)
48#define NRF_GZLL_PPI_EEP1 (*nrf_gzll_ppi_eep1)
49#define NRF_GZLL_PPI_TEP1 (*nrf_gzll_ppi_tep1)
50#define NRF_GZLL_PPI_EEP2 (*nrf_gzll_ppi_eep2)
51#define NRF_GZLL_PPI_TEP2 (*nrf_gzll_ppi_tep2)
52
53#define NRF_GZLL_PPI_CHEN_MSK_0_AND_1 (nrf_gzll_ppi_chen_msk_0_and_1)
54#define NRF_GZLL_PPI_CHEN_MSK_2 (nrf_gzll_ppi_chen_msk_2)
55#endif
56
57#if defined(DPPI_PRESENT) || defined(DOXYGEN)
58#define NRF_GZLL_DPPI_CH0 (nrf_gzll_dppi_ch0)
59#define NRF_GZLL_DPPI_CH1 (nrf_gzll_dppi_ch1)
60#define NRF_GZLL_DPPI_CH2 (nrf_gzll_dppi_ch2)
61
62#define NRF_GZLL_DPPI_CHEN_MSK_0_AND_1 (nrf_gzll_dppi_chen_msk_0_and_1)
63#define NRF_GZLL_DPPI_CHEN_MSK_2 (nrf_gzll_dppi_chen_msk_2)
64#endif
67/*****************************************************************************/
70/*****************************************************************************/
71#define NRF_GZLL_CONST_PIPE_COUNT 8
72#define NRF_GZLL_CONST_FIFO_LENGTH 3
73#define NRF_GZLL_CONST_MAX_TOTAL_PACKETS 6
74#define NRF_GZLL_CONST_MAX_PAYLOAD_LENGTH 32
75#define NRF_GZLL_CONST_CALLBACK_QUEUE_LENGTH 10
78/*****************************************************************************/
81/*****************************************************************************/
82#define NRF_GZLL_DEFAULT_TX_POWER NRF_GZLL_TX_POWER_0_DBM
83#define NRF_GZLL_DEFAULT_DATARATE NRF_GZLL_DATARATE_2MBIT
84
85#define NRF_GZLL_DEFAULT_CHANNEL_TABLE {4, 25, 42, 63, 77}
86#define NRF_GZLL_DEFAULT_CHANNEL_TABLE_SIZE 5
87#define NRF_GZLL_CONST_MAX_CHANNEL_TABLE_SIZE 16
90/*****************************************************************************/
93/*****************************************************************************/
94
95/*
96Corresponds to Legacy nRFgo SDK Gazell config:
97#define GZLL_DEFAULT_ADDRESS_PIPE0 {0x01, 0x04, 0x07, 0x0A, 0x0D}
98#define GZLL_DEFAULT_ADDRESS_PIPE1 {0x02, 0x05, 0x08, 0x0B, 0x0E}
99#define GZLL_DEFAULT_ADDRESS_PIPE2 3
100#define GZLL_DEFAULT_ADDRESS_PIPE3 4
101#define GZLL_DEFAULT_ADDRESS_PIPE4 5
102#define GZLL_DEFAULT_ADDRESS_PIPE5 6
103*/
104
105#define NRF_GZLL_DEFAULT_FULL_ADDRESS_PIPE0 {0x01, 0x04, 0x07, 0x0A, 0x0D}
106#define NRF_GZLL_DEFAULT_BASE_ADDRESS_0 0x0D0A0704
107#define NRF_GZLL_DEFAULT_BASE_ADDRESS_1 0x0E0B0805
108#define NRF_GZLL_DEFAULT_PREFIX_BYTE_0 1
109#define NRF_GZLL_DEFAULT_PREFIX_BYTE_1 2
110#define NRF_GZLL_DEFAULT_PREFIX_BYTE_2 3
111#define NRF_GZLL_DEFAULT_PREFIX_BYTE_3 4
112#define NRF_GZLL_DEFAULT_PREFIX_BYTE_4 5
113#define NRF_GZLL_DEFAULT_PREFIX_BYTE_5 6
114#define NRF_GZLL_DEFAULT_PREFIX_BYTE_6 7
115#define NRF_GZLL_DEFAULT_PREFIX_BYTE_7 8
116#define NRF_GZLL_DEFAULT_BASE_ADDRESS_LENGTH NRF_GZLL_BASE_ADDRESS_LENGTH_4B
117#define NRF_GZLL_DEFAULT_RX_PIPES_ENABLED 0x000000FF
120/*****************************************************************************/
123/*****************************************************************************/
124#define NRF_GZLL_DEFAULT_TIMESLOT_PERIOD 600
125#define NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL 2
126#define NRF_GZLL_DEFAULT_DEVICE_CHANNEL_SELECTION_POLICY NRF_GZLL_DEVICE_CHANNEL_SELECTION_POLICY_USE_SUCCESSFUL
127#define NRF_GZLL_DEFAULT_MAX_TX_ATTEMPTS 0
128#define NRF_GZLL_DEFAULT_XOSC_CTL NRF_GZLL_XOSC_CTL_AUTO
129#define NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL_WHEN_DEVICE_OUT_OF_SYNC 15
130#define NRF_GZLL_DEFAULT_SYNC_LIFETIME (3 * NRF_GZLL_DEFAULT_CHANNEL_TABLE_SIZE * NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL)
133#define NRF_GZLL_PA_LNA_MAX_RAMP_UP_TIME 129
134#define NRF_GZLL_PA_LNA_PPI_CHANNELS_NUM 4
135
138#ifdef __cplusplus
139}
140#endif
141
142#endif
Gazell Link Layer glue.