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 ACL_MASTER_H_
19 #define ACL_MASTER_H_
20 
21 
22 
23 /**
24  * @brief      for user to initialize ACL connection master role.
25  * @param	   none
26  * @return     none
27  */
28 void 		blc_ll_initAclMasterRole_module(void);
29 
30 
31 
32 /**
33  * @brief      for user to initialize LinkLayer ACL connection RX FIFO.
34  * 			   all connection will share the FIFO.
35  * @param[in]  conn_interval - Set connection interval, unit 1.25ms.
36  * @return     status, 0x00:  succeed
37  * 					   other: failed
38  */
39 ble_sts_t	blc_ll_setAclMasterConnectionInterval(conn_inter_t conn_interval);
40 
41 
42 /**
43  * @brief      this function is used to change the ACL connection parameters.
44  * @param[in]  connHandle - Connection_Handle
45  * @param[in]  conn_min - the minimum allowed connection interval.
46  * @param[in]  conn_max - the maximum allowed connection interval.
47  * @param[in]  conn_latency - the maximum allowed connection latency.
48  * @param[in]  timeout - the link supervision timeout for the LE link.
49  * @param[in]  ce_min - information parameters providing the Controller with a hint about the expected minimum length of the connection events.
50  * @param[in]  ce_max - information parameters providing the Controller with a hint about the expected maximum length of the connection events.
51  * @return     status, 0x00:  succeed
52  * 			           other: failed
53  */
54 ble_sts_t 	blc_ll_updateConnection(u16 connHandle, conn_inter_t conn_min, conn_inter_t conn_max, u16 conn_latency, conn_tm_t timeout, u16 ce_min, u16 ce_max);
55 
56 
57 #endif /* ACL_MASTER_H_ */
58