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_ACCEPTER_H 17 #define SMP_SC_ACCEPTER_H 18 19 #include "smp_def.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_1 0x00A1 26 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_2 0x00A2 27 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_3 0x00A3 28 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_4 0x00A4 29 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_5 0x00A5 30 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_6 0x00A6 31 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_7 0x00A7 32 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_8 0x00A8 33 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_9 0x00A9 34 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_10 0x00AA 35 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_11 0x00AB 36 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_12 0x00AC 37 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_13 0x00AD 38 #define SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_14 0x00AE 39 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_1 0x00C1 40 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_2 0x00C2 41 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_3 0x00C3 42 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_4 0x00C4 43 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_5 0x00C5 44 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_6 0x00C6 45 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_7 0x00C7 46 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_8 0x00C8 47 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_9 0x00C9 48 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_10 0x00CA 49 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_11 0x00CB 50 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_12 0x00CC 51 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_13 0x00CD 52 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_14 0x00CE 53 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_15 0x00CF 54 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_16 0x00D0 55 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_17 0x00D1 56 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_18 0x00D2 57 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_19 0x00D3 58 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_20 0x00D4 59 #define SMP_SC_PAIR_COMMON_SLAVE_STEP_21 0x00D5 60 61 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_1 0x00E1 62 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_2 0x00E2 63 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_3 0x00E3 64 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_4 0x00E4 65 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_5 0x00E5 66 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_6 0x00E6 67 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_7 0x00E7 68 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_8 0x00E8 69 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_9 0x00E9 70 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_10 0x00EA 71 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_11 0x00EB 72 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_12 0x00EC 73 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_13 0x00ED 74 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_14 0x00EE 75 #define SMP_SC_PAIR_PASSKEYENTRY_SLAVE_STEP_15 0x00EF 76 77 #define SMP_SC_PAIR_OOB_SLAVE_STEP_1 0x0121 78 #define SMP_SC_PAIR_OOB_SLAVE_STEP_2 0x0122 79 #define SMP_SC_PAIR_OOB_SLAVE_STEP_3 0x0123 80 #define SMP_SC_PAIR_OOB_SLAVE_STEP_4 0x0124 81 #define SMP_SC_PAIR_OOB_SLAVE_STEP_5 0x0125 82 #define SMP_SC_PAIR_OOB_SLAVE_STEP_6 0x0126 83 #define SMP_SC_PAIR_OOB_SLAVE_STEP_7 0x0127 84 #define SMP_SC_PAIR_OOB_SLAVE_STEP_8 0x0128 85 #define SMP_SC_PAIR_OOB_SLAVE_STEP_9 0x0129 86 #define SMP_SC_PAIR_OOB_SLAVE_STEP_10 0x012A 87 #define SMP_SC_PAIR_OOB_SLAVE_STEP_11 0x012B 88 #define SMP_SC_PAIR_OOB_SLAVE_STEP_12 0x012C 89 #define SMP_SC_PAIR_OOB_SLAVE_STEP_13 0x012D 90 #define SMP_SC_PAIR_OOB_SLAVE_STEP_14 0x012E 91 #define SMP_SC_PAIR_OOB_SLAVE_STEP_15 0x012F 92 #define SMP_PAIR_STEP_END 0x012F 93 94 void SMP_ScPairJustworkOrNumericSlaveStep1(const SMP_StepParam *param); 95 void SMP_ScPairJustworkOrNumericSlaveStep2(const SMP_StepParam *param); 96 void SMP_ScPairJustworkOrNumericSlaveStep3(const SMP_StepParam *param); 97 void SMP_ScPairJustworkOrNumericSlaveStep4(const SMP_StepParam *param); 98 void SMP_ScPairJustworkOrNumericSlaveStep5(const SMP_StepParam *param); 99 void SMP_ScPairJustworkOrNumericSlaveStep6(const SMP_StepParam *param); 100 void SMP_ScPairJustworkOrNumericSlaveStep7(const SMP_StepParam *param); 101 void SMP_ScPairJustworkOrNumericSlaveStep8(const SMP_StepParam *param); 102 void SMP_ScPairJustworkOrNumericSlaveStep9(const SMP_StepParam *param); 103 void SMP_ScPairJustworkOrNumericSlaveStep10(const SMP_StepParam *param); 104 void SMP_ScPairJustworkOrNumericSlaveStep11(const SMP_StepParam *param); 105 void SMP_ScPairJustworkOrNumericSlaveStep12(const SMP_StepParam *param); 106 void SMP_ScPairJustworkOrNumericSlaveStep13(const SMP_StepParam *param); 107 void SMP_ScPairPasskeyEntrySlaveStep1(const SMP_StepParam *param); 108 void SMP_ScPairPasskeyEntrySlaveStep2(const SMP_StepParam *param); 109 void SMP_ScPairPasskeyEntrySlaveStep3(const SMP_StepParam *param); 110 void SMP_ScPairPasskeyEntrySlaveStep4(const SMP_StepParam *param); 111 void SMP_ScPairPasskeyEntrySlaveStep5(const SMP_StepParam *param); 112 void SMP_ScPairPasskeyEntrySlaveStep6(const SMP_StepParam *param); 113 void SMP_ScPairPasskeyEntrySlaveStep7(const SMP_StepParam *param); 114 void SMP_ScPairPasskeyEntrySlaveStep8(const SMP_StepParam *param); 115 void SMP_ScPairPasskeyEntrySlaveStep9(const SMP_StepParam *param); 116 void SMP_ScPairPasskeyEntrySlaveStep10(const SMP_StepParam *param); 117 void SMP_ScPairPasskeyEntrySlaveStep11(const SMP_StepParam *param); 118 void SMP_ScPairPasskeyEntrySlaveStep12(const SMP_StepParam *param); 119 void SMP_ScPairPasskeyEntrySlaveStep13(const SMP_StepParam *param); 120 void SMP_ScPairPasskeyEntrySlaveStep14(const SMP_StepParam *param); 121 void SMP_ScPairPasskeyEntrySlaveStep15(const SMP_StepParam *param); 122 void SMP_ScPairOobSlaveStep1(const SMP_StepParam *param); 123 void SMP_ScPairOobSlaveStep7(const SMP_StepParam *param); 124 void SMP_ScPairOobSlaveStep8(const SMP_StepParam *param); 125 void SMP_ScPairOobSlaveStep9(const SMP_StepParam *param); 126 void SMP_ScPairOobSlaveStep10(const SMP_StepParam *param); 127 void SMP_ScPairOobSlaveStep11(const SMP_StepParam *param); 128 void SMP_ScPairOobSlaveStep12(const SMP_StepParam *param); 129 void SMP_ScPairOobSlaveStep13(const SMP_StepParam *param); 130 void SMP_ScPairOobSlaveStep14(const SMP_StepParam *param); 131 void SMP_ScPairOobSlaveStep15(const SMP_StepParam *param); 132 void SMP_ScPairCommonSlaveStep1(const SMP_StepParam *param); 133 void SMP_ScPairCommonSlaveStep2(const SMP_StepParam *param); 134 void SMP_ScPairCommonSlaveStep3(const SMP_StepParam *param); 135 void SMP_ScPairCommonSlaveStep4(const SMP_StepParam *param); 136 void SMP_ScPairCommonSlaveStep5(const SMP_StepParam *param); 137 void SMP_ScPairCommonSlaveStep6(const SMP_StepParam *param); 138 void SMP_ScPairCommonSlaveStep7(const SMP_StepParam *param); 139 void SMP_ScPairCommonSlaveStep8(const SMP_StepParam *param); 140 void SMP_ScPairCommonSlaveStep9(const SMP_StepParam *param); 141 void SMP_ScPairCommonSlaveStep10(const SMP_StepParam *param); 142 void SMP_ScPairCommonSlaveStep11(const SMP_StepParam *param); 143 void SMP_ScPairCommonSlaveStep12(const SMP_StepParam *param); 144 void SMP_ScPairCommonSlaveStep13(const SMP_StepParam *param); 145 void SMP_ScPairCommonSlaveStep14(const SMP_StepParam *param); 146 void SMP_ScPairCommonSlaveStep15(const SMP_StepParam *param); 147 void SMP_ScPairCommonSlaveStep16(const SMP_StepParam *param); 148 void SMP_ScPairCommonSlaveStep19(const SMP_StepParam *param); 149 void SMP_ScPairCommonSlaveStep20(const SMP_StepParam *param); 150 151 #ifdef __cplusplus 152 } 153 #endif 154 155 #endif