1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
// Copyright 2024, The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::derive::{Read, Write};
use crate::reader::{Read, Reader};
use crate::writer::{Write, Writer};
/// Status / Error codes, as defined in Part F
#[derive(Debug, PartialEq, Read, Write)]
#[allow(missing_docs)]
pub enum Status {
Success = 0x00,
UnknownHciCommand = 0x01,
UnknownConnectionIdentifier = 0x02,
HardwareFailure = 0x03,
PageTimeout = 0x04,
AuthenticationFailure = 0x05,
PinorKeyMissing = 0x06,
MemoryCapacityExceeded = 0x07,
ConnectionTimeout = 0x08,
ConnectionLimitExceeded = 0x09,
SynchronousConnectionLimitExceeded = 0x0A,
ConnectionAlreadyExists = 0x0B,
CommandDisallowed = 0x0C,
ConnectionRejectedLimitedResources = 0x0D,
ConnectionRejectedSecurityReasons = 0x0E,
ConnectionRejectedUnacceptableBdAddr = 0x0F,
ConnectionAcceptTimeoutExceeded = 0x10,
UnsupportedFeatureOrParameterValue = 0x11,
InvalidHciCommandParameters = 0x12,
RemoteUserTerminatedConnection = 0x13,
RemoteDeviceTerminatedConnectionLowResources = 0x14,
RemoteDeviceTerminatedConnectionPowerOff = 0x15,
ConnectionTerminatedByLocalHost = 0x16,
RepeatedAttempts = 0x17,
PairingNotAllowed = 0x18,
UnknownLmpPdu = 0x19,
UnsupportedRemoteFeature = 0x1A,
ScoOffsetRejected = 0x1B,
ScoIntervalRejected = 0x1C,
ScoAirModeRejected = 0x1D,
InvalidLmpParameters = 0x1E,
UnspecifiedError = 0x1F,
UnsupportedLmpParameterValue = 0x20,
RoleChangeNotAllowed = 0x21,
LmpResponseTimeout = 0x22,
LmpErrorTransactionCollision = 0x23,
LmpPduNotAllowed = 0x24,
EncryptionModeNotAcceptable = 0x25,
LinkKeyCannotBeChanged = 0x26,
RequestedQosNotSupported = 0x27,
InstantPassed = 0x28,
PairingWithUnitKeyNotSupported = 0x29,
DifferentTransactionCollision = 0x2A,
ReservedForUse2B = 0x2B,
QosUnacceptableParameter = 0x2C,
QosRejected = 0x2D,
ChannelClassificationNotSupported = 0x2E,
InsufficientSecurity = 0x2F,
ParameterOutOfMandatoryRange = 0x30,
ReservedForUse31 = 0x31,
RoleSwitchPending = 0x32,
ReservedForUse33 = 0x33,
ReservedSlotViolation = 0x34,
RoleSwitchFailed = 0x35,
ExtendedInquiryResponseTooLarge = 0x36,
SecureSimplePairingNotSupportedByHost = 0x37,
HostBusy = 0x38,
ConnectionRejectedNoSuitableChannelFound = 0x39,
ControllerBusy = 0x3A,
UnacceptableConnectionParameters = 0x3B,
AdvertisingTimeout = 0x3C,
ConnectionTerminatedMicFailure = 0x3D,
ConnectionFailedEstablished = 0x3E,
PreviouslyUsed3F = 0x3F,
CoarseClockAdjustmentRejected = 0x40,
Type0SubmapNotDefined = 0x41,
UnknownAdvertisingIdentifier = 0x42,
LimitReached = 0x43,
OperationCancelledByHost = 0x44,
PacketTooLong = 0x45,
TooLate = 0x46,
TooEarly = 0x47,
}
|