1 /* 2 * Copyright (c) 2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Note: This header is private to the RADIO HW model 7 */ 8 #ifndef _NRF_RADIO_UTILS_H 9 #define _NRF_RADIO_UTILS_H 10 11 #include <stdint.h> 12 #include "bs_pc_2G4_types.h" 13 14 #ifdef __cplusplus 15 extern "C"{ 16 #endif 17 18 void nrfra_check_packet_conf(void); 19 uint32_t nrfra_RSSI_value_to_modem_format(double rssi_value); 20 uint8_t nrfra_dBm_to_modem_LQIformat(double rssi_value); 21 int nrfra_is_HW_TIFS_enabled(); 22 void nrfra_prep_rx_request(p2G4_rxv2_t *ongoing_rx, p2G4_address_t *rx_addresses); 23 void nrfra_prep_tx_request(p2G4_txv2_t *ongoing_tx, uint packet_size, bs_time_t packet_duration); 24 void nrfra_prep_cca_request(p2G4_cca_t *cca_req, bool CCA_not_ED); 25 26 uint nrfra_tx_copy_payload(uint8_t *tx_buf); 27 uint nrfra_get_payload_length(uint8_t *buf); 28 uint nrfra_get_crc_length(); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif 35