1 /* 2 * Copyright (c) 2017 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 /** 7 * Very thin layer which hides a bit the low level libPhyCom IF 8 * and handles the time differences 9 */ 10 #ifndef _NRF_HWLOWL_H 11 #define _NRF_HWLOWL_H 12 13 #include "bs_types.h" 14 15 #ifdef __cplusplus 16 extern "C"{ 17 #endif 18 19 int hwll_connect_to_phy(unsigned int d, const char* s, const char* p); 20 void hwll_disconnect_phy(); 21 void hwll_disconnect_phy_and_exit(); 22 void hwll_terminate_simulation(); 23 void hwll_set_nosim(bool new_nosim); 24 25 bs_time_t hwll_phy_time_from_dev(bs_time_t d_t); 26 bs_time_t hwll_dev_time_from_phy(bs_time_t phy_t); 27 28 void hwll_sync_time_with_phy(bs_time_t d_t); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif 35