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 Status : uint8_t { 24 SUCCESS = 0, 25 UNKNOWN_COMMAND = 1, 26 UNKNOWN_CONNECTION = 2, 27 HARDWARE_FAILURE = 3, 28 PAGE_TIMEOUT = 4, 29 AUTHENTICATION_FAILURE = 5, 30 PIN_OR_KEY_MISSING = 6, 31 MEMORY_CAPACITY_EXCEEDED = 7, 32 CONNECTION_TIMEOUT = 8, 33 COMMAND_DISALLOWED = 0x0c, 34 CONNECTION_REJECTED_LIMITED_RESOURCES = 0x0d, 35 CONNECTION_REJECTED_SECURITY = 0x0e, 36 CONNECTION_REJECTED_UNACCEPTABLE_BD_ADDR = 0x0f, 37 INVALID_HCI_COMMAND_PARAMETERS = 0x12, 38 REMOTE_USER_TERMINATED_CONNECTION = 0x13, 39 CONNECTION_TERMINATED_BY_LOCAL_HOST = 0x16, 40 UNSPECIFIED_ERROR = 0x1f, 41 ENCRYPTION_MODE_NOT_ACCEPTABLE = 0x25, 42 HOST_BUSY_PAIRING = 0x38, 43 CONTROLLER_BUSY = 0x3a, 44 }; 45 } 46 } // namespace test_vendor_lib 47