fservice.h

来自「包括EPA协议栈」· C头文件 代码 · 共 100 行

H
100
字号
#ifndef _FSERVICE_H
#define _FSERVICE_H

typedef struct {
	uint8 ErrClass;
	uint8 ErrCode;
	uint8 AdditionalCode;
	uint8 Reserved;
	VisualString AdditionalDpt;
} Class_Err;

typedef struct {
	uint16 SrcAppID;
	uint32 DesIPAddr;
} SafetyCommunicationOpen;

typedef struct {
	uint16 DesAppID;
} SafetyCommunicationOpenPositive;

typedef struct {
	uint16 DesAppID;
	uint8  Reserved[2];
	Class_Err ErrType;
} SafetyCommunicationOpenNegative;

typedef struct {
	uint16 SourceAppID;
	uint8  Reserved[2];
	uint32 DesIPAddr;
} SafetyCommunicationClose;

typedef struct {
	uint16 DesAppID;
} SafetyCommunicationClosePositive;

typedef struct {
	uint16 DesAppID;
	uint8  Reserved[2];
	Class_Err ErrType;
} SafetyCommunicationCloseNegative;

typedef struct {
	uint32 OpType;
	uint32 OpData;
} UpdateRelationKey;

void FS_UpdateKey_Input(PSock psock, uint8 com_type, uint16 msg_id);

void FS_ComOpen_req(uint32 dstip, uint16 srcappid) ;
void FS_ComOpen_pos(uint32 dstip, uint16 dstport, uint16 msgid, uint16 dstappid) ;
void FS_ComOpen_neg(uint32 dstip, uint16 dstport, uint16 msgid, uint8* pdata, uint16 dstappid) ;

void FS_ComOpen_Input(PSock psock, uint8 com_type, uint16 msg_id);
void FS_ComOpen_Pos_Input(PSock psock, uint8 com_type, uint16 msg_id);
void FS_ComOpen_Neg_Input(PSock psock, uint8 com_type, uint16 msg_id);

void FS_ComClose_req(uint32 dstip, uint16 srcappid) ;
void FS_ComClose_pos(uint32 dstip, uint16 dstport, uint16 msgid, uint16 dstappid) ;
void FS_ComClose_neg(uint32 dstip, uint16 dstport, uint16 msgid, uint8* pdata, uint16 dstappid) ;

void FS_ComClose_Input(PSock psock, uint8 com_type, uint16 msg_id);
void FS_ComClose_Pos_Input(PSock psock, uint8 com_type, uint16 msg_id);
void FS_ComClose_Neg_Input(PSock psock, uint8 com_type, uint16 msg_id);


void FS_Distribute_req(PSock psock);

void FS_Distribute_reqhandle(PSock psock);


void FS_Read_req(PSock psock);

void FS_Read_reqhandle(PSock psock) ;

void FS_Read_pos(PSock psock);

void FS_Read_poshandle(PSock psock);

void FS_Read_neg(PSock psock);

void FS_Read_neghandle(PSock psock);


void FS_Write_req(PSock psock);

void FS_Write_reqhandle(PSock psock);

void FS_Write_pos(PSock psock);

void FS_Write_poshandle(PSock psock);

void FS_Write_neg(PSock psock);

void FS_Write_neghandle(PSock psock);

void FS_ComFailure_EvenNotification(void);

#endif	// _FSERVICE_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?