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

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

sm.h
Go to the documentation of this file.
1
21 #ifndef __SM_H__
22 #define __SM_H__
23
24 /******************************************************************************
25 * Macros
26 *****************************************************************************/
27
34 /* IO capabilities */
40 #define IO_CAP_DISPLAY_ONLY (0x00)
41 #define IO_CAP_DISPLAY_YES_NO (0x01)
42 #define IO_CAP_KEYBOARD_ONLY (0x02)
43 #define IO_CAP_NO_INPUT_NO_OUTPUT (0x03)
44 #define IO_CAP_KEYBOARD_DISPLAY (0x04)
45
54 #define BONDING (0x01)
55 #define NO_BONDING (0x00)
56
65 #define MITM_PROTECTION_NOT_REQUIRED (0x00)
66 #define MITM_PROTECTION_REQUIRED (0x01)
67
76 #define OOB_AUTH_DATA_ABSENT (0x00)
77 #define OOB_AUTH_DATA_PRESENT (0x01)
78
87 #define AUTHORIZATION_NOT_REQUIRED (0x00)
88 #define AUTHORIZATION_REQUIRED (0x01)
89
98 #define CONNECTION_AUTHORIZED (0x01)
99 #define CONNECTION_REJECTED (0x02)
100
109 #define USE_FIXED_PIN_FOR_PAIRING (0x0)
110 #define DONOT_USE_FIXED_PIN_FOR_PAIRING (0x01)
111
120 #define SM_LINK_AUTHENTICATED (0x01)
121 #define SM_LINK_AUTHORIZED (0x02)
122 #define SM_LINK_ENCRYPTED (0x04)
123
132 #define PASSKEY_ENTRY_FAILED (0x01)
133 #define OOB_NOT_AVAILABLE (0x02)
134 #define AUTH_REQ_CANNOT_BE_MET (0x03)
135 #define CONFIRM_VALUE_FAILED (0x04)
136 #define PAIRING_NOT_SUPPORTED (0x05)
137 #define INSUFF_ENCRYPTION_KEY_SIZE (0x06)
138 #define CMD_NOT_SUPPORTED (0x07)
139 #define UNSPECIFIED_REASON (0x08)
140 #define VERY_EARLY_NEXT_ATTEMPT (0x09)
141 #define SM_INVALID_PARAMS (0x0A)
142
152 #define SM_PAIRING_SUCCESS (0x00)
153 #define SM_PAIRING_TIMEOUT (0x01)
154 #define SM_PAIRING_FAILED (0x02)
155
163 #endif /* __SM_H__ */