nrfxlib API 0.1.0
Loading...
Searching...
No Matches
nrf_802154_co.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
41#include "nrf_802154_callouts.h"
42#include "nrf_802154_types.h"
43
47void nrf_802154_co_cca_done(bool channel_free);
48
53
58
63
67void nrf_802154_co_tx_ack_started(const uint8_t * p_data);
68
69#if NRF_802154_USE_RAW_API || defined(DOXYGEN)
70#if !NRF_802154_SERIALIZATION_HOST || defined(DOXYGEN)
71
75void nrf_802154_co_received_raw(uint8_t * p_data, int8_t power, uint8_t lqi);
76
77#endif // !NRF_802154_SERIALIZATION_HOST
78#endif // NRF_802154_USE_RAW_API
79
80#if !NRF_802154_USE_RAW_API || defined(DOXYGEN)
81#if !NRF_802154_SERIALIZATION_HOST || defined(DOXYGEN)
82
86void nrf_802154_co_received(uint8_t * p_data, uint8_t length, int8_t power, uint8_t lqi);
87
88#endif // !NRF_802154_SERIALIZATION_HOST
89#endif // !NRF_802154_USE_RAW_API
90
95
96#if NRF_802154_USE_RAW_API || defined(DOXYGEN)
97
101void nrf_802154_co_transmitted_raw(uint8_t * p_frame,
102 const nrf_802154_transmit_done_metadata_t * p_metadata);
103
104#endif // NRF_802154_USE_RAW_API
105
106#if !NRF_802154_USE_RAW_API || defined(DOXYGEN)
107
111void nrf_802154_co_transmitted(uint8_t * p_frame,
112 const nrf_802154_transmit_done_metadata_t * p_metadata);
113
114#endif // !NRF_802154_USE_RAW_API
115
119void nrf_802154_co_transmit_failed(uint8_t * p_frame,
121 const nrf_802154_transmit_done_metadata_t * p_metadata);
122
123#if !NRF_802154_SERIALIZATION_HOST || defined(DOXYGEN)
124
128void nrf_802154_co_tx_started(const uint8_t * p_frame);
129
130#endif // !NRF_802154_SERIALIZATION_HOST
uint8_t nrf_802154_ed_error_t
Possible errors during the energy detection.
Definition: nrf_802154_types.h:116
uint8_t nrf_802154_cca_error_t
Possible errors during the CCA procedure.
Definition: nrf_802154_types.h:123
uint8_t nrf_802154_rx_error_t
Possible errors during the frame reception.
Definition: nrf_802154_types.h:98
uint8_t nrf_802154_tx_error_t
Errors reported during the frame transmission.
Definition: nrf_802154_types.h:82
Provides function prototypes required by nRF 802.15.4 Radio Driver.
void nrf_802154_co_received_raw(uint8_t *p_data, int8_t power, uint8_t lqi)
Calls nrf_802154_received_raw.
void nrf_802154_co_receive_failed(nrf_802154_rx_error_t error, uint32_t id)
Calls nrf_802154_receive_failed.
void nrf_802154_co_cca_failed(nrf_802154_cca_error_t error)
Calls nrf_802154_cca_failed.
void nrf_802154_co_energy_detected(const nrf_802154_energy_detected_t *p_result)
Calls nrf_802154_energy_detected.
void nrf_802154_co_transmit_failed(uint8_t *p_frame, nrf_802154_tx_error_t error, const nrf_802154_transmit_done_metadata_t *p_metadata)
Calls nrf_802154_transmit_failed.
void nrf_802154_co_tx_ack_started(const uint8_t *p_data)
Calls nrf_802154_tx_ack_started.
void nrf_802154_co_energy_detection_failed(nrf_802154_ed_error_t error)
Calls nrf_802154_energy_detection_failed.
void nrf_802154_co_tx_started(const uint8_t *p_frame)
Calls nrf_802154_tx_started.
void nrf_802154_co_received(uint8_t *p_data, uint8_t length, int8_t power, uint8_t lqi)
Calls nrf_802154_received.
void nrf_802154_co_transmitted_raw(uint8_t *p_frame, const nrf_802154_transmit_done_metadata_t *p_metadata)
Calls nrf_802154_transmitted_raw.
void nrf_802154_co_transmitted(uint8_t *p_frame, const nrf_802154_transmit_done_metadata_t *p_metadata)
Calls nrf_802154_transmitted.
void nrf_802154_co_cca_done(bool channel_free)
Calls nrf_802154_cca_done.
Structure that holds results of energy detection procedure.
Definition: nrf_802154_types.h:505
Structure that holds transmission result metadata.
Definition: nrf_802154_types.h:473