mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
btstack_defines: fix spelling ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS, re-enumberate OBEX errors, markup Bluetooth and BTstack error codes
This commit is contained in:
parent
47430bed98
commit
f193890f13
@ -131,10 +131,10 @@ typedef enum {
|
||||
*/
|
||||
|
||||
//
|
||||
// Error Codes
|
||||
// Error Codes rfom Bluetooth Core Specification
|
||||
//
|
||||
|
||||
// from Bluetooth Core Specification
|
||||
/* ENUM_START: BLUETOOTH_ERROR_CODE */
|
||||
#define ERROR_CODE_SUCCESS 0x00
|
||||
#define ERROR_CODE_UNKNOWN_HCI_COMMAND 0x01
|
||||
#define ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER 0x02
|
||||
@ -200,6 +200,7 @@ typedef enum {
|
||||
#define ERROR_CODE_CONNECTION_FAILED_TO_BE_ESTABLISHED 0x3E
|
||||
#define ERROR_CODE_MAC_CONNECTION_FAILED 0x3F
|
||||
#define ERROR_CODE_COARSE_CLOCK_ADJUSTMENT_REJECTED_BUT_WILL_TRY_TO_ADJUST_USING_CLOCK_DRAGGING 0x40
|
||||
/* ENUM_END */
|
||||
|
||||
// HCI roles
|
||||
#define HCI_ROLE_MASTER 0
|
||||
|
@ -116,8 +116,9 @@ typedef uint8_t sm_key_t[16];
|
||||
|
||||
|
||||
// ERRORS
|
||||
|
||||
// last error code in 2.1 is 0x38 - we start with 0x50 for BTstack errors
|
||||
|
||||
/* ENUM_START: BTSTACK_ERROR_CODE */
|
||||
#define BTSTACK_CONNECTION_TO_BTDAEMON_FAILED 0x50
|
||||
#define BTSTACK_ACTIVATION_FAILED_SYSTEM_BLUETOOTH 0x51
|
||||
#define BTSTACK_ACTIVATION_POWERON_FAILED 0x52
|
||||
@ -156,7 +157,7 @@ typedef uint8_t sm_key_t[16];
|
||||
#define SDP_HANDLE_INVALID 0x83
|
||||
#define SDP_QUERY_BUSY 0x84
|
||||
|
||||
#define ATT_HANDLE_VALUE_INDICATION_IN_PORGRESS 0x90
|
||||
#define ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS 0x90
|
||||
#define ATT_HANDLE_VALUE_INDICATION_TIMEOUT 0x91
|
||||
|
||||
#define GATT_CLIENT_NOT_CONNECTED 0x93
|
||||
@ -171,6 +172,13 @@ typedef uint8_t sm_key_t[16];
|
||||
#define BNEP_CHANNEL_NOT_CONNECTED 0xA1
|
||||
#define BNEP_DATA_LEN_EXCEEDS_MTU 0xA2
|
||||
|
||||
// OBEX ERRORS
|
||||
#define OBEX_UNKNOWN_ERROR 0xB0
|
||||
#define OBEX_CONNECT_FAILED 0xB1
|
||||
#define OBEX_DISCONNECTED 0xB2
|
||||
#define OBEX_NOT_FOUND 0xB3
|
||||
/* ENUM_END */
|
||||
|
||||
// DAEMON COMMANDS
|
||||
|
||||
#define OGF_BTSTACK 0x3d
|
||||
@ -276,11 +284,6 @@ typedef uint8_t sm_key_t[16];
|
||||
#define GATT_WRITE_CLIENT_CHARACTERISTIC_CONFIGURATION 0X81
|
||||
#define GATT_GET_MTU 0x82
|
||||
|
||||
// OBEX ERRORS
|
||||
#define OBEX_UNKNOWN_ERROR 0x90
|
||||
#define OBEX_CONNECT_FAILED 0x91
|
||||
#define OBEX_DISCONNECTED 0x92
|
||||
#define OBEX_NOT_FOUND 0x93
|
||||
|
||||
// EVENTS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user