commCPU_SUPV/code/link60870/inc/iec60870_define.h
2025-04-30 16:24:29 +08:00

42 lines
782 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef IEC60870_DEFINE_123_INCLUDED
#define IEC60870_DEFINE_123_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************/
#include "glbtypes.h"
typedef struct
{
ST_UCHAR ti;
ST_UCHAR vsq;
ST_UCHAR cot;
ST_UCHAR comm_addr; //103中保存公共地址CPU号真正的地址
ST_UCHAR dev_addr; //链路地址,其实不使用
ST_UCHAR fun_103; //只有103会用到的FUN
ST_UINT16 inf;
ST_UCHAR context;
} IEC_ASDU_HEAD; //最小的一帧的所有要素104和101 103 通用
typedef enum
{
LINK_BUS_STATUS_WAITSEND=0, //等待发送,
LINK_BUS_STATUS_WAITCONFIRM //已经发送,等待应答
} LINK_BUS_STATUS;
/************************************************************************/
#ifdef __cplusplus
}
#endif
#endif