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 INIT_H_ 19 #define INIT_H_ 20 21 22 23 /** 24 * @brief This function is used to cancel the HCI_LE_Create_Connection or HCI_LE_Extended_Create_Connection commands. 25 * This command shall only be issued after the HCI_LE_Create_Connection or HCI_LE_Extended_Create_Connection commands have been issued. 26 * @param none 27 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 28 */ 29 ble_sts_t blc_ll_createConnectionCancel (void); 30 31 32 /** 33 * @brief This function is used to set the timeout of ACL connection establishment 34 * @param[in] timeout_ms - timeout of ACL connection establishment, unit: mS. If not set, default value is 4000 mS 35 * @return Status - 0x00: command succeeded; 0x01-0xFF: command failed 36 */ 37 ble_sts_t blc_ll_setCreateConnectionTimeout (u32 timeout_ms); 38 39 40 41 42 #endif /* INIT_H_ */ 43