📄 apicomm.h
字号:
/**********************************************************************************************************
File: APIComm.h
Reference: M-Lon 电力线通信系统功能要求, M-Lon 电力线通信系统主站与集中器通信协议, M-Lon meter 与 comm
应用通信协议, M-Lon 电力线通信系统安装和管理流程.
Purpose: M-Lon 电力线通信系统 LVC 节点上的 Meter 子系统. Meter 子系统完成下述任务:处理主站命令;执行
主站命令;执行日常例行任务(定时启动组网,网络自适应调整,抄表).
Note:
To Do:
**********************************************************************************************************/
#ifndef _APICOMM_H
#define _APICOMM_H
/*---------------------------------------------------------------------------------------------------------
Section: 头文件
---------------------------------------------------------------------------------------------------------*/
#include "CommType.h"
/*---------------------------------------------------------------------------------------------------------
Section: 常数定义
---------------------------------------------------------------------------------------------------------*/
// API 函数返回值.
#define R_FAIL -1
#define R_ERRPARAS 0
#define R_SYSBUSY 0
#define R_OK 1
#define R_NOMEM 2
#define R_INVALIDADDR 2
#define R_TIMEOUT 3
// 集中器状态掩码
#define MASK_INIT 0x80
#define MASK_ADJUST 0x40
#define MASK_FINDNODE 0x20
#define MASK_PASSTHROUGH 0x10
#define MASK_CFGNODE 0x08
#define MASK_CLEARNODE 0x04
#define MASK_NETTEST 0x02
#define MASK_STOPADJUST 0x01
/*---------------------------------------------------------------------------------------------------------
Section: 宏定义
---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------
Section: 类型定义
---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------
Section: 常量定义
---------------------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------
Section: 全局函数原型.
---------------------------------------------------------------------------------------------------------*/
#endif /* #ifndef _APICOMM_H */
/*-------------------------------------------- End of CommType.h -----------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -