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