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 CIS_MASTER_H_ 19 #define CIS_MASTER_H_ 20 21 #define CIG_MST_PARAM_LEN (436) // Note: user can't modify this value,and this value must 4 byte aligned 22 #define CIG_ID_0 0 23 #define CIG_ID_1 1 24 #define CIG_ID_2 2 25 #define CIG_ID_3 3 26 #define CIG_ID_INVALID 0xFF 27 28 /** 29 * @brief for user to initialize CIS master module. 30 * @param none 31 * @return none 32 */ 33 void blc_ll_initCisMaster_module(void); 34 35 /** 36 * @brief 37 * @param none 38 * @return none 39 */ 40 void blc_ll_initCisMasterParameters(u8 *pCigPara, int cig_mst_num); 41 42 /** 43 * @brief 44 * @param 45 * @param 46 * @return ble_sts_t 47 */ 48 ble_sts_t blc_hci_le_setCigParams(hci_le_setCigParam_cmdParam_t *pCmdParam, hci_le_setCigParam_retParam_t *pRetParam); 49 50 /** 51 * @brief 52 * @param 53 * @param 54 * @return ble_sts_t 55 */ 56 ble_sts_t blc_hci_le_setCigParamsTest(hci_le_setCigParamTest_cmdParam_t *pCmdParam, 57 hci_le_setCigParam_retParam_t *pRetParam); 58 59 /** 60 * @brief 61 * @param 62 * @param 63 * @return ble_sts_t 64 */ 65 ble_sts_t blc_hci_le_removeCig(u8 cigId, u8 *pRetParamm); 66 67 /** 68 * @brief 69 * @param 70 * @param 71 * @return ble_sts_t 72 */ 73 ble_sts_t blc_hci_le_createCis(hci_le_CreateCisParams_t *pCisPara); 74 75 #endif 76