SIM-115: update simulator to use latest E2SM KPM version 3
[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 "OCTET_STRING.h"
24   #include "asn_application.h"
25   #include "GranularityPeriod.h"
26   #include "TimeStamp.h"
27   #include "E2SM-KPM-IndicationHeader-Format1.h"
28   #include "E2SM-KPM-IndicationMessage-Format1.h"
29   #include "E2SM-KPM-IndicationMessage.h"
30   #include "E2SM-KPM-IndicationHeader.h"  
31   #include "E2SM-KPM-RANfunction-Description.h"
32   #include "RIC-EventTriggerStyle-Item.h"
33   #include "RIC-ReportStyle-Item.h"
34   #include "MeasurementDataItem.h"
35   #include "MeasurementRecordItem.h"
36   #include "MeasurementInfo-Action-Item.h"
37   #include "MeasurementInfoList.h"
38   #include "MeasurementInfoItem.h"
39   #include "LabelInfoItem.h"
40   #include "S-NSSAI.h"
41 }
42
43 void encode_kpm(E2SM_KPM_IndicationMessage_t* indicationmessage);
44
45 void encode_kpm_bak(E2SM_KPM_IndicationMessage_t* indicationmessage);
46
47 void encode_kpm_function_description(E2SM_KPM_RANfunction_Description_t* ranfunc_desc);
48
49 void encode_kpm_report_rancontainer_du(E2SM_KPM_IndicationMessage_t *indMsg);
50
51 void encode_kpm_report_style1(E2SM_KPM_IndicationMessage_t* indicationmessage);
52
53 void kpm_report_indication_header_initialized(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);
54
55 void ue_meas_kpm_report_indication_message_initialized(E2SM_KPM_IndicationMessage_t* indicationmessage,uint8_t *nrcellid_buf,uint8_t *crnti_buf,const uint8_t *serving_buf, const uint8_t *neighbor_buf);
56
57 void cell_meas_kpm_report_indication_message_style_1_initialized(E2SM_KPM_IndicationMessage_t* indicationmessage, long fiveqi, long dl_prb_usage, long ul_prb_usage, uint8_t* nrcellid_buf, long *dl_prbs, long *ul_prbs);
58
59
60
61 #endif