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 namespace test_vendor_lib { 21 namespace hci { 22 23 enum class EventCode : uint8_t { 24 INQUIRY_COMPLETE = 0x01, 25 INQUIRY_RESULT = 0x02, 26 CONNECTION_COMPLETE = 0x03, 27 CONNECTION_REQUEST = 0x04, 28 DISCONNECTION_COMPLETE = 0x05, 29 AUTHENTICATION_COMPLETE = 0x06, 30 REMOTE_NAME_REQUEST_COMPLETE = 0x07, 31 ENCRYPTION_CHANGE = 0x08, 32 CHANGE_CONNECTION_LINK_KEY_COMPLETE = 0x09, 33 MASTER_LINK_KEY_COMPLETE = 0x0A, 34 READ_REMOTE_SUPPORTED_FEATURES_COMPLETE = 0x0B, 35 READ_REMOTE_VERSION_INFORMATION_COMPLETE = 0x0C, 36 QOS_SETUP_COMPLETE = 0x0D, 37 COMMAND_COMPLETE = 0x0E, 38 COMMAND_STATUS = 0x0F, 39 HARDWARE_ERROR = 0x10, 40 FLUSH_OCCURED = 0x11, 41 ROLE_CHANGE = 0x12, 42 NUMBER_OF_COMPLETED_PACKETS = 0x13, 43 MODE_CHANGE = 0x14, 44 RETURN_LINK_KEYS = 0x15, 45 PIN_CODE_REQUEST = 0x16, 46 LINK_KEY_REQUEST = 0x17, 47 LINK_KEY_NOTIFICATION = 0x18, 48 LOOPBACK_COMMAND = 0x19, 49 DATA_BUFFER_OVERFLOW = 0x1A, 50 MAX_SLOTS_CHANGE = 0x1B, 51 READ_CLOCK_OFFSET_COMPLETE = 0x1C, 52 CONNECTION_PACKET_TYPE_CHANGE = 0x1D, 53 QOS_VIOLATION = 0x1E, 54 PAGE_SCAN_REPETITION_MODE_CHANGE = 0x20, 55 FLOW_SPECIFICATION_COMPLETE = 0x21, 56 INQUIRY_RESULT_WITH_RSSI = 0x22, 57 READ_REMOTE_EXTENDED_FEATURES_COMPLETE = 0x23, 58 SYNCHRONOUS_CONNECTION_COMPLETE = 0x2C, 59 SYNCHRONOUS_CONNECTION_CHANGED = 0x2D, 60 SNIFF_SUBRATING = 0x2E, 61 EXTENDED_INQUIRY_RESULT = 0x2F, 62 ENCRYPTION_KEY_REFRESH_COMPLETE = 0x30, 63 IO_CAPABILITY_REQUEST = 0x31, 64 IO_CAPABILITY_RESPONSE = 0x32, 65 USER_CONFIRMATION_REQUEST = 0x33, 66 USER_PASSKEY_REQUEST = 0x34, 67 REMOTE_OOB_DATA_REQUEST = 0x35, 68 SIMPLE_PAIRING_COMPLETE = 0x36, 69 LINK_SUPERVISION_TIMEOUT_CHANGED = 0x38, 70 ENHANCED_FLUSH_COMPLETE = 0x39, 71 USER_PASSKEY_NOTIFICATION = 0x3B, 72 KEYPRESS_NOTIFICATION = 0x3C, 73 REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 0x3D, 74 LE_META_EVENT = 0x3e, 75 PHYSICAL_LINK_COMPLETE = 0x40, 76 CHANNEL_SELECTED = 0x41, 77 DISCONNECTION_PHYSICAL_LINK_COMPLETE = 0x42, 78 PHYSICAL_LINK_LOSS_EARLY_WARNING = 0x43, 79 PHYSICAL_LINK_RECOVERY = 0x44, 80 LOGICAL_LINK_COMPLETE = 0x45, 81 DISCONNECTION_LOGICAL_LINK_COMPLETE = 0x46, 82 FLOW_SPEC_MODIFY_COMPLETE = 0x47, 83 NUMBER_OF_COMPLETED_DATA_BLOCKS = 0x48, 84 SHORT_RANGE_MODE_CHANGE_COMPLETE = 0x4C, 85 }; 86 } 87 } // namespace test_vendor_lib 88