ELEC-C7222
Libraries for ELEC C7222 Course Work
Loading...
Searching...
No Matches
ble_error.hpp
Go to the documentation of this file.
1
5#ifndef ELEC_C7222_BLE_ERROR_H_
6#define ELEC_C7222_BLE_ERROR_H_
7
8#include <cstdint>
9#include <ostream>
10
11namespace c7222 {
12
19enum class BleError : int {
20
87
99
119
128
133
142
149
174
185
193
203
208};
209
213std::ostream& operator<<(std::ostream& os, BleError error);
214
215} // namespace c7222
216
217#endif // ELEC_C7222_BLE_ERROR_H_
C7222 course abstractions namespace.
Definition ble.hpp:20
BleError
BLE error codes used across HCI/L2CAP/ATT/GATT and BTstack helpers.
Definition ble_error.hpp:19
@ kCoarseClockAdjustmentRejectedButWillTryToAdjustUsingClockDragging
@ kParameterOutOfMandatoryRange
@ kL2capConnectionResponseResultRefusedSecurity
@ kAttErrorInsufficientAuthentication
ATT Error: Insufficient Authentication (0x05 from spec).
@ kUnsupportedRemoteFeatureUnsupportedLmpFeature
@ kL2capConnectionResponseResultPending
@ kAttErrorInsufficientEncryption
ATT Error: Insufficient Encryption (0x0F from spec).
@ kAttErrorReadNotPermitted
ATT Error: Read Not Permitted (0x02 from spec).
@ kSdpHandleAlreadyRegistered
SDP errors.
@ kGattClientCharacteristicNotificationNotSupported
@ kUnsupportedFeatureOrParameterValue
@ kBnepServiceAlreadyRegistered
BNEP errors.
@ kLmpErrorTransactionCollision
@ kBtstackConnectionToBtdaemonFailed
BTstack framework errors.
@ kConnectionRejectedDueToUnacceptableBdAddr
@ kExtendedInquiryResponseTooLarge
@ kL2capConnectionResponseResultSuccessful
@ kUnacceptableConnectionParameters
@ kL2capCommandRejectReasonInvalidCidInRequest
@ kAttErrorInvalidAttrValueLength
ATT Error: Invalid Attribute Value Length (0x0D from spec).
@ kRfcommChannelAlreadyRegistered
@ kL2capConnectionResponseResultRefusedPsm
@ kObexUnknownError
OBEX errors.
@ kEncryptionModeNotAcceptable
@ kL2capDataLenExceedsRemoteMtu
@ kL2capCommandRejectReasonSignalingMtuExceeded
@ kConnectionTerminatedDueToMicFailure
@ kBtstackActivationFailedUnknown
@ kAttErrorWriteNotPermitted
ATT Error: Write Not Permitted (0x03 from spec).
@ kAttHandleValueIndicationDisconnect
@ kL2capConnectionBasebandDisconnect
@ kConnectionTerminatedByLocalHost
@ kRemoteDeviceTerminatedConnectionDueToPowerOff
@ kConnectionAcceptTimeoutExceeded
@ kChannelClassificationNotSupported
@ kConnectionFailedToBeEstablished
@ kConnectionRejectedDueToNoSuitableChannelFound
@ kAttHandleValueIndicationTimeout
@ kConnectionRejectedDueToLimitedResources
@ kSecureSimplePairingNotSupportedByHost
@ kRemoteUserTerminatedConnection
@ kL2capConnectionResponseResultErtmNotSupported
@ kSuccess
Generic HCI status and controller errors.
@ kAttHandleValueIndicationInProgress
ATT indication flow control errors.
@ kL2capConnectionResponseResultRefusedResources
@ kUnsupportedLmpParameterValueUnsupportedLlParameterValue
@ kUnknownConnectionIdentifier
@ kAttErrorInsufficientAuthorization
ATT Error: Insufficient Authorization (0x08 from spec).
@ kDifferentTransactionCollision
@ kGattClientNotConnected
GATT client errors.
@ kConnectionRejectedDueToSecurityReasons
@ kL2capConnectionResponseResultRtxTimeout
@ kGattClientCharacteristicIndicationNotSupported
@ kGattClientDifferentContextForAddressAlreadyExists
@ kBtstackActivationFailedSystemBluetooth
@ kL2capConnectionResponseUnknownError
@ kL2capServiceAlreadyRegistered
@ kPairingWithUnitKeyNotSupported
@ kInvalidLmpParametersInvalidLlParameters
@ kLmpResponseTimeoutLlResponseTimeout
@ kHfpRemoteRejectsAudioConnection
HFP errors.
@ kRfcommMultiplexerStopped
RFCOMM errors.
@ kBtstackActivationPoweronFailed
@ kMeshErrorAppkeyIndexInvalid
Mesh errors.
@ kRemoteDeviceTerminatedConnectionDueToLowResources
@ kInvalidHciCommandParameters
@ kSynchronousConnectionLimitToADeviceExceeded
@ kL2capCommandRejectReasonCommandNotUnderstood
L2CAP errors and results.
std::ostream & operator<<(std::ostream &os, const BleAddress &addr)