Additional fixes to KPM
[sim/e2-interface.git] / e2sim / e2sm_examples / kpm_e2sm / src / kpm / encode_kpm.hpp
1 /*****************************************************************************
2 #                                                                            *
3 # Copyright 2020 AT&T Intellectual Property                                  *
4 #                                                                            *
5 # Licensed under the Apache License, Version 2.0 (the "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 #      http://www.apache.org/licenses/LICENSE-2.0                            *
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 #ifndef ENCODE_KPM_HPP
20 #define ENCODE_KPM_HPP
21
22 extern "C" {
23   #include "OCUCP-PF-Container.h"
24   #include "OCTET_STRING.h"
25   #include "asn_application.h"
26   #include "E2SM-KPM-IndicationMessage.h"
27   #include "E2SM-KPM-IndicationHeader.h"  
28   #include "FQIPERSlicesPerPlmnListItem.h"
29   #include "E2SM-KPM-RANfunction-Description.h"
30   #include "Timestamp.h"
31 }
32
33 void encode_kpm(E2SM_KPM_IndicationMessage_t* indicationmessage);
34
35 void encode_kpm_bak(E2SM_KPM_IndicationMessage_t* indicationmessage);
36
37 void encode_kpm_function_description(E2SM_KPM_RANfunction_Description_t* ranfunc_desc);
38
39 void encode_kpm_report_style5(E2SM_KPM_IndicationMessage_t* indicationmessage);
40
41 void encode_kpm_odu_user_level(RAN_Container_t *ranco);
42
43 void encode_kpm_ocucp_user_level(RAN_Container_t *ranco);
44
45 void encode_e2sm_kpm_indication_header(E2SM_KPM_IndicationHeader_t *ihead, uint8_t *plmnid_buf, uint8_t *sst_buf, uint8_t *sd_buf, long fqival, long qcival, uint8_t *nrcellid_buf, uint8_t *gnbid_buf, int gnbid_unused, uint8_t *cuupid_buf, uint8_t *duid_buf, uint8_t *cuupname_buf);
46
47 void encode_kpm_ocuup_user_level(RAN_Container_t *ranco);
48
49 void encode_kpm_report_rancontainer_du(E2SM_KPM_IndicationMessage_t *indMsg);
50
51 void encode_kpm_report_rancontainer_cucp(E2SM_KPM_IndicationMessage_t *indMsg);
52
53 void encode_kpm_report_rancontainer_cuup(E2SM_KPM_IndicationMessage_t *indMsg);
54
55 void encode_kpm_report_style1(E2SM_KPM_IndicationMessage_t* indicationmessage);
56
57 void encode_kpm_report_rancontainer_du_parameterized(E2SM_KPM_IndicationMessage_t *indMsg, uint8_t *plmnid_buf, uint8_t *nrcellid_buf, uint8_t *crnti_buf, long prb_usage_dl, long prb_usage_ul);
58
59 void encode_kpm_report_rancontainer_cucp_parameterized(E2SM_KPM_IndicationMessage_t* indicationmessage,uint8_t *plmnid_buf,uint8_t *nrcellid_buf,uint8_t *crnti_buf,const uint8_t *serving_buf, const uint8_t *neighbor_buf);
60
61 void encode_kpm_report_rancontainer_cuup_parameterized(E2SM_KPM_IndicationMessage_t* indicationmessage, uint8_t *plmnid_buf, uint8_t *nrcellid_buf, uint8_t *crnti_buf,int pdcp_bytesdl, int pdcp_bytesul);
62
63 void encode_kpm_report_style1_parameterized(E2SM_KPM_IndicationMessage_t* indicationmessage, long fiveqi, long dl_prb_usage, long ul_prb_usage, uint8_t* sd_buf, uint8_t* sst_buf,uint8_t* plmnid_buf, uint8_t* nrcellid_buf, long *dl_prbs, long *ul_prbs);
64
65 void encode_kpm_report_style5_parameterized(E2SM_KPM_IndicationMessage_t* indicationmessage, uint8_t *gnbcuupname_buf, int bytes_dl,int bytes_ul, uint8_t *sst_buf, uint8_t *sd_buf, uint8_t *plmnid_buf);
66
67
68 #endif