| STM32L - BlueNRG-1 BLE stack APIs, Events and Constants

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

ble_status.h
Go to the documentation of this file.
1
21 #ifndef __BLE_STATUS_H__
22 #define __BLE_STATUS_H__
23
24 #include <hal_types.h>
25
26
27 /* Error Codes as specified by the specification
28 * according to the spec the error codes range
29 * from 0x00 to 0x3F
30 */
31 #define ERR_CMD_SUCCESS (0x00)
32 #define BLE_STATUS_SUCCESS (0x00)
33 #define ERR_UNKNOWN_HCI_COMMAND (0x01)
34 #define ERR_UNKNOWN_CONN_IDENTIFIER (0x02)
35 #define ERR_AUTH_FAILURE (0x05)
36 #define ERR_PIN_OR_KEY_MISSING (0x06)
37 #define ERR_MEM_CAPACITY_EXCEEDED (0x07)
38 #define ERR_CONNECTION_TIMEOUT (0x08)
39 #define ERR_COMMAND_DISALLOWED (0x0C)
40 #define ERR_UNSUPPORTED_FEATURE (0x11)
41 #define ERR_INVALID_HCI_CMD_PARAMS (0x12)
42 #define ERR_RMT_USR_TERM_CONN (0x13)
43 #define ERR_RMT_DEV_TERM_CONN_LOW_RESRCES (0x14)
44 #define ERR_RMT_DEV_TERM_CONN_POWER_OFF (0x15)
45 #define ERR_LOCAL_HOST_TERM_CONN (0x16)
46 #define ERR_UNSUPP_RMT_FEATURE (0x1A)
47 #define ERR_INVALID_LMP_PARAM (0x1E)
48 #define ERR_UNSPECIFIED_ERROR (0x1F)
49 #define ERR_LL_RESP_TIMEOUT (0x22)
50 #define ERR_LMP_PDU_NOT_ALLOWED (0x24)
51 #define ERR_INSTANT_PASSED (0x28)
52 #define ERR_PAIR_UNIT_KEY_NOT_SUPP (0x29)
53 #define ERR_CONTROLLER_BUSY (0x3A)
54 #define ERR_DIRECTED_ADV_TIMEOUT (0x3C)
55 #define ERR_CONN_END_WITH_MIC_FAILURE (0x3D)
56 #define ERR_CONN_FAILED_TO_ESTABLISH (0x3E)
57 #define BLE_STATUS_FAILED (0x41)
58 #define BLE_STATUS_INVALID_PARAMS (0x42)
59 #define BLE_STATUS_BUSY (0x43)
60 #define BLE_STATUS_INVALID_LEN_PDU (0x44)
61 #define BLE_STATUS_PENDING (0x45)
62 #define BLE_STATUS_NOT_ALLOWED (0x46)
63 #define BLE_STATUS_ERROR (0x47)
64 #define BLE_STATUS_ADDR_NOT_RESOLVED (0x48)
65 #define FLASH_READ_FAILED (0x49)
66 #define FLASH_WRITE_FAILED (0x4A)
67 #define FLASH_ERASE_FAILED (0x4B)
68 #define BLE_STATUS_INVALID_CID (0x50)
69 #define TIMER_NOT_VALID_LAYER (0x54)
70 #define TIMER_INSUFFICIENT_RESOURCES (0x55)
71 #define BLE_STATUS_CSRK_NOT_FOUND (0x5A)
72 #define BLE_STATUS_IRK_NOT_FOUND (0x5B)
73 #define BLE_STATUS_DEV_NOT_FOUND_IN_DB (0x5C)
74 #define BLE_STATUS_SEC_DB_FULL (0x5D)
75 #define BLE_STATUS_DEV_NOT_BONDED (0x5E)
76 #define BLE_STATUS_DEV_IN_BLACKLIST (0x5F)
77 #define BLE_STATUS_INVALID_HANDLE (0x60)
78 #define BLE_STATUS_INVALID_PARAMETER (0x61)
79 #define BLE_STATUS_OUT_OF_HANDLE (0x62)
80 #define BLE_STATUS_INVALID_OPERATION (0x63)
81 #define BLE_STATUS_INSUFFICIENT_RESOURCES (0x64)
82 #define BLE_INSUFFICIENT_ENC_KEYSIZE (0x65)
83 #define BLE_STATUS_CHARAC_ALREADY_EXISTS (0x66)
84
85
89 #define BLE_STATUS_NO_VALID_SLOT (0x82)
90
93 #define BLE_STATUS_SCAN_WINDOW_SHORT (0x83)
94
99 #define BLE_STATUS_NEW_INTERVAL_FAILED (0x84)
100
105 #define BLE_STATUS_INTERVAL_TOO_LARGE (0x85)
106
111 #define BLE_STATUS_LENGTH_FAILED (0x86)
112
113 /*
114 * Library Error Codes
115 */
116 #define BLE_STATUS_TIMEOUT (0xFF)
117 #define BLE_STATUS_PROFILE_ALREADY_INITIALIZED (0xF0)
118 #define BLE_STATUS_NULL_PARAM (0xF1)
119
125 #endif /* __BLE_STATUS_H__ */