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_LEGACY_H 17 #define SMP_LEGACY_H 18 19 #include "smp_def.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #define SMP_PAIR_STEP_START 0x0001 26 #define SMP_LEGACY_PAIR_MASTER_STEP_1 0x0001 27 #define SMP_LEGACY_PAIR_MASTER_STEP_2 0x0002 28 #define SMP_LEGACY_PAIR_MASTER_STEP_3 0x0003 29 #define SMP_LEGACY_PAIR_MASTER_STEP_4 0x0004 30 #define SMP_LEGACY_PAIR_MASTER_STEP_5 0x0005 31 #define SMP_LEGACY_PAIR_MASTER_STEP_6 0x0006 32 #define SMP_LEGACY_PAIR_MASTER_STEP_7 0x0007 33 #define SMP_LEGACY_PAIR_MASTER_STEP_8 0x0008 34 #define SMP_LEGACY_PAIR_MASTER_STEP_9 0x0009 35 #define SMP_LEGACY_PAIR_MASTER_STEP_10 0x000A 36 #define SMP_LEGACY_PAIR_MASTER_STEP_11 0x000 37 #define SMP_LEGACY_PAIR_MASTER_STEP_12 0x000C 38 #define SMP_LEGACY_PAIR_MASTER_STEP_13 0x000D 39 #define SMP_LEGACY_PAIR_MASTER_STEP_14 0x000E 40 #define SMP_LEGACY_PAIR_MASTER_STEP_15 0x000F 41 #define SMP_LEGACY_PAIR_MASTER_STEP_16 0x0010 42 #define SMP_LEGACY_PAIR_MASTER_STEP_17 0x0011 43 #define SMP_LEGACY_PAIR_MASTER_STEP_18 0x0012 44 45 void SMP_LegacyPairMasterStep1(const SMP_StepParam *param); 46 void SMP_LegacyPairMasterStep2(const SMP_StepParam *param); 47 void SMP_LegacyPairMasterStep3(const SMP_StepParam *param); 48 void SMP_LegacyPairMasterStep4(const SMP_StepParam *param); 49 void SMP_LegacyPairMasterStep5(const SMP_StepParam *param); 50 void SMP_LegacyPairMasterStep6(const SMP_StepParam *param); 51 void SMP_LegacyPairMasterStep7(const SMP_StepParam *param); 52 void SMP_LegacyPairMasterStep8(const SMP_StepParam *param); 53 void SMP_LegacyPairMasterStep9(const SMP_StepParam *param); 54 void SMP_LegacyPairMasterStep10(const SMP_StepParam *param); 55 void SMP_LegacyPairMasterStep13(const SMP_StepParam *param); 56 void SMP_LegacyPairMasterStep14(const SMP_StepParam *param); 57 void SMP_LegacyPairMasterStep15(const SMP_StepParam *param); 58 void SMP_LegacyPairMasterStep16(const SMP_StepParam *param); 59 void SMP_LegacyPairMasterStep17(const SMP_StepParam *param); 60 void SMP_LegacyPairMasterStep18(const SMP_StepParam *param); 61 62 #define SMP_LEGACY_PAIR_SLAVE_STEP_1 0x0021 63 #define SMP_LEGACY_PAIR_SLAVE_STEP_2 0x0022 64 #define SMP_LEGACY_PAIR_SLAVE_STEP_3 0x0023 65 #define SMP_LEGACY_PAIR_SLAVE_STEP_4 0x0024 66 #define SMP_LEGACY_PAIR_SLAVE_STEP_5 0x0025 67 #define SMP_LEGACY_PAIR_SLAVE_STEP_6 0x0026 68 #define SMP_LEGACY_PAIR_SLAVE_STEP_7 0x0027 69 #define SMP_LEGACY_PAIR_SLAVE_STEP_8 0x0028 70 #define SMP_LEGACY_PAIR_SLAVE_STEP_9 0x0029 71 #define SMP_LEGACY_PAIR_SLAVE_STEP_10 0x002A 72 #define SMP_LEGACY_PAIR_SLAVE_STEP_11 0x002B 73 #define SMP_LEGACY_PAIR_SLAVE_STEP_12 0x002C 74 #define SMP_LEGACY_PAIR_SLAVE_STEP_13 0x002D 75 #define SMP_LEGACY_PAIR_SLAVE_STEP_14 0x002E 76 #define SMP_LEGACY_PAIR_SLAVE_STEP_15 0x002F 77 #define SMP_LEGACY_PAIR_SLAVE_STEP_16 0x0030 78 #define SMP_LEGACY_PAIR_SLAVE_STEP_17 0x0031 79 #define SMP_LEGACY_PAIR_SLAVE_STEP_18 0x0032 80 #define SMP_LEGACY_PAIR_SLAVE_STEP_19 0x0033 81 #define SMP_LEGACY_PAIR_SLAVE_STEP_20 0x0034 82 83 void SMP_LegacyPairSlaveStep1(const SMP_StepParam *param); 84 void SMP_LegacyPairSlaveStep2(const SMP_StepParam *param); 85 void SMP_LegacyPairSlaveStep3(const SMP_StepParam *param); 86 void SMP_LegacyPairSlaveStep4(const SMP_StepParam *param); 87 void SMP_LegacyPairSlaveStep5(const SMP_StepParam *param); 88 void SMP_LegacyPairSlaveStep6(const SMP_StepParam *param); 89 void SMP_LegacyPairSlaveStep7(const SMP_StepParam *param); 90 void SMP_LegacyPairSlaveStep8(const SMP_StepParam *param); 91 void SMP_LegacyPairSlaveStep9(const SMP_StepParam *param); 92 void SMP_LegacyPairSlaveStep10(const SMP_StepParam *param); 93 void SMP_LegacyPairSlaveStep11(const SMP_StepParam *param); 94 void SMP_LegacyPairSlaveStep14(const SMP_StepParam *param); 95 void SMP_LegacyPairSlaveStep15(const SMP_StepParam *param); 96 void SMP_LegacyPairSlaveStep16(const SMP_StepParam *param); 97 void SMP_LegacyPairSlaveStep17(const SMP_StepParam *param); 98 void SMP_LegacyPairSlaveStep18(const SMP_StepParam *param); 99 void SMP_LegacyPairSlaveStep19(const SMP_StepParam *param); 100 101 #ifdef __cplusplus 102 } 103 #endif 104 105 #endif