nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_trx_ppi_api.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020, 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_TRX_PPI_H_
41#define NRF_802154_TRX_PPI_H_
42
43#include <stdbool.h>
44#include <stdint.h>
45
46#include "hal/nrf_egu.h"
47#include "hal/nrf_radio.h"
48#include "nrf_802154_trx.h"
49
59
64
113void nrf_802154_trx_ppi_for_ramp_up_set(nrf_radio_task_t ramp_up_task,
115 bool start_timer);
116
124 bool cca,
126
131
142
149void nrf_802154_trx_ppi_for_ramp_up_clear(nrf_radio_task_t ramp_up_task, bool start_timer);
150
159
164
172
182
198
203
208
214
219
224
231
238
239#endif /* NRF_802154_TRX_PPI_H_ */
nrf_802154_trx_ramp_up_trigger_mode_t
Radio ramp up procedure triggering modes.
Definition nrf_802154_trx.h:91
void nrf_802154_trx_ppi_for_ramp_up_reconfigure(void)
Reconfigure (D)PPIs for the next steps in receiving or transmitting.
void nrf_802154_trx_ppi_for_txframe_ramp_up_set(bool cca, nrf_802154_trx_ramp_up_trigger_mode_t trigg_mode)
Set (D)PPIs to connect trigger event with tasks needed to ramp up for a transmission of a frame.
void nrf_802154_trx_ppi_for_txframe_ramp_up_clear(bool cca)
Clear (D)PPIs that are configured for ramp up procedure for a transmission of a frame.
void nrf_802154_trx_ppi_for_extra_cca_attempts_set(void)
Set (D)PPIs to perform CCA procedures back-to-back.
uint8_t nrf_802154_trx_ppi_for_ramp_up_channel_id_get(void)
Get (D)PPI channel used to trigger ramp up procedure start.
void nrf_802154_trx_ppi_for_ramp_up_clear(nrf_radio_task_t ramp_up_task, bool start_timer)
Clear (D)PPIs that are configured for ramp up procedure.
void nrf_802154_trx_ppi_for_ramp_up_propagation_delay_wait(void)
Wait until PPIs configured to ramp up radio are propagated through PPI system.
void nrf_802154_trx_ppi_for_disable(void)
Clears (D)PPI connections required for TRX operation.
void nrf_802154_trx_ppi_for_ack_tx_set(void)
Set PPIs to connect TIMER event with radio TXEN task, needed to ramp up for ACK TX.
uint32_t nrf_802154_trx_ppi_group_for_abort_get(void)
Get PPI group id used for disabling radio operations by an external event.
void nrf_802154_trx_ppi_for_fem_clear(void)
Deconfigure PPIs needed for external LNA or PA. See nrf_802154_trx_ppi_for_fem_set.
void nrf_802154_trx_ppi_for_radio_sync_set(nrf_egu_task_t task)
Configure PPIs needed to trigger IRQ from RADIO event SYNC.
void nrf_802154_trx_ppi_for_ramp_up_set(nrf_radio_task_t ramp_up_task, nrf_802154_trx_ramp_up_trigger_mode_t trigg_mode, bool start_timer)
Set PPIs to connect trigger event with tasks needed to ramp up.
void nrf_802154_trx_ppi_for_extra_cca_attempts_clear(void)
Clear (D)PPIs to perform CCA procedures back-to-back.
void nrf_802154_trx_ppi_for_radio_sync_clear(nrf_egu_task_t task)
Unconfigure PPIs needed to trigger IRQ from RADIO event SYNC.
void nrf_802154_trx_ppi_for_enable(void)
Module that contains PPI management functions for the nRF IEEE 802.15.4 radio driver.
void nrf_802154_trx_ppi_for_ack_tx_clear(void)
Clear PPIs to connect TIMER event with radio TXEN task, needed to ramp up for ACK TX....
void nrf_802154_trx_ppi_for_fem_set(void)
Configure PPIs needed for external LNA or PA. Radio DISABLED event will be connected to timer START t...
bool nrf_802154_trx_ppi_for_ramp_up_was_triggered(void)
Detect if PPIs configured to start radio operation were triggered.