X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Include%2Fvos_sysmsg.h;fp=Include%2Fvos_sysmsg.h;h=52d2c10541e5c8c7e256afd3229c2d2c924c1a6c;hb=1f71b9a76eacf92b39c1ce6f782f8404a34f60a9;hp=0000000000000000000000000000000000000000;hpb=254694245736881ecfff4eb0d1503bf3f49a21be;p=scp%2Focu%2F5gnr.git diff --git a/Include/vos_sysmsg.h b/Include/vos_sysmsg.h new file mode 100644 index 0000000..52d2c10 --- /dev/null +++ b/Include/vos_sysmsg.h @@ -0,0 +1,48 @@ +/****************************************************************************** +############################################################################### +# Copyright (c) [2017-2020] [ICT/CAS] # +# Licensed under the ORAN Software License v1.0 (License) # +############################################################################### +******************************************************************************/ + + + + + +#ifndef __VOS_SYSMSG_H__ +#define __VOS_SYSMSG_H__ + +#ifdef __cplusplus +extern "C"{ +#endif + +typedef struct +{ + USHORT usMessageType; /*用于指示发送或接收*/ + USHORT usPririty; /*优先级(用户自己定义),支持4个优先级 */ + ULONG ulSrcModuleID; /*源模块号*/ + ULONG ulDstModuleID; /*目标模块号*/ + ULONG ulSequence; /*发送序号,RPC专用*/ + + ULONG ulSrcSlotID; /*源槽位号*/ + ULONG ulDstSlotID; /*目的槽位号*/ + UCHAR ucMsgType; /*消息类型,如PDU, TIMER, REQUEST, NOTIFY... */ + UCHAR ucMsgBodyStyle; /*用于指明消息头和消息体是否是一体的*/ + USHORT usMsgCode; /*消息码,具体消息类型的细分*/ + LONG ulUserCode; /* usertask user code */ + + USHORT usResponseType; /*是否要求接收方用户应答:ACK/ NOACK/NEGACK*/ + USHORT usFrameLen; /*frame content 的长度 ,用户数据区长度*/ + VOID * ptrMsgBody; /*消息体指针*/ + USHORT usAppSeqNum; /*应用层系列号,用于发送方和接收方请求应答之间建立关联*/ + USHORT usReserved; /*保留 ,以后扩充使用*/ +} SYS_MSG_S; + + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSDEF_H__*/ + +