1 /* 2 * Copyright (c) 2016 Nordic Semiconductor ASA 3 * Copyright (c) 2016 Vinayak Kariappa Chettimada 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8 9 #include <zephyr/types.h> 10 #include <zephyr/ztest.h> 11 #include <zephyr/bluetooth/hci_types.h> 12 13 #include "hal/cpu.h" 14 #include "hal/ccm.h" 15 16 #include "util/util.h" 17 #include "util/mem.h" 18 #include "util/memq.h" 19 #include "pdu_df.h" 20 #include "lll/pdu_vendor.h" 21 #include "pdu.h" 22 23 #include "lll.h" 24 #include "lll/lll_adv_types.h" 25 #include "lll_adv.h" 26 #include "ull_adv_types.h" 27 #include "lll_sync.h" 28 #include "lll_sync_iso.h" 29 #include "ull_sync_types.h" 30 31 #define BT_PER_ADV_SYNC_MAX 1 32 33 static struct ll_sync_set ll_sync[BT_PER_ADV_SYNC_MAX]; 34 ull_sync_set_get(uint16_t handle)35struct ll_sync_set *ull_sync_set_get(uint16_t handle) 36 { 37 if (handle >= BT_PER_ADV_SYNC_MAX) { 38 return NULL; 39 } 40 41 return &ll_sync[handle]; 42 } 43 ull_sync_is_enabled_get(uint16_t handle)44struct ll_sync_set *ull_sync_is_enabled_get(uint16_t handle) 45 { 46 struct ll_sync_set *sync; 47 48 sync = ull_sync_set_get(handle); 49 if (!sync) { 50 return NULL; 51 } 52 53 return sync; 54 } 55 ull_sync_handle_get(struct ll_sync_set * sync)56uint16_t ull_sync_handle_get(struct ll_sync_set *sync) 57 { 58 return 0; 59 } 60