1 /* 2 * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved. 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 __RMMS_H__ 17 #define __RMMS_H__ 18 19 #if TLS_CONFIG_RMMS 20 #if (GCC_COMPILE==1) 21 #include "wm_cmdp_hostif_gcc.h" 22 #else 23 #include "wm_cmdp_hostif.h" 24 #endif 25 #define RMMS_LISTERN_PORT 988 26 27 #define RMMS_ERR_SUCCESS 0 28 #define RMMS_ERR_LINKDOWN -1 29 #define RMMS_ERR_PARAM -2 30 #define RMMS_ERR_MEM -3 31 #define RMMS_ERR_NOT_BIND -4 32 #define RMMS_ERR_NOT_FOUND -5 33 #define RMMS_ERR_INACTIVE -6 34 35 36 s8 RMMS_Init(const struct netif *Netif); 37 void RMMS_Fini(void); 38 void RMMS_SendHedAtRsp(struct rmms_msg *Msg); 39 #endif 40 41 #endif 42 43