1 /*
2  * Copyright 2018 Oticon A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef P2G4_CHANNEL_AND_MODEM_H
7 #define P2G4_CHANNEL_AND_MODEM_H
8 
9 #include "bs_types.h"
10 #include "bs_pc_2G4.h"
11 #include "p2G4_pending_tx_rx_list.h"
12 
13 #ifdef __cplusplus
14 extern "C"{
15 #endif
16 
17 void channel_and_modem_init(uint cha_argc, char** cha_argv, const char* cha_name, uint *mo_argc, char*** mo_argv, char** mo_name, uint n_devs);
18 void channel_and_modem_delete();
19 uint chm_bit_errors(tx_l_c_t *tx_l, uint tx_nbr, uint rx_nbr, rx_status_t *rx_st , bs_time_t current_time, uint n_calcs);
20 uint chm_is_packet_synched(tx_l_c_t *tx_l, uint tx_nbr, uint rx_nbr, rx_status_t *rx_st, bs_time_t current_time);
21 void chm_RSSImeas(tx_l_c_t *tx_l, p2G4_power_t rx_antenna_gain, p2G4_radioparams_t *rx_radio_params , p2G4_rssi_done_t* RSSI_meas, uint rx_nbr, bs_time_t current_time);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
28