1 /* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __OAM_MAIN_H__ 20 #define __OAM_MAIN_H__ 21 22 /* **************************************************************************** 23 1 其他头文件包含 24 **************************************************************************** */ 25 #include "oam_ext_if.h" 26 27 #ifdef __cplusplus 28 #if __cplusplus 29 extern "C" { 30 #endif 31 #endif 32 /* **************************************************************************** 33 2 宏定义 34 **************************************************************************** */ 35 #define OAM_BEACON_HDR_LEN 24 36 #define OAM_TIMER_MAX_LEN 36 37 #define OAM_PRINT_CRLF_NUM 20 /* 输出换行符的个数 */ 38 39 #define OAM_FEATURE_NAME_ABBR_LEN 12 /* 特性名称缩写最大长度 */ 40 41 #define DEV_OM_FRAME_DELIMITER 0x7e 42 #define DEV_OM_MSG_TYPE_LOG 1 43 44 /* **************************************************************************** 45 10 函数声明 46 **************************************************************************** */ 47 #ifdef __cplusplus 48 #if __cplusplus 49 } 50 #endif 51 #endif 52 53 #endif /* end of oam_main */ 54