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 LeSubEventCode : uint8_t { 24 CONNECTION_COMPLETE = 0x01, 25 ADVERTISING_REPORT = 0x02, 26 CONNECTION_UPDATE_COMPLETE = 0x03, 27 READ_REMOTE_FEATURES_COMPLETE = 0x04, 28 LONG_TERM_KEY_REQUEST = 0x05, 29 REMOTE_CONNECTION_PARAMETER_REQUEST = 0x06, 30 DATA_LENGTH_CHANGE = 0x07, 31 ENHANCED_CONNECTION_COMPLETE = 0x0a, 32 DIRECTED_ADVERTISING_REPORT = 0x0b, 33 PHY_UPDATE_COMPLETE = 0x0c, 34 EXTENDED_ADVERTISING_REPORT = 0x0D, 35 PERIODIC_ADVERTISING_SYNC_ESTABLISHED = 0x0E, 36 PERIODIC_ADVERTISING_REPORT = 0x0F, 37 PERIODIC_ADVERTISING_SYNC_LOST = 0x10, 38 SCAN_TIMEOUT = 0x11, 39 ADVERTISING_SET_TERMINATED = 0x12, 40 SCAN_REQUEST_RECEIVED = 0x13, 41 }; 42 } 43 } // namespace test_vendor_lib 44