1 /****************************************************************************** 2 * Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") 3 * All rights reserved. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 *****************************************************************************/ 18 #ifndef BIS_SYNC_H_ 19 #define BIS_SYNC_H_ 20 21 #define BIG_SYNC_PARAM_LENGTH (696) // Note: user can't modify this value,and this value must 4 byte aligned 22 23 /** 24 * @brief This function is used to initialize BIG Synchronize module. 25 * @param none 26 * @return none 27 */ 28 void blc_ll_initBisSynchronize_module(void); 29 30 /** 31 * @brief This function is used to initialize BIG Synchronize parameters. 32 * @param pointer to BIG Synchronize parameters buffer 33 * @return Number of BIG SYNC supported 34 */ 35 ble_sts_t blc_ll_initBigSyncParameters(u8 *pBigSyncPara, u8 bigSyncNum); 36 37 /** 38 * @brief 39 * @param none 40 * @return none 41 */ 42 ble_sts_t blc_hci_le_bigCreateSync(hci_le_bigCreateSyncParams_t *pCmdParam); 43 44 /** 45 * @brief 46 * @param none 47 * @return none 48 */ 49 ble_sts_t blc_hci_le_bigTerminateSync(u8 bigHandle, u8 *pRetParam); 50 51 /** 52 * @brief Used to enable private LegScan to get BIGINFO for BIG SYNC 53 * @param none 54 * @return none 55 */ 56 void blc_ll_enPrivLegScanForBigBync(void); 57 58 /** 59 * @brief Used to enable scan to get BIGINFO for BIG SYNC 60 * @param none 61 * @return none 62 */ 63 void blc_ll_enScanForBigBync(void); 64 65 /** 66 * @brief 67 * @param none 68 * @return none 69 */ 70 ble_sts_t blc_ll_bigCreateSync(u8 big_handle, u16 sync_handle, u8 enc, u8 broadcast_code[16], u8 mse, 71 u16 big_sync_timeout, u8 num_bis, u8 *bis); 72 73 /** 74 * @brief 75 * @param none 76 * @return none 77 */ 78 ble_sts_t blc_ll_bigTerminateSync(u8 bigHandle); 79 80 #endif /* BIS_SYNC_H_ */ 81