Modify licenses
[scp/ocu/5gnr.git] / Include / vos_sysmsg.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2020 ICT/CAS.
4 *
5 *   Licensed under the O-RAN Software License, Version 1.0 (the "Software License");
6 *   you may not use this file except in compliance with the License.
7 *   You may obtain a copy of the License at
8 *
9 *       https://www.o-ran.org/software
10 *
11 *   Unless required by applicable law or agreed to in writing, software
12 *   distributed under the License is distributed on an "AS IS" BASIS,
13 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *   See the License for the specific language governing permissions and
15 *   limitations under the License.
16 *
17 *******************************************************************************/
18
19
20
21
22
23
24 #ifndef __VOS_SYSMSG_H__
25 #define __VOS_SYSMSG_H__
26
27 #ifdef __cplusplus
28 extern "C"{
29 #endif
30
31 typedef struct
32 {
33      USHORT  usMessageType;     /*用于指示发送或接收*/
34      USHORT  usPririty;         /*优先级(用户自己定义),支持4个优先级 */
35      ULONG   ulSrcModuleID;     /*源模块号*/
36      ULONG   ulDstModuleID;     /*目标模块号*/
37      ULONG   ulSequence;        /*发送序号,RPC专用*/
38
39      ULONG   ulSrcSlotID;           /*源槽位号*/
40      ULONG   ulDstSlotID;       /*目的槽位号*/
41      UCHAR   ucMsgType;         /*消息类型,如PDU, TIMER, REQUEST, NOTIFY... */
42      UCHAR   ucMsgBodyStyle;    /*用于指明消息头和消息体是否是一体的*/
43      USHORT  usMsgCode;         /*消息码,具体消息类型的细分*/
44      LONG    ulUserCode;        /* usertask user code */
45
46      USHORT  usResponseType;    /*是否要求接收方用户应答:ACK/ NOACK/NEGACK*/
47      USHORT  usFrameLen;        /*frame content 的长度 ,用户数据区长度*/
48      VOID *  ptrMsgBody;        /*消息体指针*/
49      USHORT  usAppSeqNum;       /*应用层系列号,用于发送方和接收方请求应答之间建立关联*/
50      USHORT  usReserved;        /*保留 ,以后扩充使用*/
51 } SYS_MSG_S;
52
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /*__SYSDEF_H__*/