1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef BTM_ACL_DEF_H
17 #define BTM_ACL_DEF_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #define BTM_MAX_ACL 13
24 
25 #define ACL_TIMEOUT (15 * 1000)          // 15s
26 #define ACL_PASSIVE_TIMEOUT (60 * 1000)  // 60s
27 
28 #define LE_SCAN_INTERVAL_DEFAULT 96      // 96 * 0.625ms = 60ms
29 #define LE_SCAN_WINDOW_DEFAULT 48        // 48 * 0.625ms = 30ms
30 #define LE_SCAN_INTERVAL_FAST 96         // 96 * 0.625ms = 60ms
31 #define LE_SCAN_WINDOW_FAST 48           // 48 * 0.625ms = 30ms
32 #define LE_SCAN_INTERVAL_SLOW 2048       // 2048 * 0.625ms = 1.28s
33 #define LE_SCAN_WINDOW_SLOW 48           // 48 * 0.625ms = 30ms
34 #define LE_CONN_INTERVAL_MIN_DEFAULT 24  // 24 * 1.25ms = 30ms
35 #define LE_CONN_INTERVAL_MAX_DEFAULT 40  // 40 * 1.25ms = 50ms
36 #define LE_CONN_LATENCY_DEFAULT 0
37 #define LE_SUPERVISION_TIMEOUT_DEFAULT 500  // 50 10ms = 5s
38 #define LE_MINIMUM_CE_LENGTH_DEFAULT 0
39 #define LE_MAXIMUM_CE_LENGTH_DEFAULT 0
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif