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