1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef SMP_SC_INITIATOR_H 17 #define SMP_SC_INITIATOR_H 18 19 #include "smp_def.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_1 0x0041 26 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_2 0x0042 27 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_3 0x0043 28 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_4 0x0044 29 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_5 0x0045 30 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_6 0x0046 31 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_7 0x0047 32 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_8 0x0048 33 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_9 0x0049 34 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_10 0x004A 35 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_11 0x004B 36 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_12 0x004C 37 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_13 0x004D 38 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_14 0x004E 39 40 #define SMP_SC_PAIR_COMMON_MASTER_STEP_1 0x0061 41 #define SMP_SC_PAIR_COMMON_MASTER_STEP_2 0x0062 42 #define SMP_SC_PAIR_COMMON_MASTER_STEP_3 0x0063 43 #define SMP_SC_PAIR_COMMON_MASTER_STEP_4 0x0064 44 #define SMP_SC_PAIR_COMMON_MASTER_STEP_5 0x0065 45 #define SMP_SC_PAIR_COMMON_MASTER_STEP_6 0x0066 46 #define SMP_SC_PAIR_COMMON_MASTER_STEP_7 0x0067 47 #define SMP_SC_PAIR_COMMON_MASTER_STEP_8 0x0068 48 #define SMP_SC_PAIR_COMMON_MASTER_STEP_9 0x0069 49 #define SMP_SC_PAIR_COMMON_MASTER_STEP_10 0x006A 50 #define SMP_SC_PAIR_COMMON_MASTER_STEP_11 0x006B 51 #define SMP_SC_PAIR_COMMON_MASTER_STEP_12 0x006C 52 #define SMP_SC_PAIR_COMMON_MASTER_STEP_13 0x006D 53 #define SMP_SC_PAIR_COMMON_MASTER_STEP_14 0x006E 54 #define SMP_SC_PAIR_COMMON_MASTER_STEP_15 0x006F 55 #define SMP_SC_PAIR_COMMON_MASTER_STEP_16 0x0070 56 #define SMP_SC_PAIR_COMMON_MASTER_STEP_17 0x0071 57 #define SMP_SC_PAIR_COMMON_MASTER_STEP_18 0x0072 58 #define SMP_SC_PAIR_COMMON_MASTER_STEP_19 0x0073 59 #define SMP_SC_PAIR_COMMON_MASTER_STEP_20 0x0074 60 61 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_1 0x0081 62 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_2 0x0082 63 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_3 0x0083 64 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_4 0x0084 65 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_5 0x0085 66 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_6 0x0086 67 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_7 0x0087 68 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_8 0x0088 69 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_9 0x0089 70 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_10 0x008A 71 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_11 0x008B 72 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_12 0x008C 73 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_13 0x008D 74 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_14 0x008E 75 #define SMP_SC_PAIR_PASSKEYENTRY_MASTER_STEP_15 0x008F 76 77 #define SMP_SC_PAIR_OOB_MASTER_STEP_1 0x0101 78 #define SMP_SC_PAIR_OOB_MASTER_STEP_2 0x0102 79 #define SMP_SC_PAIR_OOB_MASTER_STEP_3 0x0103 80 #define SMP_SC_PAIR_OOB_MASTER_STEP_4 0x0104 81 #define SMP_SC_PAIR_OOB_MASTER_STEP_5 0x0105 82 #define SMP_SC_PAIR_OOB_MASTER_STEP_6 0x0106 83 #define SMP_SC_PAIR_OOB_MASTER_STEP_7 0x0107 84 #define SMP_SC_PAIR_OOB_MASTER_STEP_8 0x0108 85 #define SMP_SC_PAIR_OOB_MASTER_STEP_9 0x0109 86 #define SMP_SC_PAIR_OOB_MASTER_STEP_10 0x010A 87 #define SMP_SC_PAIR_OOB_MASTER_STEP_11 0x010B 88 #define SMP_SC_PAIR_OOB_MASTER_STEP_12 0x010C 89 #define SMP_SC_PAIR_OOB_MASTER_STEP_13 0x010D 90 #define SMP_SC_PAIR_OOB_MASTER_STEP_14 0x010E 91 #define SMP_SC_PAIR_OOB_MASTER_STEP_15 0x010F 92 93 void SMP_ScPairJustworkOrNumericMasterStep1(const SMP_StepParam *param); 94 void SMP_ScPairJustworkOrNumericMasterStep2(const SMP_StepParam *param); 95 void SMP_ScPairJustworkOrNumericMasterStep3(const SMP_StepParam *param); 96 void SMP_ScPairJustworkOrNumericMasterStep4(const SMP_StepParam *param); 97 void SMP_ScPairJustworkOrNumericMasterStep5(const SMP_StepParam *param); 98 void SMP_ScPairJustworkOrNumericMasterStep6(const SMP_StepParam *param); 99 void SMP_ScPairJustworkOrNumericMasterStep7(const SMP_StepParam *param); 100 void SMP_ScPairJustworkOrNumericMasterStep8(const SMP_StepParam *param); 101 void SMP_ScPairJustworkOrNumericMasterStep9(const SMP_StepParam *param); 102 void SMP_ScPairJustworkOrNumericMasterStep10(const SMP_StepParam *param); 103 void SMP_ScPairJustworkOrNumericMasterStep11(const SMP_StepParam *param); 104 void SMP_ScPairJustworkOrNumericMasterStep12(const SMP_StepParam *param); 105 void SMP_ScPairJustworkOrNumericMasterStep13(const SMP_StepParam *param); 106 void SMP_ScPairPasskeyEntryMasterStep1(const SMP_StepParam *param); 107 void SMP_ScPairPasskeyEntryMasterStep2(const SMP_StepParam *param); 108 void SMP_ScPairPasskeyEntryMasterStep3(const SMP_StepParam *param); 109 void SMP_ScPairPasskeyEntryMasterStep4(const SMP_StepParam *param); 110 void SMP_ScPairPasskeyEntryMasterStep6(const SMP_StepParam *param); 111 void SMP_ScPairPasskeyEntryMasterStep7(const SMP_StepParam *param); 112 void SMP_ScPairPasskeyEntryMasterStep8(const SMP_StepParam *param); 113 void SMP_ScPairPasskeyEntryMasterStep9(const SMP_StepParam *param); 114 void SMP_ScPairPasskeyEntryMasterStep10(const SMP_StepParam *param); 115 void SMP_ScPairPasskeyEntryMasterStep11(const SMP_StepParam *param); 116 void SMP_ScPairPasskeyEntryMasterStep12(const SMP_StepParam *param); 117 void SMP_ScPairPasskeyEntryMasterStep13(const SMP_StepParam *param); 118 void SMP_ScPairPasskeyEntryMasterStep14(const SMP_StepParam *param); 119 void SMP_ScPairPasskeyEntryMasterStep15(const SMP_StepParam *param); 120 void SMP_ScPairOobMasterStep1(const SMP_StepParam *param); 121 void SMP_ScPairOobMasterStep8(const SMP_StepParam *param); 122 void SMP_ScPairOobMasterStep9(const SMP_StepParam *param); 123 void SMP_ScPairOobMasterStep10(const SMP_StepParam *param); 124 void SMP_ScPairOobMasterStep11(const SMP_StepParam *param); 125 void SMP_ScPairOobMasterStep12(const SMP_StepParam *param); 126 void SMP_ScPairOobMasterStep13(const SMP_StepParam *param); 127 void SMP_ScPairOobMasterStep14(const SMP_StepParam *param); 128 void SMP_ScPairOobMasterStep15(const SMP_StepParam *param); 129 void SMP_ScPairCommonMasterStep1(const SMP_StepParam *param); 130 void SMP_ScPairCommonMasterStep2(const SMP_StepParam *param); 131 void SMP_ScPairCommonMasterStep3(const SMP_StepParam *param); 132 void SMP_ScPairCommonMasterStep4(const SMP_StepParam *param); 133 void SMP_ScPairCommonMasterStep5(const SMP_StepParam *param); 134 void SMP_ScPairCommonMasterStep6(const SMP_StepParam *param); 135 void SMP_ScPairCommonMasterStep7(const SMP_StepParam *param); 136 void SMP_ScPairCommonMasterStep8(const SMP_StepParam *param); 137 void SMP_ScPairCommonMasterStep9(const SMP_StepParam *param); 138 void SMP_ScPairCommonMasterStep10(const SMP_StepParam *param); 139 void SMP_ScPairCommonMasterStep11(const SMP_StepParam *param); 140 void SMP_ScPairCommonMasterStep12(const SMP_StepParam *param); 141 void SMP_ScPairCommonMasterStep13(const SMP_StepParam *param); 142 void SMP_ScPairCommonMasterStep14(const SMP_StepParam *param); 143 void SMP_ScPairCommonMasterStep15(const SMP_StepParam *param); 144 void SMP_ScPairCommonMasterStep16(const SMP_StepParam *param); 145 void SMP_ScPairCommonMasterStep19(const SMP_StepParam *param); 146 void SMP_ScPairCommonMasterStep20(const SMP_StepParam *param); 147 148 #ifdef __cplusplus 149 } 150 #endif 151 152 #endif