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 #include <cstdint> 19 20 #include "include/hci/event_code.h" 21 #include "include/hci/le_sub_event_code.h" 22 #include "include/hci/op_code.h" 23 #include "include/hci/status.h" 24 25 namespace test_vendor_lib { 26 namespace hci { 27 28 enum class PacketType : uint8_t { 29 UNKNOWN = 0, 30 COMMAND = 1, 31 ACL = 2, 32 SCO = 3, 33 EVENT = 4, 34 }; 35 36 enum class LinkType : uint8_t { 37 SCO = 0x00, 38 ACL = 0x01, 39 ESCO = 0x02, 40 }; 41 42 enum class LoopbackMode : uint8_t { 43 NO = 0x00, 44 LOCAL = 0x01, 45 REMOTE = 0x02, 46 }; 47 48 /* HCI, PAL, and LMP Version numbers are the same */ 49 enum class Version : uint8_t { 50 V1_0 = 0, 51 V1_1 = 1, 52 V1_2 = 2, 53 V2_0 = 3, 54 V2_1 = 4, 55 V3_0 = 5, 56 V4_0 = 6, 57 V4_1 = 7, 58 V4_2 = 8, 59 V5_0 = 9, 60 }; 61 62 } // namespace hci 63 } // namespace test_vendor_lib 64