1 /*****************************************************************************
3 # Copyright 2020 AT&T Intellectual Property *
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 *
9 # http://www.apache.org/licenses/LICENSE-2.0 *
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. *
17 ******************************************************************************/
19 #ifndef ENCODE_KPM_HPP
20 #define ENCODE_KPM_HPP
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"
33 void encode_kpm(E2SM_KPM_IndicationMessage_t* indicationmessage);
35 void encode_kpm_bak(E2SM_KPM_IndicationMessage_t* indicationmessage);
37 void encode_kpm_function_description(E2SM_KPM_RANfunction_Description_t* ranfunc_desc);
39 void encode_kpm_report_style5(E2SM_KPM_IndicationMessage_t* indicationmessage);
41 void encode_kpm_odu_user_level(RAN_Container_t *ranco);
43 void encode_kpm_ocucp_user_level(RAN_Container_t *ranco);
45 void encode_e2sm_kpm_indication_header(E2SM_KPM_IndicationHeader_t *ihead);
47 void encode_kpm_ocuup_user_level(RAN_Container_t *ranco);
49 void encode_kpm_report_rancontainer_du(E2SM_KPM_IndicationMessage_t *indMsg);
51 void encode_kpm_report_rancontainer_cucp(E2SM_KPM_IndicationMessage_t *indMsg);
53 void encode_kpm_report_rancontainer_cuup(E2SM_KPM_IndicationMessage_t *indMsg);
55 void encode_kpm_report_style1(E2SM_KPM_IndicationMessage_t* indicationmessage);
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);
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);
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);
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);
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);