1 /*
2  * Copyright 2018 Oticon A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef P2G4_COM_H
7 #define P2G4_COM_H
8 
9 #include "bs_pc_2G4_types.h"
10 #include <stddef.h>
11 
12 #ifdef __cplusplus
13 extern "C"{
14 #endif
15 
16 void p2G4_phy_initcom(const char* s, const char* p, uint n);
17 void p2G4_phy_disconnect_all_devices();
18 void p2G4_phy_resp_rx(uint d, p2G4_rx_done_t* rx_d);
19 void p2G4_phy_resp_rxv2(uint d, p2G4_rxv2_done_t* rx_done_s);
20 void p2G4_phy_resp_RSSI(uint d, p2G4_rssi_done_t* RSSI_d);
21 void p2G4_phy_resp_IMRSSI(uint d, p2G4_rssi_done_t* RSSI_done_s);
22 void p2G4_phy_resp_tx(uint d, p2G4_tx_done_t * tx_d);
23 void p2G4_phy_resp_rx_addr_found(uint d, p2G4_rx_done_t* rx_d, uint8_t *p);
24 void p2G4_phy_resp_rxv2_addr_found(uint d, p2G4_rxv2_done_t* rx_done_s, uint8_t *packet);
25 void p2G4_phy_resp_cca(uint d, p2G4_cca_done_t *sc_done_s);
26 void p2G4_phy_resp_wait(uint d);
27 void p2G4_phy_get(uint d, void* b, size_t size);
28 int p2G4_phy_get_new_abort(uint d, p2G4_abort_t* abort);
29 int p2G4_phy_get_abort_struct(uint d, p2G4_abort_t* abort_s);
30 pc_header_t p2G4_get_next_request(uint d);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
37