42 lines
782 B
C
42 lines
782 B
C
![]() |
|
|||
|
|
|||
|
|
|||
|
#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<30>б<EFBFBD><D0B1>湫<EFBFBD><E6B9AB><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>CPU<50>ţ<EFBFBD><C5A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>ַ
|
|||
|
ST_UCHAR dev_addr; //<2F><>·<EFBFBD><C2B7>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>ʹ<EFBFBD><CAB9>
|
|||
|
ST_UCHAR fun_103; //ֻ<><D6BB>103<30><33><EFBFBD>õ<EFBFBD><C3B5><EFBFBD>FUN
|
|||
|
ST_UINT16 inf;
|
|||
|
ST_UCHAR context;
|
|||
|
} IEC_ASDU_HEAD; //<2F><>С<EFBFBD><D0A1>һ֡<D2BB><D6A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>أ<EFBFBD>104<30><34>101 103 ͨ<><CDA8>
|
|||
|
|
|||
|
|
|||
|
typedef enum
|
|||
|
{
|
|||
|
LINK_BUS_STATUS_WAITSEND=0, //<2F>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ͣ<EFBFBD>
|
|||
|
LINK_BUS_STATUS_WAITCONFIRM //<2F>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3>ȴ<EFBFBD>Ӧ<EFBFBD><D3A6>
|
|||
|
} LINK_BUS_STATUS;
|
|||
|
|
|||
|
/************************************************************************/
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
#endif
|
|||
|
|