52d2c10541e5c8c7e256afd3229c2d2c924c1a6c
[scp/ocu/5gnr.git] / Include / vos_sysmsg.h
1 /******************************************************************************
2 ###############################################################################
3 #   Copyright (c) [2017-2020] [ICT/CAS]                                        #
4 #   Licensed under the ORAN Software License v1.0 (License)             #
5 ###############################################################################
6 ******************************************************************************/
7
8
9
10
11
12 #ifndef __VOS_SYSMSG_H__
13 #define __VOS_SYSMSG_H__
14
15 #ifdef __cplusplus
16 extern "C"{
17 #endif
18
19 typedef struct 
20 {
21      USHORT  usMessageType;     /*用于指示发送或接收*/
22      USHORT  usPririty;         /*优先级(用户自己定义),支持4个优先级 */  
23      ULONG   ulSrcModuleID;     /*源模块号*/
24      ULONG   ulDstModuleID;     /*目标模块号*/
25      ULONG   ulSequence;        /*发送序号,RPC专用*/ 
26
27      ULONG   ulSrcSlotID;           /*源槽位号*/
28      ULONG   ulDstSlotID;       /*目的槽位号*/
29      UCHAR   ucMsgType;         /*消息类型,如PDU, TIMER, REQUEST, NOTIFY... */
30      UCHAR   ucMsgBodyStyle;    /*用于指明消息头和消息体是否是一体的*/
31      USHORT  usMsgCode;         /*消息码,具体消息类型的细分*/
32      LONG    ulUserCode;        /* usertask user code */
33      
34      USHORT  usResponseType;    /*是否要求接收方用户应答:ACK/ NOACK/NEGACK*/
35      USHORT  usFrameLen;        /*frame content 的长度 ,用户数据区长度*/
36      VOID *  ptrMsgBody;        /*消息体指针*/
37      USHORT  usAppSeqNum;       /*应用层系列号,用于发送方和接收方请求应答之间建立关联*/
38      USHORT  usReserved;        /*保留 ,以后扩充使用*/
39 } SYS_MSG_S;
40
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif /*__SYSDEF_H__*/
47
48