blob: 2c3698368d26c3695c562a4e482ef84949eaa9fd [file] [log] [blame]
rajalakshmisv21b61dd2021-12-07 04:53:03 +00001#ifndef _WRAPPER_H_
2#define _WRAPPER_H_
3
rajalakshmisv21b61dd2021-12-07 04:53:03 +00004#include "BOOLEAN.h"
5#include "NativeReal.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +00006#include "REAL.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +00007#include "OCTET_STRING.h"
8#include "E2SM-RC-ControlHeader-Format1.h"
9#include "E2SM-RC-ControlHeader.h"
10#include "E2SM-RC-ControlMessage-Format1.h"
11#include "E2SM-RC-ControlMessage.h"
12#include "E2SM-RC-RANFunctionDefinition.h"
13#include "INTEGER.h"
14#include "NativeInteger.h"
15#include "OPEN_TYPE.h"
16#include "PrintableString.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +000017#include "RANParameter-ID.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +000018#include "RANParameter-LIST.h"
19#include "RANParameter-Name.h"
20#include "RANParameter-STRUCTURE.h"
21#include "RANParameter-Value.h"
22#include "RANParameter-ValueType.h"
23#include "RANfunction-Name.h"
24#include "RIC-ControlAction-ID.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +000025#include "RIC-ControlAction-Name.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +000026#include "RIC-Format-Type.h"
27#include "RIC-Style-Name.h"
28#include "RIC-Style-Type.h"
rajalakshmisv960885a2022-05-31 14:59:10 +000029#include "RANParameter-ValueType-Choice-ElementFalse.h"
30#include "RANParameter-ValueType-Choice-Structure.h"
31#include "UEID.h"
32#include "UEID-GNB.h"
33#include "UEID-GNB-CU-F1AP-ID-List.h"
34#include "UEID-GNB-CU-CP-E1AP-ID-List.h"
35#include "UEID-GNB-CU-CP-F1AP-ID-Item.h"
36#include "UEID-GNB-CU-CP-E1AP-ID-Item.h"
37#include "E2SM-RC-ControlMessage-Format1-Item.h"
38#include "RANParameter-STRUCTURE-Item.h"
39#include "E2SM-RC-ControlOutcome.h"
40#include "E2SM-RC-ControlOutcome-Format1.h"
41#include "E2SM-RC-ControlOutcome-Format1-Item.h"
42#include "NR-CGI.h"
rajalakshmisv21b61dd2021-12-07 04:53:03 +000043
44
rajalakshmisv960885a2022-05-31 14:59:10 +000045long F1AP_id[1];
46long E1AP_id[1];
47struct uEID {
48 long amf_UE_NGAP_Id;
49 //size_t amf_UE_NGAP_Id_size;
50 const char* pLMNIdentity;
51 size_t pLMNIdentity_size;
52 const char* aMFRegionID;
53 size_t aMFRegionID_size;
54 const char* aMFSetID;
55 size_t aMFSetID_size;
56 const char* aMFPointer;
57 size_t aMFPointer_size;
58};
rajalakshmisv21b61dd2021-12-07 04:53:03 +000059
rajalakshmisv960885a2022-05-31 14:59:10 +000060
61extern ssize_t e2sm_encode_ric_control_header(void *buffer, size_t buf_size,struct uEID *in,long f1AP[],size_t f1AP_len,long e1AP[],size_t e1Ap_len,long ricControlStyleType, long ricControlActionID, void *ranParameterValue, size_t ranParameterValue_size);
rajalakshmisv21b61dd2021-12-07 04:53:03 +000062
63extern ssize_t e2sm_encode_ric_control_message(void *buffer, size_t buf_size, long targetPrimaryCell, long targetCell, long nrOrEUtraCell, long nrCGIOrECGI, void *ranParameterValue, size_t ranParameterValue_size);
64
rajalakshmisv960885a2022-05-31 14:59:10 +000065extern E2SM_RC_ControlOutcome_t* e2sm_decode_ric_call_process_outcome(void *buffer, size_t buf_size);
66extern void e2sm_free_ric_call_process_outcome(E2SM_RC_ControlOutcome_t* controlOutcome) ;
67extern ssize_t e2sm_encode_nrcgi(NR_CGI_t *nr_cgi, void* ranParameterValue, size_t ranParameterValue_size,
68 ulong lNRCellId,uint8_t* buffer, size_t buf_size);
69
rajalakshmisv21b61dd2021-12-07 04:53:03 +000070#endif /* _WRAPPER_H_ */