• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 namespace test_vendor_lib {
20 class Link {
21  public:
22   static constexpr size_t kSizeBytes = sizeof(uint32_t);
23   static constexpr size_t kTypeBytes = sizeof(uint8_t);
24 
25   enum class PacketType : uint8_t {
26     UNKNOWN,
27     ACL,
28     COMMAND,
29     DISCONNECT,
30     ENCRYPT_CONNECTION,
31     ENCRYPT_CONNECTION_RESPONSE,
32     EVENT,
33     INQUIRY,
34     INQUIRY_RESPONSE,
35     IO_CAPABILITY_REQUEST,
36     IO_CAPABILITY_RESPONSE,
37     IO_CAPABILITY_NEGATIVE_RESPONSE,
38     LE_ADVERTISEMENT,
39     LE_SCAN,
40     LE_SCAN_RESPONSE,
41     PAGE,
42     PAGE_RESPONSE,
43     RESPONSE,
44     SCO,
45   };
46 };
47 }  // namespace test_vendor_lib
48