1 // Copyright 2023 The Pigweed Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 //     https://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, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 #pragma once
16 #include <cstdint>
17 
18 // This file contains default values that are listed in the HCI specification
19 // for certain commands. These are informational and for testing purposes only;
20 // each higher-layer library defines its own defaults.
21 
22 namespace bt::hci_spec::defaults {
23 
24 // 50 ms
25 constexpr uint16_t kLEConnectionIntervalMin = 0x0028;
26 
27 // 70 ms
28 constexpr uint16_t kLEConnectionIntervalMax = 0x0038;
29 
30 // 60 ms
31 constexpr uint16_t kLEScanInterval = 0x0060;
32 
33 // 30 ms
34 constexpr uint16_t kLEScanWindow = 0x0030;
35 
36 // 420 ms
37 constexpr uint16_t kLESupervisionTimeout = 0x002A;
38 
39 }  // namespace bt::hci_spec::defaults
40