BlueNRG-MS pack for STM32CubeMX: includes/sm.h Source File

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
sm.h
Go to the documentation of this file.
1 /******************** (C) COPYRIGHT 2012 STMicroelectronics ********************
2 * File Name : sm.h
3 * Author : AMS - HEA&RF BU
4 * Version : V1.0.0
5 * Date : 19-July-2012
6 * Description : Header file for BlueNRG's security manager.
7 ********************************************************************************
8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14 *******************************************************************************/
15 
16 #ifndef __SM_H__
17 #define __SM_H__
18 
19 /******************************************************************************
20 * Macros
21 *****************************************************************************/
22 
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 (0x00)
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 
167 #endif /* __SM_H__ */
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13