First commit

This commit is contained in:
Leonardo Bonati
2021-12-08 20:17:46 +00:00
commit 60dffad583
2923 changed files with 463894 additions and 0 deletions

View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="0.185205240">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.185205240" moduleId="org.eclipse.cdt.core.settings" name="Default">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.185205240" name="Default" optionalBuildProperties="org.eclipse.cdt.docker.launcher.containerbuild.property.selectedvolumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.volumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.connection=http://127.0.0.1:2375" parent="org.eclipse.cdt.build.core.prefbase.cfg">
<folderInfo id="0.185205240." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.721725282" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.721725282.638857149" name=""/>
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1591100253" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1799128674" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.282918221" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.271732010" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.1005745722" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1856122225" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
<tool id="org.eclipse.cdt.build.core.settings.holder.74715445" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="org.eclipse.cdt.build.core.settings.holder.incpaths.487224202" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="/usr/lib/gcc/x86_64-linux-gnu/7/include"/>
<listOptionValue builtIn="false" value="/usr/include/x86_64-linux-gnu"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.808058438" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</toolChain>
</folderInfo>
<fileInfo id="0.185205240.2054672562" name="configuration_update_wrapper.c" rcbsApplicability="disable" resourcePath="src/configuration_update_wrapper.c" toolsToInvoke="org.eclipse.cdt.build.core.settings.holder.74715445.1888082156">
<tool id="org.eclipse.cdt.build.core.settings.holder.74715445.1888082156" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder.282918221">
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="org.eclipse.cdt.build.core.settings.holder.incpaths.1119711765" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
<listOptionValue builtIn="false" value="/usr/include"/>
</option>
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1074471625" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
</tool>
</fileInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="asn1codec.null.2042648690" name="asn1codec"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="0.185205240">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
<storageModule moduleId="refreshScope"/>
</cproject>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>asn1codec</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,72 @@
##############################################################################
#
# Copyright (c) 2019 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
#
CFLAGS=-Wall -Wpedantic -std=c11 -Og -I./inc -I./src -I./e2ap_engine -DASN_DISABLE_OER_SUPPORT -DASN_PDU_COLLECTION -D_POSIX_C_SOURCE=200809L -ggdb
export CFLAGS
OBJDIR=lib
LIB=$(OBJDIR)/libe2ap_codec.a
LIBSRC=configuration_update_wrapper.c x2setup_request_wrapper.c x2reset_request_wrapper.c x2reset_response_wrapper.c asn1codec_utils.c
LIBOBJ=$(addprefix $(OBJDIR)/,$(LIBSRC:.c=.o))
TESTX2SETUPREQUEST=tests/x2setup_request_wrapper_test
TESTCONFUPDATE=tests/configuration_update_wrapper_test
TESTX2RESETREQUEST=tests/x2reset_request_wrapper_test
TESTX2RESETRESPONSE=tests/x2reset_response_wrapper_test
TESTUNPACKXER=tests/unpack_xer
.PHONY: all clean e2ap_engine
all: $(LIB) $(TESTX2SETUPREQUEST) $(TESTCONFUPDATE) $(TESTX2RESETREQUEST) $(TESTUNPACKXER) $(TESTX2RESETRESPONSE)
e2ap_engine/libasncodec.a:
cd e2ap_engine/ && make -f converter-example.mk
$(OBJDIR)/%.o: src/%.c e2ap_engine/*.h
mkdir -p $(dir $@)
$(CC) $(CFLAGS) -c $< -o $@
$(LIB): e2ap_engine/libasncodec.a $(LIBOBJ)
$(AR) -crv $(LIB) $(LIBOBJ)
$(TESTX2SETUPREQUEST): % : $(LIB) src/%.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) src/$@.c -o $@ $(LIB) e2ap_engine/libasncodec.a
$(TESTCONFUPDATE): % : $(LIB) src/%.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) src/$@.c -o $@ $(LIB) e2ap_engine/libasncodec.a
$(TESTX2RESETREQUEST): % : $(LIB) src/%.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) src/$@.c -o $@ $(LIB) e2ap_engine/libasncodec.a
$(TESTUNPACKXER): % : $(LIB) src/%.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) src/$@.c -o $@ $(LIB) e2ap_engine/libasncodec.a
$(TESTX2RESETRESPONSE): % : $(LIB) src/%.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) src/$@.c -o $@ $(LIB) e2ap_engine/libasncodec.a
clean:
rm -rf $(OBJDIR) tests
clobber:
cd e2ap_engine/ && make -f converter-example.mk clean
rm -rf $(OBJDIR) tests

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ABS-Status.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_ABS_Status_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ABS_Status, dL_ABS_status),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_DL_ABS_status,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"dL-ABS-status"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABS_Status, usableABSInformation),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
+1, /* EXPLICIT tag at current level */
&asn_DEF_UsableABSInformation,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"usableABSInformation"
},
{ ATF_POINTER, 1, offsetof(struct ABS_Status, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P106,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_ABS_Status_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_ABS_Status_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ABS_Status_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dL-ABS-status */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* usableABSInformation */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ABS_Status_specs_1 = {
sizeof(struct ABS_Status),
offsetof(struct ABS_Status, _asn_ctx),
asn_MAP_ABS_Status_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_ABS_Status_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ABS_Status = {
"ABS-Status",
"ABS-Status",
&asn_OP_SEQUENCE,
asn_DEF_ABS_Status_tags_1,
sizeof(asn_DEF_ABS_Status_tags_1)
/sizeof(asn_DEF_ABS_Status_tags_1[0]), /* 1 */
asn_DEF_ABS_Status_tags_1, /* Same as above */
sizeof(asn_DEF_ABS_Status_tags_1)
/sizeof(asn_DEF_ABS_Status_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ABS_Status_1,
3, /* Elements count */
&asn_SPC_ABS_Status_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ABS_Status_H_
#define _ABS_Status_H_
#include "asn_application.h"
/* Including external dependencies */
#include "DL-ABS-status.h"
#include "UsableABSInformation.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* ABS-Status */
typedef struct ABS_Status {
DL_ABS_status_t dL_ABS_status;
UsableABSInformation_t usableABSInformation;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ABS_Status_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ABS_Status;
extern asn_SEQUENCE_specifics_t asn_SPC_ABS_Status_specs_1;
extern asn_TYPE_member_t asn_MBR_ABS_Status_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _ABS_Status_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ABSInformation.h"
#include "ABSInformationFDD.h"
#include "ABSInformationTDD.h"
asn_per_constraints_t asn_PER_type_ABSInformation_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_ABSInformation_1[] = {
{ ATF_POINTER, 0, offsetof(struct ABSInformation, choice.fdd),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ABSInformationFDD,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"fdd"
},
{ ATF_POINTER, 0, offsetof(struct ABSInformation, choice.tdd),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ABSInformationTDD,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"tdd"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformation, choice.abs_inactive),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NULL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"abs-inactive"
},
};
static const asn_TYPE_tag2member_t asn_MAP_ABSInformation_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tdd */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* abs-inactive */
};
asn_CHOICE_specifics_t asn_SPC_ABSInformation_specs_1 = {
sizeof(struct ABSInformation),
offsetof(struct ABSInformation, _asn_ctx),
offsetof(struct ABSInformation, present),
sizeof(((struct ABSInformation *)0)->present),
asn_MAP_ABSInformation_tag2el_1,
3, /* Count of tags in the map */
0, 0,
3 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_ABSInformation = {
"ABSInformation",
"ABSInformation",
&asn_OP_CHOICE,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
{ 0, &asn_PER_type_ABSInformation_constr_1, CHOICE_constraint },
asn_MBR_ABSInformation_1,
3, /* Elements count */
&asn_SPC_ABSInformation_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ABSInformation_H_
#define _ABSInformation_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NULL.h"
#include "constr_CHOICE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum ABSInformation_PR {
ABSInformation_PR_NOTHING, /* No components present */
ABSInformation_PR_fdd,
ABSInformation_PR_tdd,
ABSInformation_PR_abs_inactive
/* Extensions may appear below */
} ABSInformation_PR;
/* Forward declarations */
struct ABSInformationFDD;
struct ABSInformationTDD;
/* ABSInformation */
typedef struct ABSInformation {
ABSInformation_PR present;
union ABSInformation_u {
struct ABSInformationFDD *fdd;
struct ABSInformationTDD *tdd;
NULL_t abs_inactive;
/*
* This type is extensible,
* possible extensions are below.
*/
} choice;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ABSInformation_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ABSInformation;
extern asn_CHOICE_specifics_t asn_SPC_ABSInformation_specs_1;
extern asn_TYPE_member_t asn_MBR_ABSInformation_1[3];
extern asn_per_constraints_t asn_PER_type_ABSInformation_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _ABSInformation_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,228 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ABSInformationFDD.h"
#include "ProtocolExtensionContainer.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
static int
memb_abs_pattern_info_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size == 40)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_measurement_subset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size == 40)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
0, 0 /* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
{ 0, 3, "one" },
{ 1, 3, "two" },
{ 2, 4, "four" }
/* This list is extensible */
};
static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
2, /* four(2) */
0, /* one(0) */
1 /* two(1) */
/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
4, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
"numberOfCellSpecificAntennaPorts",
"numberOfCellSpecificAntennaPorts",
&asn_OP_NativeEnumerated,
asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
/sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
/sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
{ 0, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_ABSInformationFDD_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, abs_pattern_info),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BIT_STRING,
0,
{ 0, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
0, 0, /* No default value */
"abs-pattern-info"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, numberOfCellSpecificAntennaPorts),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_numberOfCellSpecificAntennaPorts_3,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"numberOfCellSpecificAntennaPorts"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, measurement_subset),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BIT_STRING,
0,
{ 0, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
0, 0, /* No default value */
"measurement-subset"
},
{ ATF_POINTER, 1, offsetof(struct ABSInformationFDD, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P104,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_ABSInformationFDD_oms_1[] = { 3 };
static const ber_tlv_tag_t asn_DEF_ABSInformationFDD_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ABSInformationFDD_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ABSInformationFDD_specs_1 = {
sizeof(struct ABSInformationFDD),
offsetof(struct ABSInformationFDD, _asn_ctx),
asn_MAP_ABSInformationFDD_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_ABSInformationFDD_oms_1, /* Optional members */
1, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ABSInformationFDD = {
"ABSInformationFDD",
"ABSInformationFDD",
&asn_OP_SEQUENCE,
asn_DEF_ABSInformationFDD_tags_1,
sizeof(asn_DEF_ABSInformationFDD_tags_1)
/sizeof(asn_DEF_ABSInformationFDD_tags_1[0]), /* 1 */
asn_DEF_ABSInformationFDD_tags_1, /* Same as above */
sizeof(asn_DEF_ABSInformationFDD_tags_1)
/sizeof(asn_DEF_ABSInformationFDD_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ABSInformationFDD_1,
4, /* Elements count */
&asn_SPC_ABSInformationFDD_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ABSInformationFDD_H_
#define _ABSInformationFDD_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BIT_STRING.h"
#include "NativeEnumerated.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum ABSInformationFDD__numberOfCellSpecificAntennaPorts {
ABSInformationFDD__numberOfCellSpecificAntennaPorts_one = 0,
ABSInformationFDD__numberOfCellSpecificAntennaPorts_two = 1,
ABSInformationFDD__numberOfCellSpecificAntennaPorts_four = 2
/*
* Enumeration is extensible
*/
} e_ABSInformationFDD__numberOfCellSpecificAntennaPorts;
/* Forward declarations */
struct ProtocolExtensionContainer;
/* ABSInformationFDD */
typedef struct ABSInformationFDD {
BIT_STRING_t abs_pattern_info;
long numberOfCellSpecificAntennaPorts;
BIT_STRING_t measurement_subset;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ABSInformationFDD_t;
/* Implementation */
/* extern asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3; // (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_ABSInformationFDD;
extern asn_SEQUENCE_specifics_t asn_SPC_ABSInformationFDD_specs_1;
extern asn_TYPE_member_t asn_MBR_ABSInformationFDD_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _ABSInformationFDD_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,228 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ABSInformationTDD.h"
#include "ProtocolExtensionContainer.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
static int
memb_abs_pattern_info_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size >= 1 && size <= 70)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_measurement_subset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size >= 1 && size <= 70)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
0, 0 /* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
{ 0, 3, "one" },
{ 1, 3, "two" },
{ 2, 4, "four" }
/* This list is extensible */
};
static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
2, /* four(2) */
0, /* one(0) */
1 /* two(1) */
/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
4, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
"numberOfCellSpecificAntennaPorts",
"numberOfCellSpecificAntennaPorts",
&asn_OP_NativeEnumerated,
asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
/sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
/sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
{ 0, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_ABSInformationTDD_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, abs_pattern_info),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BIT_STRING,
0,
{ 0, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
0, 0, /* No default value */
"abs-pattern-info"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, numberOfCellSpecificAntennaPorts),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_numberOfCellSpecificAntennaPorts_3,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"numberOfCellSpecificAntennaPorts"
},
{ ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, measurement_subset),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BIT_STRING,
0,
{ 0, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
0, 0, /* No default value */
"measurement-subset"
},
{ ATF_POINTER, 1, offsetof(struct ABSInformationTDD, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P105,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_ABSInformationTDD_oms_1[] = { 3 };
static const ber_tlv_tag_t asn_DEF_ABSInformationTDD_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ABSInformationTDD_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ABSInformationTDD_specs_1 = {
sizeof(struct ABSInformationTDD),
offsetof(struct ABSInformationTDD, _asn_ctx),
asn_MAP_ABSInformationTDD_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_ABSInformationTDD_oms_1, /* Optional members */
1, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ABSInformationTDD = {
"ABSInformationTDD",
"ABSInformationTDD",
&asn_OP_SEQUENCE,
asn_DEF_ABSInformationTDD_tags_1,
sizeof(asn_DEF_ABSInformationTDD_tags_1)
/sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
asn_DEF_ABSInformationTDD_tags_1, /* Same as above */
sizeof(asn_DEF_ABSInformationTDD_tags_1)
/sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ABSInformationTDD_1,
4, /* Elements count */
&asn_SPC_ABSInformationTDD_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ABSInformationTDD_H_
#define _ABSInformationTDD_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BIT_STRING.h"
#include "NativeEnumerated.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum ABSInformationTDD__numberOfCellSpecificAntennaPorts {
ABSInformationTDD__numberOfCellSpecificAntennaPorts_one = 0,
ABSInformationTDD__numberOfCellSpecificAntennaPorts_two = 1,
ABSInformationTDD__numberOfCellSpecificAntennaPorts_four = 2
/*
* Enumeration is extensible
*/
} e_ABSInformationTDD__numberOfCellSpecificAntennaPorts;
/* Forward declarations */
struct ProtocolExtensionContainer;
/* ABSInformationTDD */
typedef struct ABSInformationTDD {
BIT_STRING_t abs_pattern_info;
long numberOfCellSpecificAntennaPorts;
BIT_STRING_t measurement_subset;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ABSInformationTDD_t;
/* Implementation */
/* extern asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3; // (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_ABSInformationTDD;
extern asn_SEQUENCE_specifics_t asn_SPC_ABSInformationTDD_specs_1;
extern asn_TYPE_member_t asn_MBR_ABSInformationTDD_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _ABSInformationTDD_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,451 @@
/*
* Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <ANY.h>
#include <errno.h>
asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs = {
sizeof(ANY_t),
offsetof(ANY_t, _asn_ctx),
ASN_OSUBV_ANY
};
asn_TYPE_operation_t asn_OP_ANY = {
OCTET_STRING_free,
OCTET_STRING_print,
OCTET_STRING_compare,
OCTET_STRING_decode_ber,
OCTET_STRING_encode_der,
OCTET_STRING_decode_xer_hex,
ANY_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
0,
0,
#else
0,
0,
#endif /* ASN_DISABLE_OER_SUPPORT */
#ifdef ASN_DISABLE_PER_SUPPORT
0, 0, 0, 0,
#else
ANY_decode_uper,
ANY_encode_uper,
ANY_decode_aper,
ANY_encode_aper,
#endif /* ASN_DISABLE_PER_SUPPORT */
0, /* Random fill is not defined for ANY type */
0 /* Use generic outmost tag fetcher */
};
asn_TYPE_descriptor_t asn_DEF_ANY = {
"ANY",
"ANY",
&asn_OP_ANY,
0, 0, 0, 0,
{ 0, 0, asn_generic_no_constraint }, /* No constraints */
0, 0, /* No members */
&asn_SPC_ANY_specs,
};
#undef RETURN
#define RETURN(_code) \
do { \
asn_dec_rval_t tmprval; \
tmprval.code = _code; \
tmprval.consumed = consumed_myself; \
return tmprval; \
} while(0)
asn_enc_rval_t
ANY_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb,
void *app_key) {
if(flags & XER_F_CANONICAL) {
/*
* Canonical XER-encoding of ANY type is not supported.
*/
ASN__ENCODE_FAILED;
}
/* Dump as binary */
return OCTET_STRING_encode_xer(td, sptr, ilevel, flags, cb, app_key);
}
struct _callback_arg {
uint8_t *buffer;
size_t offset;
size_t size;
};
static int ANY__consume_bytes(const void *buffer, size_t size, void *key);
int
ANY_fromType(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr) {
struct _callback_arg arg;
asn_enc_rval_t erval = {0,0,0};
if(!st || !td) {
errno = EINVAL;
return -1;
}
if(!sptr) {
if(st->buf) FREEMEM(st->buf);
st->size = 0;
return 0;
}
arg.offset = arg.size = 0;
arg.buffer = 0;
erval = der_encode(td, sptr, ANY__consume_bytes, &arg);
if(erval.encoded == -1) {
if(arg.buffer) FREEMEM(arg.buffer);
return -1;
}
assert((size_t)erval.encoded == arg.offset);
if(st->buf) FREEMEM(st->buf);
st->buf = arg.buffer;
st->size = arg.offset;
return 0;
}
int
ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr) {
uint8_t *buffer = NULL;
ssize_t erval;
if(!st || !td) {
errno = EINVAL;
return -1;
}
if(!sptr) {
if(st->buf) FREEMEM(st->buf);
st->size = 0;
return 0;
}
erval = aper_encode_to_new_buffer(td, td->encoding_constraints.per_constraints, sptr, (void**)&buffer);
if(erval == -1) {
if(buffer) FREEMEM(buffer);
return -1;
}
assert((size_t)erval > 0);
if(st->buf) FREEMEM(st->buf);
st->buf = buffer;
st->size = erval;
return 0;
}
ANY_t *
ANY_new_fromType(asn_TYPE_descriptor_t *td, void *sptr) {
ANY_t tmp;
ANY_t *st;
if(!td || !sptr) {
errno = EINVAL;
return 0;
}
memset(&tmp, 0, sizeof(tmp));
if(ANY_fromType(&tmp, td, sptr)) return 0;
st = (ANY_t *)CALLOC(1, sizeof(ANY_t));
if(st) {
*st = tmp;
return st;
} else {
FREEMEM(tmp.buf);
return 0;
}
}
ANY_t *
ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr) {
ANY_t tmp;
ANY_t *st;
if(!td || !sptr) {
errno = EINVAL;
return 0;
}
memset(&tmp, 0, sizeof(tmp));
if(ANY_fromType_aper(&tmp, td, sptr)) return 0;
st = (ANY_t *)CALLOC(1, sizeof(ANY_t));
if(st) {
*st = tmp;
return st;
} else {
FREEMEM(tmp.buf);
return 0;
}
}
int
ANY_to_type(ANY_t *st, asn_TYPE_descriptor_t *td, void **struct_ptr) {
asn_dec_rval_t rval;
void *newst = 0;
if(!st || !td || !struct_ptr) {
errno = EINVAL;
return -1;
}
if(st->buf == 0) {
/* Nothing to convert, make it empty. */
*struct_ptr = (void *)0;
return 0;
}
rval = ber_decode(0, td, (void **)&newst, st->buf, st->size);
if(rval.code == RC_OK) {
*struct_ptr = newst;
return 0;
} else {
/* Remove possibly partially decoded data. */
ASN_STRUCT_FREE(*td, newst);
return -1;
}
}
int
ANY_to_type_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void **struct_ptr) {
asn_dec_rval_t rval;
void *newst = 0;
if(!st || !td || !struct_ptr) {
errno = EINVAL;
return -1;
}
if(st->buf == 0) {
/* Nothing to convert, make it empty. */
*struct_ptr = (void *)0;
return 0;
}
rval = aper_decode(0, td, (void **)&newst, st->buf, st->size, 0, 0);
if(rval.code == RC_OK) {
*struct_ptr = newst;
return 0;
} else {
/* Remove possibly partially decoded data. */
ASN_STRUCT_FREE(*td, newst);
return -1;
}
}
static int ANY__consume_bytes(const void *buffer, size_t size, void *key) {
struct _callback_arg *arg = (struct _callback_arg *)key;
if((arg->offset + size) >= arg->size) {
size_t nsize = (arg->size ? arg->size << 2 : 16) + size;
void *p = REALLOC(arg->buffer, nsize);
if(!p) return -1;
arg->buffer = (uint8_t *)p;
arg->size = nsize;
}
memcpy(arg->buffer + arg->offset, buffer, size);
arg->offset += size;
assert(arg->offset < arg->size);
return 0;
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
ANY_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, void **sptr,
asn_per_data_t *pd) {
const asn_OCTET_STRING_specifics_t *specs =
td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics
: &asn_SPC_ANY_specs;
size_t consumed_myself = 0;
int repeat;
ANY_t *st = (ANY_t *)*sptr;
(void)opt_codec_ctx;
(void)constraints;
/*
* Allocate the structure.
*/
if(!st) {
st = (ANY_t *)(*sptr = CALLOC(1, specs->struct_size));
if(!st) RETURN(RC_FAIL);
}
ASN_DEBUG("UPER Decoding ANY type");
st->size = 0;
do {
ssize_t raw_len;
ssize_t len_bytes;
ssize_t len_bits;
void *p;
int ret;
/* Get the PER length */
raw_len = uper_get_length(pd, -1, 0, &repeat);
if(raw_len < 0) RETURN(RC_WMORE);
if(raw_len == 0 && st->buf) break;
ASN_DEBUG("Got PER length len %" ASN_PRI_SIZE ", %s (%s)", raw_len,
repeat ? "repeat" : "once", td->name);
len_bytes = raw_len;
len_bits = len_bytes * 8;
p = REALLOC(st->buf, st->size + len_bytes + 1);
if(!p) RETURN(RC_FAIL);
st->buf = (uint8_t *)p;
ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits);
if(ret < 0) RETURN(RC_WMORE);
consumed_myself += len_bits;
st->size += len_bytes;
} while(repeat);
st->buf[st->size] = 0; /* nul-terminate */
RETURN(RC_OK);
}
asn_enc_rval_t
ANY_encode_uper(const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, const void *sptr,
asn_per_outp_t *po) {
const ANY_t *st = (const ANY_t *)sptr;
asn_enc_rval_t er = {0, 0, 0};
const uint8_t *buf;
size_t size;
int ret;
(void)constraints;
if(!st || (!st->buf && st->size)) ASN__ENCODE_FAILED;
buf = st->buf;
size = st->size;
do {
int need_eom = 0;
ssize_t may_save = uper_put_length(po, size, &need_eom);
if(may_save < 0) ASN__ENCODE_FAILED;
ret = per_put_many_bits(po, buf, may_save * 8);
if(ret) ASN__ENCODE_FAILED;
buf += may_save;
size -= may_save;
assert(!(may_save & 0x07) || !size);
if(need_eom && uper_put_length(po, 0, 0))
ASN__ENCODE_FAILED; /* End of Message length */
} while(size);
ASN__ENCODED_OK(er);
}
asn_dec_rval_t
ANY_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, void **sptr,
asn_per_data_t *pd) {
const asn_OCTET_STRING_specifics_t *specs =
td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics
: &asn_SPC_ANY_specs;
size_t consumed_myself = 0;
int repeat;
ANY_t *st = (ANY_t *)*sptr;
(void)opt_codec_ctx;
(void)constraints;
/*
* Allocate the structure.
*/
if(!st) {
st = (ANY_t *)(*sptr = CALLOC(1, specs->struct_size));
if(!st) RETURN(RC_FAIL);
}
ASN_DEBUG("APER Decoding ANY type");
st->size = 0;
do {
ssize_t raw_len;
ssize_t len_bytes;
ssize_t len_bits;
void *p;
int ret;
/* Get the PER length */
raw_len = aper_get_length(pd, -1, 0, &repeat);
if(raw_len < 0) RETURN(RC_WMORE);
if(raw_len == 0 && st->buf) break;
ASN_DEBUG("Got PER length len %" ASN_PRI_SIZE ", %s (%s)", raw_len,
repeat ? "repeat" : "once", td->name);
len_bytes = raw_len;
len_bits = len_bytes * 8;
p = REALLOC(st->buf, st->size + len_bytes + 1);
if(!p) RETURN(RC_FAIL);
st->buf = (uint8_t *)p;
ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits);
if(ret < 0) RETURN(RC_WMORE);
consumed_myself += len_bits;
st->size += len_bytes;
} while(repeat);
st->buf[st->size] = 0; /* nul-terminate */
RETURN(RC_OK);
}
asn_enc_rval_t
ANY_encode_aper(const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, const void *sptr,
asn_per_outp_t *po) {
const ANY_t *st = (const ANY_t *)sptr;
asn_enc_rval_t er = {0, 0, 0};
const uint8_t *buf;
size_t size;
int ret;
(void)constraints;
if(!st || (!st->buf && st->size)) ASN__ENCODE_FAILED;
buf = st->buf;
size = st->size;
do {
int need_eom = 0;
ssize_t may_save = uper_put_length(po, size, &need_eom);
if(may_save < 0) ASN__ENCODE_FAILED;
ret = per_put_many_bits(po, buf, may_save * 8);
if(ret) ASN__ENCODE_FAILED;
buf += may_save;
size -= may_save;
assert(!(may_save & 0x07) || !size);
if(need_eom && uper_put_length(po, 0, 0))
ASN__ENCODE_FAILED; /* End of Message length */
} while(size);
ASN__ENCODED_OK(er);
}
#endif /* ASN_DISABLE_PER_SUPPORT */

View File

@@ -0,0 +1,66 @@
/*-
* Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_TYPE_ANY_H
#define ASN_TYPE_ANY_H
#include <OCTET_STRING.h> /* Implemented via OCTET STRING type */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ANY {
uint8_t *buf; /* BER-encoded ANY contents */
int size; /* Size of the above buffer */
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
} ANY_t;
extern asn_TYPE_descriptor_t asn_DEF_ANY;
extern asn_TYPE_operation_t asn_OP_ANY;
extern asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs;
asn_struct_free_f ANY_free;
asn_struct_print_f ANY_print;
ber_type_decoder_f ANY_decode_ber;
der_type_encoder_f ANY_encode_der;
xer_type_encoder_f ANY_encode_xer;
per_type_decoder_f ANY_decode_uper;
per_type_encoder_f ANY_encode_uper;
per_type_decoder_f ANY_decode_aper;
per_type_encoder_f ANY_encode_aper;
#define ANY_free OCTET_STRING_free
#define ANY_print OCTET_STRING_print
#define ANY_compare OCTET_STRING_compare
#define ANY_constraint asn_generic_no_constraint
#define ANY_decode_ber OCTET_STRING_decode_ber
#define ANY_encode_der OCTET_STRING_encode_der
#define ANY_decode_xer OCTET_STRING_decode_xer_hex
/******************************
* Handy conversion routines. *
******************************/
/* Convert another ASN.1 type into the ANY. This implies DER encoding. */
int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr);
int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr);
ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr);
ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr);
/* Convert the contents of the ANY type into the specified type. */
int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf( \
&asn_DEF_ANY, (buf), (size))
#ifdef __cplusplus
}
#endif
#endif /* ASN_TYPE_ANY_H */

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AS-SecurityInformation.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_AS_SecurityInformation_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AS_SecurityInformation, key_eNodeB_star),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Key_eNodeB_Star,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"key-eNodeB-star"
},
{ ATF_NOFLAGS, 0, offsetof(struct AS_SecurityInformation, nextHopChainingCount),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NextHopChainingCount,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"nextHopChainingCount"
},
{ ATF_POINTER, 1, offsetof(struct AS_SecurityInformation, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P110,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_AS_SecurityInformation_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_AS_SecurityInformation_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_AS_SecurityInformation_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* key-eNodeB-star */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nextHopChainingCount */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_AS_SecurityInformation_specs_1 = {
sizeof(struct AS_SecurityInformation),
offsetof(struct AS_SecurityInformation, _asn_ctx),
asn_MAP_AS_SecurityInformation_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_AS_SecurityInformation_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_AS_SecurityInformation = {
"AS-SecurityInformation",
"AS-SecurityInformation",
&asn_OP_SEQUENCE,
asn_DEF_AS_SecurityInformation_tags_1,
sizeof(asn_DEF_AS_SecurityInformation_tags_1)
/sizeof(asn_DEF_AS_SecurityInformation_tags_1[0]), /* 1 */
asn_DEF_AS_SecurityInformation_tags_1, /* Same as above */
sizeof(asn_DEF_AS_SecurityInformation_tags_1)
/sizeof(asn_DEF_AS_SecurityInformation_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_AS_SecurityInformation_1,
3, /* Elements count */
&asn_SPC_AS_SecurityInformation_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AS_SecurityInformation_H_
#define _AS_SecurityInformation_H_
#include "asn_application.h"
/* Including external dependencies */
#include "Key-eNodeB-Star.h"
#include "NextHopChainingCount.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* AS-SecurityInformation */
typedef struct AS_SecurityInformation {
Key_eNodeB_Star_t key_eNodeB_star;
NextHopChainingCount_t nextHopChainingCount;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AS_SecurityInformation_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AS_SecurityInformation;
extern asn_SEQUENCE_specifics_t asn_SPC_AS_SecurityInformation_specs_1;
extern asn_TYPE_member_t asn_MBR_AS_SecurityInformation_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _AS_SecurityInformation_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActionParameter-ID.h"
int
ActionParameter_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_ActionParameter_ID_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_ActionParameter_ID_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ActionParameter_ID = {
"ActionParameter-ID",
"ActionParameter-ID",
&asn_OP_NativeInteger,
asn_DEF_ActionParameter_ID_tags_1,
sizeof(asn_DEF_ActionParameter_ID_tags_1)
/sizeof(asn_DEF_ActionParameter_ID_tags_1[0]), /* 1 */
asn_DEF_ActionParameter_ID_tags_1, /* Same as above */
sizeof(asn_DEF_ActionParameter_ID_tags_1)
/sizeof(asn_DEF_ActionParameter_ID_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_ActionParameter_ID_constr_1, ActionParameter_ID_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActionParameter_ID_H_
#define _ActionParameter_ID_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ActionParameter-ID */
typedef long ActionParameter_ID_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_ActionParameter_ID_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_ActionParameter_ID;
asn_struct_free_f ActionParameter_ID_free;
asn_struct_print_f ActionParameter_ID_print;
asn_constr_check_f ActionParameter_ID_constraint;
ber_type_decoder_f ActionParameter_ID_decode_ber;
der_type_encoder_f ActionParameter_ID_encode_der;
xer_type_decoder_f ActionParameter_ID_decode_xer;
xer_type_encoder_f ActionParameter_ID_encode_xer;
per_type_decoder_f ActionParameter_ID_decode_uper;
per_type_encoder_f ActionParameter_ID_encode_uper;
per_type_decoder_f ActionParameter_ID_decode_aper;
per_type_encoder_f ActionParameter_ID_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _ActionParameter_ID_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActionParameter-Item.h"
asn_TYPE_member_t asn_MBR_ActionParameter_Item_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Item, actionParameter_ID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ActionParameter_ID,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"actionParameter-ID"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Item, actionParameter_Value),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
+1, /* EXPLICIT tag at current level */
&asn_DEF_ActionParameter_Value,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"actionParameter-Value"
},
};
static const ber_tlv_tag_t asn_DEF_ActionParameter_Item_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ActionParameter_Item_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* actionParameter-ID */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* actionParameter-Value */
};
asn_SEQUENCE_specifics_t asn_SPC_ActionParameter_Item_specs_1 = {
sizeof(struct ActionParameter_Item),
offsetof(struct ActionParameter_Item, _asn_ctx),
asn_MAP_ActionParameter_Item_tag2el_1,
2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
2, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ActionParameter_Item = {
"ActionParameter-Item",
"ActionParameter-Item",
&asn_OP_SEQUENCE,
asn_DEF_ActionParameter_Item_tags_1,
sizeof(asn_DEF_ActionParameter_Item_tags_1)
/sizeof(asn_DEF_ActionParameter_Item_tags_1[0]), /* 1 */
asn_DEF_ActionParameter_Item_tags_1, /* Same as above */
sizeof(asn_DEF_ActionParameter_Item_tags_1)
/sizeof(asn_DEF_ActionParameter_Item_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ActionParameter_Item_1,
2, /* Elements count */
&asn_SPC_ActionParameter_Item_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActionParameter_Item_H_
#define _ActionParameter_Item_H_
#include "asn_application.h"
/* Including external dependencies */
#include "ActionParameter-ID.h"
#include "ActionParameter-Value.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ActionParameter-Item */
typedef struct ActionParameter_Item {
ActionParameter_ID_t actionParameter_ID;
ActionParameter_Value_t actionParameter_Value;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActionParameter_Item_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActionParameter_Item;
extern asn_SEQUENCE_specifics_t asn_SPC_ActionParameter_Item_specs_1;
extern asn_TYPE_member_t asn_MBR_ActionParameter_Item_1[2];
#ifdef __cplusplus
}
#endif
#endif /* _ActionParameter_Item_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,125 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActionParameter-Value.h"
asn_per_constraints_t asn_PER_type_ActionParameter_Value_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_ActionParameter_Value_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valueInt),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valueInt"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valueEnum),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valueEnum"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valueBool),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BOOLEAN,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valueBool"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valueBitS),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BIT_STRING,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valueBitS"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valueOctS),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_OCTET_STRING,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valueOctS"
},
{ ATF_NOFLAGS, 0, offsetof(struct ActionParameter_Value, choice.valuePrtS),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PrintableString,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"valuePrtS"
},
};
static const asn_TYPE_tag2member_t asn_MAP_ActionParameter_Value_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* valueInt */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* valueEnum */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* valueBool */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* valueBitS */
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* valueOctS */
{ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* valuePrtS */
};
asn_CHOICE_specifics_t asn_SPC_ActionParameter_Value_specs_1 = {
sizeof(struct ActionParameter_Value),
offsetof(struct ActionParameter_Value, _asn_ctx),
offsetof(struct ActionParameter_Value, present),
sizeof(((struct ActionParameter_Value *)0)->present),
asn_MAP_ActionParameter_Value_tag2el_1,
6, /* Count of tags in the map */
0, 0,
6 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_ActionParameter_Value = {
"ActionParameter-Value",
"ActionParameter-Value",
&asn_OP_CHOICE,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
{ 0, &asn_PER_type_ActionParameter_Value_constr_1, CHOICE_constraint },
asn_MBR_ActionParameter_Value_1,
6, /* Elements count */
&asn_SPC_ActionParameter_Value_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActionParameter_Value_H_
#define _ActionParameter_Value_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#include "BOOLEAN.h"
#include "BIT_STRING.h"
#include "OCTET_STRING.h"
#include "PrintableString.h"
#include "constr_CHOICE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum ActionParameter_Value_PR {
ActionParameter_Value_PR_NOTHING, /* No components present */
ActionParameter_Value_PR_valueInt,
ActionParameter_Value_PR_valueEnum,
ActionParameter_Value_PR_valueBool,
ActionParameter_Value_PR_valueBitS,
ActionParameter_Value_PR_valueOctS,
ActionParameter_Value_PR_valuePrtS
/* Extensions may appear below */
} ActionParameter_Value_PR;
/* ActionParameter-Value */
typedef struct ActionParameter_Value {
ActionParameter_Value_PR present;
union ActionParameter_Value_u {
long valueInt;
long valueEnum;
BOOLEAN_t valueBool;
BIT_STRING_t valueBitS;
OCTET_STRING_t valueOctS;
PrintableString_t valuePrtS;
/*
* This type is extensible,
* possible extensions are below.
*/
} choice;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActionParameter_Value_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActionParameter_Value;
extern asn_CHOICE_specifics_t asn_SPC_ActionParameter_Value_specs_1;
extern asn_TYPE_member_t asn_MBR_ActionParameter_Value_1[6];
extern asn_per_constraints_t asn_PER_type_ActionParameter_Value_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _ActionParameter_Value_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActivatedCellList-Item.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_ActivatedCellList_Item_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActivatedCellList_Item, ecgi),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ECGI,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"ecgi"
},
{ ATF_POINTER, 1, offsetof(struct ActivatedCellList_Item, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P15,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_ActivatedCellList_Item_oms_1[] = { 1 };
static const ber_tlv_tag_t asn_DEF_ActivatedCellList_Item_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ActivatedCellList_Item_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecgi */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ActivatedCellList_Item_specs_1 = {
sizeof(struct ActivatedCellList_Item),
offsetof(struct ActivatedCellList_Item, _asn_ctx),
asn_MAP_ActivatedCellList_Item_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_ActivatedCellList_Item_oms_1, /* Optional members */
1, 0, /* Root/Additions */
2, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ActivatedCellList_Item = {
"ActivatedCellList-Item",
"ActivatedCellList-Item",
&asn_OP_SEQUENCE,
asn_DEF_ActivatedCellList_Item_tags_1,
sizeof(asn_DEF_ActivatedCellList_Item_tags_1)
/sizeof(asn_DEF_ActivatedCellList_Item_tags_1[0]), /* 1 */
asn_DEF_ActivatedCellList_Item_tags_1, /* Same as above */
sizeof(asn_DEF_ActivatedCellList_Item_tags_1)
/sizeof(asn_DEF_ActivatedCellList_Item_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ActivatedCellList_Item_1,
2, /* Elements count */
&asn_SPC_ActivatedCellList_Item_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActivatedCellList_Item_H_
#define _ActivatedCellList_Item_H_
#include "asn_application.h"
/* Including external dependencies */
#include "ECGI.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* ActivatedCellList-Item */
typedef struct ActivatedCellList_Item {
ECGI_t ecgi;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActivatedCellList_Item_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActivatedCellList_Item;
extern asn_SEQUENCE_specifics_t asn_SPC_ActivatedCellList_Item_specs_1;
extern asn_TYPE_member_t asn_MBR_ActivatedCellList_Item_1[2];
#ifdef __cplusplus
}
#endif
#endif /* _ActivatedCellList_Item_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActivatedCellList.h"
#include "ActivatedCellList-Item.h"
static asn_per_constraints_t asn_PER_type_ActivatedCellList_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 8, 8, 1, 256 } /* (SIZE(1..256)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_ActivatedCellList_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_ActivatedCellList_Item,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_ActivatedCellList_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_ActivatedCellList_specs_1 = {
sizeof(struct ActivatedCellList),
offsetof(struct ActivatedCellList, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_ActivatedCellList = {
"ActivatedCellList",
"ActivatedCellList",
&asn_OP_SEQUENCE_OF,
asn_DEF_ActivatedCellList_tags_1,
sizeof(asn_DEF_ActivatedCellList_tags_1)
/sizeof(asn_DEF_ActivatedCellList_tags_1[0]), /* 1 */
asn_DEF_ActivatedCellList_tags_1, /* Same as above */
sizeof(asn_DEF_ActivatedCellList_tags_1)
/sizeof(asn_DEF_ActivatedCellList_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_ActivatedCellList_constr_1, SEQUENCE_OF_constraint },
asn_MBR_ActivatedCellList_1,
1, /* Single element */
&asn_SPC_ActivatedCellList_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActivatedCellList_H_
#define _ActivatedCellList_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ActivatedCellList_Item;
/* ActivatedCellList */
typedef struct ActivatedCellList {
A_SEQUENCE_OF(struct ActivatedCellList_Item) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActivatedCellList_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActivatedCellList;
#ifdef __cplusplus
}
#endif
#endif /* _ActivatedCellList_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActivatedNRCellList-Item.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_ActivatedNRCellList_Item_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActivatedNRCellList_Item, nrCellID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NRCGI,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"nrCellID"
},
{ ATF_POINTER, 1, offsetof(struct ActivatedNRCellList_Item, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P102,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_ActivatedNRCellList_Item_oms_1[] = { 1 };
static const ber_tlv_tag_t asn_DEF_ActivatedNRCellList_Item_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ActivatedNRCellList_Item_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrCellID */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_ActivatedNRCellList_Item_specs_1 = {
sizeof(struct ActivatedNRCellList_Item),
offsetof(struct ActivatedNRCellList_Item, _asn_ctx),
asn_MAP_ActivatedNRCellList_Item_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_ActivatedNRCellList_Item_oms_1, /* Optional members */
1, 0, /* Root/Additions */
2, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ActivatedNRCellList_Item = {
"ActivatedNRCellList-Item",
"ActivatedNRCellList-Item",
&asn_OP_SEQUENCE,
asn_DEF_ActivatedNRCellList_Item_tags_1,
sizeof(asn_DEF_ActivatedNRCellList_Item_tags_1)
/sizeof(asn_DEF_ActivatedNRCellList_Item_tags_1[0]), /* 1 */
asn_DEF_ActivatedNRCellList_Item_tags_1, /* Same as above */
sizeof(asn_DEF_ActivatedNRCellList_Item_tags_1)
/sizeof(asn_DEF_ActivatedNRCellList_Item_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_ActivatedNRCellList_Item_1,
2, /* Elements count */
&asn_SPC_ActivatedNRCellList_Item_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActivatedNRCellList_Item_H_
#define _ActivatedNRCellList_Item_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NRCGI.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* ActivatedNRCellList-Item */
typedef struct ActivatedNRCellList_Item {
NRCGI_t nrCellID;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActivatedNRCellList_Item_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActivatedNRCellList_Item;
extern asn_SEQUENCE_specifics_t asn_SPC_ActivatedNRCellList_Item_specs_1;
extern asn_TYPE_member_t asn_MBR_ActivatedNRCellList_Item_1[2];
#ifdef __cplusplus
}
#endif
#endif /* _ActivatedNRCellList_Item_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActivatedNRCellList.h"
#include "ActivatedNRCellList-Item.h"
static asn_per_constraints_t asn_PER_type_ActivatedNRCellList_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 14, 14, 1, 16384 } /* (SIZE(1..16384)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_ActivatedNRCellList_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_ActivatedNRCellList_Item,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_ActivatedNRCellList_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_ActivatedNRCellList_specs_1 = {
sizeof(struct ActivatedNRCellList),
offsetof(struct ActivatedNRCellList, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_ActivatedNRCellList = {
"ActivatedNRCellList",
"ActivatedNRCellList",
&asn_OP_SEQUENCE_OF,
asn_DEF_ActivatedNRCellList_tags_1,
sizeof(asn_DEF_ActivatedNRCellList_tags_1)
/sizeof(asn_DEF_ActivatedNRCellList_tags_1[0]), /* 1 */
asn_DEF_ActivatedNRCellList_tags_1, /* Same as above */
sizeof(asn_DEF_ActivatedNRCellList_tags_1)
/sizeof(asn_DEF_ActivatedNRCellList_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_ActivatedNRCellList_constr_1, SEQUENCE_OF_constraint },
asn_MBR_ActivatedNRCellList_1,
1, /* Single element */
&asn_SPC_ActivatedNRCellList_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-PDU-Contents"
* found in "../../asnFiles/X2AP-PDU-Contents.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActivatedNRCellList_H_
#define _ActivatedNRCellList_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ActivatedNRCellList_Item;
/* ActivatedNRCellList */
typedef struct ActivatedNRCellList {
A_SEQUENCE_OF(struct ActivatedNRCellList_Item) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ActivatedNRCellList_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_ActivatedNRCellList;
#ifdef __cplusplus
}
#endif
#endif /* _ActivatedNRCellList_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "ActivationID.h"
int
ActivationID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 0 && value <= 255)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_ActivationID_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_ActivationID_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_ActivationID = {
"ActivationID",
"ActivationID",
&asn_OP_NativeInteger,
asn_DEF_ActivationID_tags_1,
sizeof(asn_DEF_ActivationID_tags_1)
/sizeof(asn_DEF_ActivationID_tags_1[0]), /* 1 */
asn_DEF_ActivationID_tags_1, /* Same as above */
sizeof(asn_DEF_ActivationID_tags_1)
/sizeof(asn_DEF_ActivationID_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_ActivationID_constr_1, ActivationID_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _ActivationID_H_
#define _ActivationID_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ActivationID */
typedef long ActivationID_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_ActivationID_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_ActivationID;
asn_struct_free_f ActivationID_free;
asn_struct_print_f ActivationID_print;
asn_constr_check_f ActivationID_constraint;
ber_type_decoder_f ActivationID_decode_ber;
der_type_encoder_f ActivationID_encode_der;
xer_type_decoder_f ActivationID_decode_xer;
xer_type_encoder_f ActivationID_encode_xer;
per_type_decoder_f ActivationID_decode_uper;
per_type_encoder_f ActivationID_encode_uper;
per_type_decoder_f ActivationID_decode_aper;
per_type_encoder_f ActivationID_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _ActivationID_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AdditionalSpecialSubframe-Info.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_AdditionalSpecialSubframe_Info_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframe_Info, additionalspecialSubframePatterns),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AdditionalSpecialSubframePatterns,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"additionalspecialSubframePatterns"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframe_Info, cyclicPrefixDL),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CyclicPrefixDL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cyclicPrefixDL"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframe_Info, cyclicPrefixUL),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CyclicPrefixUL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cyclicPrefixUL"
},
{ ATF_POINTER, 1, offsetof(struct AdditionalSpecialSubframe_Info, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P107,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_AdditionalSpecialSubframe_Info_oms_1[] = { 3 };
static const ber_tlv_tag_t asn_DEF_AdditionalSpecialSubframe_Info_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_AdditionalSpecialSubframe_Info_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* additionalspecialSubframePatterns */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cyclicPrefixDL */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cyclicPrefixUL */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_AdditionalSpecialSubframe_Info_specs_1 = {
sizeof(struct AdditionalSpecialSubframe_Info),
offsetof(struct AdditionalSpecialSubframe_Info, _asn_ctx),
asn_MAP_AdditionalSpecialSubframe_Info_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_AdditionalSpecialSubframe_Info_oms_1, /* Optional members */
1, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframe_Info = {
"AdditionalSpecialSubframe-Info",
"AdditionalSpecialSubframe-Info",
&asn_OP_SEQUENCE,
asn_DEF_AdditionalSpecialSubframe_Info_tags_1,
sizeof(asn_DEF_AdditionalSpecialSubframe_Info_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframe_Info_tags_1[0]), /* 1 */
asn_DEF_AdditionalSpecialSubframe_Info_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalSpecialSubframe_Info_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframe_Info_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_AdditionalSpecialSubframe_Info_1,
4, /* Elements count */
&asn_SPC_AdditionalSpecialSubframe_Info_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AdditionalSpecialSubframe_Info_H_
#define _AdditionalSpecialSubframe_Info_H_
#include "asn_application.h"
/* Including external dependencies */
#include "AdditionalSpecialSubframePatterns.h"
#include "CyclicPrefixDL.h"
#include "CyclicPrefixUL.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* AdditionalSpecialSubframe-Info */
typedef struct AdditionalSpecialSubframe_Info {
AdditionalSpecialSubframePatterns_t additionalspecialSubframePatterns;
CyclicPrefixDL_t cyclicPrefixDL;
CyclicPrefixUL_t cyclicPrefixUL;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AdditionalSpecialSubframe_Info_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframe_Info;
extern asn_SEQUENCE_specifics_t asn_SPC_AdditionalSpecialSubframe_Info_specs_1;
extern asn_TYPE_member_t asn_MBR_AdditionalSpecialSubframe_Info_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _AdditionalSpecialSubframe_Info_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AdditionalSpecialSubframeExtension-Info.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_AdditionalSpecialSubframeExtension_Info_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframeExtension_Info, additionalspecialSubframePatternsExtension),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AdditionalSpecialSubframePatternsExtension,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"additionalspecialSubframePatternsExtension"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframeExtension_Info, cyclicPrefixDL),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CyclicPrefixDL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cyclicPrefixDL"
},
{ ATF_NOFLAGS, 0, offsetof(struct AdditionalSpecialSubframeExtension_Info, cyclicPrefixUL),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CyclicPrefixUL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cyclicPrefixUL"
},
{ ATF_POINTER, 1, offsetof(struct AdditionalSpecialSubframeExtension_Info, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P108,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_AdditionalSpecialSubframeExtension_Info_oms_1[] = { 3 };
static const ber_tlv_tag_t asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_AdditionalSpecialSubframeExtension_Info_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* additionalspecialSubframePatternsExtension */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cyclicPrefixDL */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cyclicPrefixUL */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_AdditionalSpecialSubframeExtension_Info_specs_1 = {
sizeof(struct AdditionalSpecialSubframeExtension_Info),
offsetof(struct AdditionalSpecialSubframeExtension_Info, _asn_ctx),
asn_MAP_AdditionalSpecialSubframeExtension_Info_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_AdditionalSpecialSubframeExtension_Info_oms_1, /* Optional members */
1, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframeExtension_Info = {
"AdditionalSpecialSubframeExtension-Info",
"AdditionalSpecialSubframeExtension-Info",
&asn_OP_SEQUENCE,
asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1,
sizeof(asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1[0]), /* 1 */
asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframeExtension_Info_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_AdditionalSpecialSubframeExtension_Info_1,
4, /* Elements count */
&asn_SPC_AdditionalSpecialSubframeExtension_Info_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AdditionalSpecialSubframeExtension_Info_H_
#define _AdditionalSpecialSubframeExtension_Info_H_
#include "asn_application.h"
/* Including external dependencies */
#include "AdditionalSpecialSubframePatternsExtension.h"
#include "CyclicPrefixDL.h"
#include "CyclicPrefixUL.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* AdditionalSpecialSubframeExtension-Info */
typedef struct AdditionalSpecialSubframeExtension_Info {
AdditionalSpecialSubframePatternsExtension_t additionalspecialSubframePatternsExtension;
CyclicPrefixDL_t cyclicPrefixDL;
CyclicPrefixUL_t cyclicPrefixUL;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AdditionalSpecialSubframeExtension_Info_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframeExtension_Info;
extern asn_SEQUENCE_specifics_t asn_SPC_AdditionalSpecialSubframeExtension_Info_specs_1;
extern asn_TYPE_member_t asn_MBR_AdditionalSpecialSubframeExtension_Info_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _AdditionalSpecialSubframeExtension_Info_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AdditionalSpecialSubframePatterns.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_AdditionalSpecialSubframePatterns_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 9 } /* (0..9,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_AdditionalSpecialSubframePatterns_value2enum_1[] = {
{ 0, 4, "ssp0" },
{ 1, 4, "ssp1" },
{ 2, 4, "ssp2" },
{ 3, 4, "ssp3" },
{ 4, 4, "ssp4" },
{ 5, 4, "ssp5" },
{ 6, 4, "ssp6" },
{ 7, 4, "ssp7" },
{ 8, 4, "ssp8" },
{ 9, 4, "ssp9" }
/* This list is extensible */
};
static const unsigned int asn_MAP_AdditionalSpecialSubframePatterns_enum2value_1[] = {
0, /* ssp0(0) */
1, /* ssp1(1) */
2, /* ssp2(2) */
3, /* ssp3(3) */
4, /* ssp4(4) */
5, /* ssp5(5) */
6, /* ssp6(6) */
7, /* ssp7(7) */
8, /* ssp8(8) */
9 /* ssp9(9) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_AdditionalSpecialSubframePatterns_specs_1 = {
asn_MAP_AdditionalSpecialSubframePatterns_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_AdditionalSpecialSubframePatterns_enum2value_1, /* N => "tag"; sorted by N */
10, /* Number of elements in the maps */
11, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_AdditionalSpecialSubframePatterns_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframePatterns = {
"AdditionalSpecialSubframePatterns",
"AdditionalSpecialSubframePatterns",
&asn_OP_NativeEnumerated,
asn_DEF_AdditionalSpecialSubframePatterns_tags_1,
sizeof(asn_DEF_AdditionalSpecialSubframePatterns_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframePatterns_tags_1[0]), /* 1 */
asn_DEF_AdditionalSpecialSubframePatterns_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalSpecialSubframePatterns_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframePatterns_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_AdditionalSpecialSubframePatterns_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_AdditionalSpecialSubframePatterns_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AdditionalSpecialSubframePatterns_H_
#define _AdditionalSpecialSubframePatterns_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum AdditionalSpecialSubframePatterns {
AdditionalSpecialSubframePatterns_ssp0 = 0,
AdditionalSpecialSubframePatterns_ssp1 = 1,
AdditionalSpecialSubframePatterns_ssp2 = 2,
AdditionalSpecialSubframePatterns_ssp3 = 3,
AdditionalSpecialSubframePatterns_ssp4 = 4,
AdditionalSpecialSubframePatterns_ssp5 = 5,
AdditionalSpecialSubframePatterns_ssp6 = 6,
AdditionalSpecialSubframePatterns_ssp7 = 7,
AdditionalSpecialSubframePatterns_ssp8 = 8,
AdditionalSpecialSubframePatterns_ssp9 = 9
/*
* Enumeration is extensible
*/
} e_AdditionalSpecialSubframePatterns;
/* AdditionalSpecialSubframePatterns */
typedef long AdditionalSpecialSubframePatterns_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_AdditionalSpecialSubframePatterns_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframePatterns;
extern const asn_INTEGER_specifics_t asn_SPC_AdditionalSpecialSubframePatterns_specs_1;
asn_struct_free_f AdditionalSpecialSubframePatterns_free;
asn_struct_print_f AdditionalSpecialSubframePatterns_print;
asn_constr_check_f AdditionalSpecialSubframePatterns_constraint;
ber_type_decoder_f AdditionalSpecialSubframePatterns_decode_ber;
der_type_encoder_f AdditionalSpecialSubframePatterns_encode_der;
xer_type_decoder_f AdditionalSpecialSubframePatterns_decode_xer;
xer_type_encoder_f AdditionalSpecialSubframePatterns_encode_xer;
per_type_decoder_f AdditionalSpecialSubframePatterns_decode_uper;
per_type_encoder_f AdditionalSpecialSubframePatterns_encode_uper;
per_type_decoder_f AdditionalSpecialSubframePatterns_decode_aper;
per_type_encoder_f AdditionalSpecialSubframePatterns_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _AdditionalSpecialSubframePatterns_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AdditionalSpecialSubframePatternsExtension.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_AdditionalSpecialSubframePatternsExtension_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_AdditionalSpecialSubframePatternsExtension_value2enum_1[] = {
{ 0, 5, "ssp10" }
/* This list is extensible */
};
static const unsigned int asn_MAP_AdditionalSpecialSubframePatternsExtension_enum2value_1[] = {
0 /* ssp10(0) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_AdditionalSpecialSubframePatternsExtension_specs_1 = {
asn_MAP_AdditionalSpecialSubframePatternsExtension_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_AdditionalSpecialSubframePatternsExtension_enum2value_1, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframePatternsExtension = {
"AdditionalSpecialSubframePatternsExtension",
"AdditionalSpecialSubframePatternsExtension",
&asn_OP_NativeEnumerated,
asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1,
sizeof(asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1[0]), /* 1 */
asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1, /* Same as above */
sizeof(asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1)
/sizeof(asn_DEF_AdditionalSpecialSubframePatternsExtension_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_AdditionalSpecialSubframePatternsExtension_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_AdditionalSpecialSubframePatternsExtension_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AdditionalSpecialSubframePatternsExtension_H_
#define _AdditionalSpecialSubframePatternsExtension_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum AdditionalSpecialSubframePatternsExtension {
AdditionalSpecialSubframePatternsExtension_ssp10 = 0
/*
* Enumeration is extensible
*/
} e_AdditionalSpecialSubframePatternsExtension;
/* AdditionalSpecialSubframePatternsExtension */
typedef long AdditionalSpecialSubframePatternsExtension_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_AdditionalSpecialSubframePatternsExtension_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AdditionalSpecialSubframePatternsExtension;
extern const asn_INTEGER_specifics_t asn_SPC_AdditionalSpecialSubframePatternsExtension_specs_1;
asn_struct_free_f AdditionalSpecialSubframePatternsExtension_free;
asn_struct_print_f AdditionalSpecialSubframePatternsExtension_print;
asn_constr_check_f AdditionalSpecialSubframePatternsExtension_constraint;
ber_type_decoder_f AdditionalSpecialSubframePatternsExtension_decode_ber;
der_type_encoder_f AdditionalSpecialSubframePatternsExtension_encode_der;
xer_type_decoder_f AdditionalSpecialSubframePatternsExtension_decode_xer;
xer_type_encoder_f AdditionalSpecialSubframePatternsExtension_encode_xer;
per_type_decoder_f AdditionalSpecialSubframePatternsExtension_decode_uper;
per_type_encoder_f AdditionalSpecialSubframePatternsExtension_encode_uper;
per_type_decoder_f AdditionalSpecialSubframePatternsExtension_decode_aper;
per_type_encoder_f AdditionalSpecialSubframePatternsExtension_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _AdditionalSpecialSubframePatternsExtension_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AerialUEsubscriptionInformation.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_AerialUEsubscriptionInformation_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_AerialUEsubscriptionInformation_value2enum_1[] = {
{ 0, 7, "allowed" },
{ 1, 11, "not-allowed" }
/* This list is extensible */
};
static const unsigned int asn_MAP_AerialUEsubscriptionInformation_enum2value_1[] = {
0, /* allowed(0) */
1 /* not-allowed(1) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_AerialUEsubscriptionInformation_specs_1 = {
asn_MAP_AerialUEsubscriptionInformation_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_AerialUEsubscriptionInformation_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
3, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_AerialUEsubscriptionInformation_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_AerialUEsubscriptionInformation = {
"AerialUEsubscriptionInformation",
"AerialUEsubscriptionInformation",
&asn_OP_NativeEnumerated,
asn_DEF_AerialUEsubscriptionInformation_tags_1,
sizeof(asn_DEF_AerialUEsubscriptionInformation_tags_1)
/sizeof(asn_DEF_AerialUEsubscriptionInformation_tags_1[0]), /* 1 */
asn_DEF_AerialUEsubscriptionInformation_tags_1, /* Same as above */
sizeof(asn_DEF_AerialUEsubscriptionInformation_tags_1)
/sizeof(asn_DEF_AerialUEsubscriptionInformation_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_AerialUEsubscriptionInformation_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_AerialUEsubscriptionInformation_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AerialUEsubscriptionInformation_H_
#define _AerialUEsubscriptionInformation_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum AerialUEsubscriptionInformation {
AerialUEsubscriptionInformation_allowed = 0,
AerialUEsubscriptionInformation_not_allowed = 1
/*
* Enumeration is extensible
*/
} e_AerialUEsubscriptionInformation;
/* AerialUEsubscriptionInformation */
typedef long AerialUEsubscriptionInformation_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_AerialUEsubscriptionInformation_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_AerialUEsubscriptionInformation;
extern const asn_INTEGER_specifics_t asn_SPC_AerialUEsubscriptionInformation_specs_1;
asn_struct_free_f AerialUEsubscriptionInformation_free;
asn_struct_print_f AerialUEsubscriptionInformation_print;
asn_constr_check_f AerialUEsubscriptionInformation_constraint;
ber_type_decoder_f AerialUEsubscriptionInformation_decode_ber;
der_type_encoder_f AerialUEsubscriptionInformation_encode_der;
xer_type_decoder_f AerialUEsubscriptionInformation_decode_xer;
xer_type_encoder_f AerialUEsubscriptionInformation_encode_xer;
per_type_decoder_f AerialUEsubscriptionInformation_decode_uper;
per_type_encoder_f AerialUEsubscriptionInformation_encode_uper;
per_type_decoder_f AerialUEsubscriptionInformation_decode_aper;
per_type_encoder_f AerialUEsubscriptionInformation_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _AerialUEsubscriptionInformation_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AllocationAndRetentionPriority.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_AllocationAndRetentionPriority_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AllocationAndRetentionPriority, priorityLevel),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PriorityLevel,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"priorityLevel"
},
{ ATF_NOFLAGS, 0, offsetof(struct AllocationAndRetentionPriority, pre_emptionCapability),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Pre_emptionCapability,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pre-emptionCapability"
},
{ ATF_NOFLAGS, 0, offsetof(struct AllocationAndRetentionPriority, pre_emptionVulnerability),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Pre_emptionVulnerability,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pre-emptionVulnerability"
},
{ ATF_POINTER, 1, offsetof(struct AllocationAndRetentionPriority, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P109,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_AllocationAndRetentionPriority_oms_1[] = { 3 };
static const ber_tlv_tag_t asn_DEF_AllocationAndRetentionPriority_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_AllocationAndRetentionPriority_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* priorityLevel */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pre-emptionCapability */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pre-emptionVulnerability */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_AllocationAndRetentionPriority_specs_1 = {
sizeof(struct AllocationAndRetentionPriority),
offsetof(struct AllocationAndRetentionPriority, _asn_ctx),
asn_MAP_AllocationAndRetentionPriority_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_AllocationAndRetentionPriority_oms_1, /* Optional members */
1, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_AllocationAndRetentionPriority = {
"AllocationAndRetentionPriority",
"AllocationAndRetentionPriority",
&asn_OP_SEQUENCE,
asn_DEF_AllocationAndRetentionPriority_tags_1,
sizeof(asn_DEF_AllocationAndRetentionPriority_tags_1)
/sizeof(asn_DEF_AllocationAndRetentionPriority_tags_1[0]), /* 1 */
asn_DEF_AllocationAndRetentionPriority_tags_1, /* Same as above */
sizeof(asn_DEF_AllocationAndRetentionPriority_tags_1)
/sizeof(asn_DEF_AllocationAndRetentionPriority_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_AllocationAndRetentionPriority_1,
4, /* Elements count */
&asn_SPC_AllocationAndRetentionPriority_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AllocationAndRetentionPriority_H_
#define _AllocationAndRetentionPriority_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PriorityLevel.h"
#include "Pre-emptionCapability.h"
#include "Pre-emptionVulnerability.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* AllocationAndRetentionPriority */
typedef struct AllocationAndRetentionPriority {
PriorityLevel_t priorityLevel;
Pre_emptionCapability_t pre_emptionCapability;
Pre_emptionVulnerability_t pre_emptionVulnerability;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AllocationAndRetentionPriority_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AllocationAndRetentionPriority;
extern asn_SEQUENCE_specifics_t asn_SPC_AllocationAndRetentionPriority_specs_1;
extern asn_TYPE_member_t asn_MBR_AllocationAndRetentionPriority_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _AllocationAndRetentionPriority_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AreaScopeOfMDT.h"
#include "CellBasedMDT.h"
#include "TABasedMDT.h"
#include "TAIBasedMDT.h"
asn_per_constraints_t asn_PER_type_AreaScopeOfMDT_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_AreaScopeOfMDT_1[] = {
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfMDT, choice.cellBased),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CellBasedMDT,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cellBased"
},
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfMDT, choice.tABased),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TABasedMDT,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"tABased"
},
{ ATF_NOFLAGS, 0, offsetof(struct AreaScopeOfMDT, choice.pLMNWide),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NULL,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pLMNWide"
},
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfMDT, choice.tAIBased),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TAIBasedMDT,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"tAIBased"
},
};
static const asn_TYPE_tag2member_t asn_MAP_AreaScopeOfMDT_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellBased */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tABased */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pLMNWide */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* tAIBased */
};
asn_CHOICE_specifics_t asn_SPC_AreaScopeOfMDT_specs_1 = {
sizeof(struct AreaScopeOfMDT),
offsetof(struct AreaScopeOfMDT, _asn_ctx),
offsetof(struct AreaScopeOfMDT, present),
sizeof(((struct AreaScopeOfMDT *)0)->present),
asn_MAP_AreaScopeOfMDT_tag2el_1,
4, /* Count of tags in the map */
0, 0,
3 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_AreaScopeOfMDT = {
"AreaScopeOfMDT",
"AreaScopeOfMDT",
&asn_OP_CHOICE,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
{ 0, &asn_PER_type_AreaScopeOfMDT_constr_1, CHOICE_constraint },
asn_MBR_AreaScopeOfMDT_1,
4, /* Elements count */
&asn_SPC_AreaScopeOfMDT_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AreaScopeOfMDT_H_
#define _AreaScopeOfMDT_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NULL.h"
#include "constr_CHOICE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum AreaScopeOfMDT_PR {
AreaScopeOfMDT_PR_NOTHING, /* No components present */
AreaScopeOfMDT_PR_cellBased,
AreaScopeOfMDT_PR_tABased,
AreaScopeOfMDT_PR_pLMNWide,
/* Extensions may appear below */
AreaScopeOfMDT_PR_tAIBased
} AreaScopeOfMDT_PR;
/* Forward declarations */
struct CellBasedMDT;
struct TABasedMDT;
struct TAIBasedMDT;
/* AreaScopeOfMDT */
typedef struct AreaScopeOfMDT {
AreaScopeOfMDT_PR present;
union AreaScopeOfMDT_u {
struct CellBasedMDT *cellBased;
struct TABasedMDT *tABased;
NULL_t pLMNWide;
/*
* This type is extensible,
* possible extensions are below.
*/
struct TAIBasedMDT *tAIBased;
} choice;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AreaScopeOfMDT_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AreaScopeOfMDT;
extern asn_CHOICE_specifics_t asn_SPC_AreaScopeOfMDT_specs_1;
extern asn_TYPE_member_t asn_MBR_AreaScopeOfMDT_1[4];
extern asn_per_constraints_t asn_PER_type_AreaScopeOfMDT_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _AreaScopeOfMDT_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "AreaScopeOfQMC.h"
#include "CellBasedQMC.h"
#include "TABasedQMC.h"
#include "TAIBasedQMC.h"
#include "PLMNAreaBasedQMC.h"
asn_per_constraints_t asn_PER_type_AreaScopeOfQMC_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_AreaScopeOfQMC_1[] = {
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfQMC, choice.cellBased),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CellBasedQMC,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cellBased"
},
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfQMC, choice.tABased),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TABasedQMC,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"tABased"
},
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfQMC, choice.tAIBased),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_TAIBasedQMC,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"tAIBased"
},
{ ATF_POINTER, 0, offsetof(struct AreaScopeOfQMC, choice.pLMNAreaBased),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PLMNAreaBasedQMC,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pLMNAreaBased"
},
};
static const asn_TYPE_tag2member_t asn_MAP_AreaScopeOfQMC_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellBased */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tABased */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* tAIBased */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* pLMNAreaBased */
};
asn_CHOICE_specifics_t asn_SPC_AreaScopeOfQMC_specs_1 = {
sizeof(struct AreaScopeOfQMC),
offsetof(struct AreaScopeOfQMC, _asn_ctx),
offsetof(struct AreaScopeOfQMC, present),
sizeof(((struct AreaScopeOfQMC *)0)->present),
asn_MAP_AreaScopeOfQMC_tag2el_1,
4, /* Count of tags in the map */
0, 0,
4 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_AreaScopeOfQMC = {
"AreaScopeOfQMC",
"AreaScopeOfQMC",
&asn_OP_CHOICE,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
{ 0, &asn_PER_type_AreaScopeOfQMC_constr_1, CHOICE_constraint },
asn_MBR_AreaScopeOfQMC_1,
4, /* Elements count */
&asn_SPC_AreaScopeOfQMC_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _AreaScopeOfQMC_H_
#define _AreaScopeOfQMC_H_
#include "asn_application.h"
/* Including external dependencies */
#include "constr_CHOICE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum AreaScopeOfQMC_PR {
AreaScopeOfQMC_PR_NOTHING, /* No components present */
AreaScopeOfQMC_PR_cellBased,
AreaScopeOfQMC_PR_tABased,
AreaScopeOfQMC_PR_tAIBased,
AreaScopeOfQMC_PR_pLMNAreaBased
/* Extensions may appear below */
} AreaScopeOfQMC_PR;
/* Forward declarations */
struct CellBasedQMC;
struct TABasedQMC;
struct TAIBasedQMC;
struct PLMNAreaBasedQMC;
/* AreaScopeOfQMC */
typedef struct AreaScopeOfQMC {
AreaScopeOfQMC_PR present;
union AreaScopeOfQMC_u {
struct CellBasedQMC *cellBased;
struct TABasedQMC *tABased;
struct TAIBasedQMC *tAIBased;
struct PLMNAreaBasedQMC *pLMNAreaBased;
/*
* This type is extensible,
* possible extensions are below.
*/
} choice;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} AreaScopeOfQMC_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_AreaScopeOfQMC;
extern asn_CHOICE_specifics_t asn_SPC_AreaScopeOfQMC_specs_1;
extern asn_TYPE_member_t asn_MBR_AreaScopeOfQMC_1[4];
extern asn_per_constraints_t asn_PER_type_AreaScopeOfQMC_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _AreaScopeOfQMC_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,657 @@
/*-
* Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <BIT_STRING.h>
#include <asn_internal.h>
/*
* BIT STRING basic type description.
*/
static const ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
};
asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs = {
sizeof(BIT_STRING_t),
offsetof(BIT_STRING_t, _asn_ctx),
ASN_OSUBV_BIT
};
asn_TYPE_operation_t asn_OP_BIT_STRING = {
OCTET_STRING_free, /* Implemented in terms of OCTET STRING */
BIT_STRING_print,
BIT_STRING_compare,
OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
OCTET_STRING_decode_xer_binary,
BIT_STRING_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
0,
0,
#else
BIT_STRING_decode_oer,
BIT_STRING_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
0,
0,
#else
BIT_STRING_decode_uper, /* Unaligned PER decoder */
BIT_STRING_encode_uper, /* Unaligned PER encoder */
OCTET_STRING_decode_aper, /* Aligned PER decoder */
OCTET_STRING_encode_aper, /* Aligned PER encoder */
#endif /* ASN_DISABLE_PER_SUPPORT */
BIT_STRING_random_fill,
0 /* Use generic outmost tag fetcher */
};
asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
"BIT STRING",
"BIT_STRING",
&asn_OP_BIT_STRING,
asn_DEF_BIT_STRING_tags,
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
asn_DEF_BIT_STRING_tags, /* Same as above */
sizeof(asn_DEF_BIT_STRING_tags)
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
{ 0, 0, BIT_STRING_constraint },
0, 0, /* No members */
&asn_SPC_BIT_STRING_specs
};
/*
* BIT STRING generic constraint.
*/
int
BIT_STRING_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
if(st && st->buf) {
if((st->size == 0 && st->bits_unused)
|| st->bits_unused < 0 || st->bits_unused > 7) {
ASN__CTFAIL(app_key, td, sptr,
"%s: invalid padding byte (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
return 0;
}
static const char *_bit_pattern[16] = {
"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111",
"1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"
};
asn_enc_rval_t
BIT_STRING_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t er = {0, 0, 0};
char scratch[128];
char *p = scratch;
char *scend = scratch + (sizeof(scratch) - 10);
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
int xcan = (flags & XER_F_CANONICAL);
uint8_t *buf;
uint8_t *end;
if(!st || !st->buf)
ASN__ENCODE_FAILED;
er.encoded = 0;
buf = st->buf;
end = buf + st->size - 1; /* Last byte is special */
/*
* Binary dump
*/
for(; buf < end; buf++) {
int v = *buf;
int nline = xcan?0:(((buf - st->buf) % 8) == 0);
if(p >= scend || nline) {
ASN__CALLBACK(scratch, p - scratch);
p = scratch;
if(nline) ASN__TEXT_INDENT(1, ilevel);
}
memcpy(p + 0, _bit_pattern[v >> 4], 4);
memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
p += 8;
}
if(!xcan && ((buf - st->buf) % 8) == 0)
ASN__TEXT_INDENT(1, ilevel);
ASN__CALLBACK(scratch, p - scratch);
p = scratch;
if(buf == end) {
int v = *buf;
int ubits = st->bits_unused;
int i;
for(i = 7; i >= ubits; i--)
*p++ = (v & (1 << i)) ? 0x31 : 0x30;
ASN__CALLBACK(scratch, p - scratch);
}
if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1);
ASN__ENCODED_OK(er);
cb_failed:
ASN__ENCODE_FAILED;
}
/*
* BIT STRING specific contents printer.
*/
int
BIT_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
asn_app_consume_bytes_f *cb, void *app_key) {
const char * const h2c = "0123456789ABCDEF";
char scratch[64];
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
uint8_t *buf;
uint8_t *end;
char *p = scratch;
(void)td; /* Unused argument */
if(!st || !st->buf)
return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
ilevel++;
buf = st->buf;
end = buf + st->size;
/*
* Hexadecimal dump.
*/
for(; buf < end; buf++) {
if((buf - st->buf) % 16 == 0 && (st->size > 16)
&& buf != st->buf) {
_i_INDENT(1);
/* Dump the string */
if(cb(scratch, p - scratch, app_key) < 0) return -1;
p = scratch;
}
*p++ = h2c[*buf >> 4];
*p++ = h2c[*buf & 0x0F];
*p++ = 0x20;
}
if(p > scratch) {
p--; /* Eat the tailing space */
if((st->size > 16)) {
_i_INDENT(1);
}
/* Dump the incomplete 16-bytes row */
if(cb(scratch, p - scratch, app_key) < 0)
return -1;
}
if(st->bits_unused) {
int ret = snprintf(scratch, sizeof(scratch), " (%d bit%s unused)",
st->bits_unused, st->bits_unused == 1 ? "" : "s");
assert(ret > 0 && ret < (ssize_t)sizeof(scratch));
if(ret > 0 && ret < (ssize_t)sizeof(scratch)
&& cb(scratch, ret, app_key) < 0)
return -1;
}
return 0;
}
/*
* Non-destructively remove the trailing 0-bits from the given bit string.
*/
static const BIT_STRING_t *
BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp) {
const uint8_t *b;
union {
const uint8_t *c_buf;
uint8_t *nc_buf;
} unconst;
if(st->size == 0) {
assert(st->bits_unused == 0);
return st;
} else {
for(b = &st->buf[st->size - 1]; b > st->buf && *b == 0; b--) {
;
}
/* b points to the last byte which may contain data */
if(*b) {
int unused = 7;
uint8_t v = *b;
v &= -(int8_t)v;
if(v & 0x0F) unused -= 4;
if(v & 0x33) unused -= 2;
if(v & 0x55) unused -= 1;
tmp->size = b-st->buf + 1;
tmp->bits_unused = unused;
} else {
tmp->size = b-st->buf;
tmp->bits_unused = 0;
}
assert(b >= st->buf);
}
unconst.c_buf = st->buf;
tmp->buf = unconst.nc_buf;
return tmp;
}
/*
* Lexicographically compare the common prefix of both strings,
* and if it is the same return -1 for the smallest string.
*/
int
BIT_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
const void *bptr) {
/*
* Remove information about trailing bits, since
* X.680 (08/2015) #22.7 "ensure that different semantics are not"
* "associated with [values that differ only in] the trailing 0 bits."
*/
BIT_STRING_t compact_a, compact_b;
const BIT_STRING_t *a = BIT_STRING__compactify(aptr, &compact_a);
const BIT_STRING_t *b = BIT_STRING__compactify(bptr, &compact_b);
const asn_OCTET_STRING_specifics_t *specs = td->specifics;
assert(specs && specs->subvariant == ASN_OSUBV_BIT);
if(a && b) {
size_t common_prefix_size = a->size <= b->size ? a->size : b->size;
int ret = memcmp(a->buf, b->buf, common_prefix_size);
if(ret == 0) {
/* Figure out which string with equal prefixes is longer. */
if(a->size < b->size) {
return -1;
} else if(a->size > b->size) {
return 1;
} else {
/* Figure out how many unused bits */
if(a->bits_unused > b->bits_unused) {
return -1;
} else if(a->bits_unused < b->bits_unused) {
return 1;
} else {
return 0;
}
}
} else {
return ret;
}
} else if(!a && !b) {
return 0;
} else if(!a) {
return -1;
} else {
return 1;
}
}
#ifndef ASN_DISABLE_PER_SUPPORT
#undef RETURN
#define RETURN(_code) \
do { \
asn_dec_rval_t tmprval; \
tmprval.code = _code; \
tmprval.consumed = consumed_myself; \
return tmprval; \
} while(0)
static asn_per_constraint_t asn_DEF_BIT_STRING_constraint_size = {
APC_SEMI_CONSTRAINED, -1, -1, 0, 0};
asn_dec_rval_t
BIT_STRING_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, void **sptr,
asn_per_data_t *pd) {
const asn_OCTET_STRING_specifics_t *specs = td->specifics
? (const asn_OCTET_STRING_specifics_t *)td->specifics
: &asn_SPC_BIT_STRING_specs;
const asn_per_constraints_t *pc =
constraints ? constraints : td->encoding_constraints.per_constraints;
const asn_per_constraint_t *csiz;
asn_dec_rval_t rval = { RC_OK, 0 };
BIT_STRING_t *st = (BIT_STRING_t *)*sptr;
ssize_t consumed_myself = 0;
int repeat;
(void)opt_codec_ctx;
if(pc) {
csiz = &pc->size;
} else {
csiz = &asn_DEF_BIT_STRING_constraint_size;
}
if(specs->subvariant != ASN_OSUBV_BIT) {
ASN_DEBUG("Subvariant %d is not BIT OSUBV_BIT", specs->subvariant);
RETURN(RC_FAIL);
}
/*
* Allocate the string.
*/
if(!st) {
st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
if(!st) RETURN(RC_FAIL);
}
ASN_DEBUG("PER Decoding %s size %ld .. %ld bits %d",
csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible",
csiz->lower_bound, csiz->upper_bound, csiz->effective_bits);
if(csiz->flags & APC_EXTENSIBLE) {
int inext = per_get_few_bits(pd, 1);
if(inext < 0) RETURN(RC_WMORE);
if(inext) {
csiz = &asn_DEF_BIT_STRING_constraint_size;
}
}
if(csiz->effective_bits >= 0) {
FREEMEM(st->buf);
st->size = (csiz->upper_bound + 7) >> 3;
st->buf = (uint8_t *)MALLOC(st->size + 1);
if(!st->buf) { st->size = 0; RETURN(RC_FAIL); }
}
/* X.691, #16.5: zero-length encoding */
/* X.691, #16.6: short fixed length encoding (up to 2 octets) */
/* X.691, #16.7: long fixed length encoding (up to 64K octets) */
if(csiz->effective_bits == 0) {
int ret;
ASN_DEBUG("Encoding BIT STRING size %ld", csiz->upper_bound);
ret = per_get_many_bits(pd, st->buf, 0, csiz->upper_bound);
if(ret < 0) RETURN(RC_WMORE);
consumed_myself += csiz->upper_bound;
st->buf[st->size] = 0;
st->bits_unused = (8 - (csiz->upper_bound & 0x7)) & 0x7;
RETURN(RC_OK);
}
st->size = 0;
do {
ssize_t raw_len;
ssize_t len_bytes;
ssize_t len_bits;
void *p;
int ret;
/* Get the PER length */
raw_len = uper_get_length(pd, csiz->effective_bits, csiz->lower_bound,
&repeat);
if(raw_len < 0) RETURN(RC_WMORE);
if(raw_len == 0 && st->buf) break;
ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)",
(long)csiz->effective_bits, (long)raw_len,
repeat ? "repeat" : "once", td->name);
len_bits = raw_len;
len_bytes = (len_bits + 7) >> 3;
if(len_bits & 0x7) st->bits_unused = 8 - (len_bits & 0x7);
/* len_bits be multiple of 16K if repeat is set */
p = REALLOC(st->buf, st->size + len_bytes + 1);
if(!p) RETURN(RC_FAIL);
st->buf = (uint8_t *)p;
ret = per_get_many_bits(pd, &st->buf[st->size], 0, len_bits);
if(ret < 0) RETURN(RC_WMORE);
st->size += len_bytes;
} while(repeat);
st->buf[st->size] = 0; /* nul-terminate */
return rval;
}
asn_enc_rval_t
BIT_STRING_encode_uper(const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints,
const void *sptr, asn_per_outp_t *po) {
const asn_OCTET_STRING_specifics_t *specs =
td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics
: &asn_SPC_BIT_STRING_specs;
const asn_per_constraints_t *pc =
constraints ? constraints : td->encoding_constraints.per_constraints;
const asn_per_constraint_t *csiz;
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
BIT_STRING_t compact_bstr; /* Do not modify this directly! */
asn_enc_rval_t er = { 0, 0, 0 };
int inext = 0; /* Lies not within extension root */
size_t size_in_bits;
const uint8_t *buf;
int ret;
int ct_extensible;
if(!st || (!st->buf && st->size))
ASN__ENCODE_FAILED;
if(specs->subvariant == ASN_OSUBV_BIT) {
if((st->size == 0 && st->bits_unused) || (st->bits_unused & ~7))
ASN__ENCODE_FAILED;
} else {
ASN__ENCODE_FAILED;
}
if(pc) {
csiz = &pc->size;
} else {
csiz = &asn_DEF_BIT_STRING_constraint_size;
}
ct_extensible = csiz->flags & APC_EXTENSIBLE;
/* Figure out the size without the trailing bits */
st = BIT_STRING__compactify(st, &compact_bstr);
size_in_bits = 8 * st->size - st->bits_unused;
ASN_DEBUG(
"Encoding %s into %" ASN_PRI_SIZE " bits"
" (%ld..%ld, effective %d)%s",
td->name, size_in_bits, csiz->lower_bound, csiz->upper_bound,
csiz->effective_bits, ct_extensible ? " EXT" : "");
/* Figure out whether size lies within PER visible constraint */
if(csiz->effective_bits >= 0) {
if((ssize_t)size_in_bits > csiz->upper_bound) {
if(ct_extensible) {
csiz = &asn_DEF_BIT_STRING_constraint_size;
inext = 1;
} else {
ASN__ENCODE_FAILED;
}
}
} else {
inext = 0;
}
if(ct_extensible) {
/* Declare whether length is [not] within extension root */
if(per_put_few_bits(po, inext, 1))
ASN__ENCODE_FAILED;
}
if(csiz->effective_bits >= 0 && !inext) {
int add_trailer = (ssize_t)size_in_bits < csiz->lower_bound;
ASN_DEBUG(
"Encoding %" ASN_PRI_SIZE " bytes (%ld), length (in %d bits) trailer %d; actual "
"value %" ASN_PRI_SSIZE "",
st->size, size_in_bits - csiz->lower_bound, csiz->effective_bits,
add_trailer,
add_trailer ? 0 : (ssize_t)size_in_bits - csiz->lower_bound);
ret = per_put_few_bits(
po, add_trailer ? 0 : (ssize_t)size_in_bits - csiz->lower_bound,
csiz->effective_bits);
if(ret) ASN__ENCODE_FAILED;
ret = per_put_many_bits(po, st->buf, size_in_bits);
if(ret) ASN__ENCODE_FAILED;
if(add_trailer) {
static const uint8_t zeros[16];
size_t trailing_zero_bits = csiz->lower_bound - size_in_bits;
while(trailing_zero_bits > 0) {
if(trailing_zero_bits > 8 * sizeof(zeros)) {
ret = per_put_many_bits(po, zeros, 8 * sizeof(zeros));
trailing_zero_bits -= 8 * sizeof(zeros);
} else {
ret = per_put_many_bits(po, zeros, trailing_zero_bits);
trailing_zero_bits = 0;
}
if(ret) ASN__ENCODE_FAILED;
}
}
ASN__ENCODED_OK(er);
}
ASN_DEBUG("Encoding %" ASN_PRI_SIZE " bytes", st->size);
buf = st->buf;
do {
int need_eom = 0;
ssize_t maySave = uper_put_length(po, size_in_bits, &need_eom);
if(maySave < 0) ASN__ENCODE_FAILED;
ASN_DEBUG("Encoding %" ASN_PRI_SSIZE " of %" ASN_PRI_SIZE "", maySave, size_in_bits);
ret = per_put_many_bits(po, buf, maySave);
if(ret) ASN__ENCODE_FAILED;
buf += maySave >> 3;
size_in_bits -= maySave;
assert(!(maySave & 0x07) || !size_in_bits);
if(need_eom && uper_put_length(po, 0, 0))
ASN__ENCODE_FAILED; /* End of Message length */
} while(size_in_bits);
ASN__ENCODED_OK(er);
}
#endif /* ASN_DISABLE_PER_SUPPORT */
asn_random_fill_result_t
BIT_STRING_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
const asn_encoding_constraints_t *constraints,
size_t max_length) {
const asn_OCTET_STRING_specifics_t *specs =
td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics
: &asn_SPC_BIT_STRING_specs;
asn_random_fill_result_t result_ok = {ARFILL_OK, 1};
asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0};
asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0};
static unsigned lengths[] = {0, 1, 2, 3, 4, 8,
126, 127, 128, 16383, 16384, 16385,
65534, 65535, 65536, 65537};
uint8_t *buf;
uint8_t *bend;
uint8_t *b;
size_t rnd_bits, rnd_len;
BIT_STRING_t *st;
if(max_length == 0) return result_skipped;
switch(specs->subvariant) {
case ASN_OSUBV_ANY:
return result_failed;
case ASN_OSUBV_BIT:
break;
default:
break;
}
/* Figure out how far we should go */
rnd_bits = lengths[asn_random_between(
0, sizeof(lengths) / sizeof(lengths[0]) - 1)];
if(!constraints || !constraints->per_constraints)
constraints = &td->encoding_constraints;
if(constraints->per_constraints) {
const asn_per_constraint_t *pc = &constraints->per_constraints->size;
if(pc->flags & APC_CONSTRAINED) {
long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length
? pc->upper_bound
: (ssize_t)max_length;
if(max_length < (size_t)pc->lower_bound) {
return result_skipped;
}
if(pc->flags & APC_EXTENSIBLE) {
switch(asn_random_between(0, 5)) {
case 0:
if(pc->lower_bound > 0) {
rnd_bits = pc->lower_bound - 1;
break;
}
/* Fall through */
case 1:
rnd_bits = pc->upper_bound + 1;
break;
case 2:
/* Keep rnd_bits from the table */
if(rnd_bits < max_length) {
break;
}
/* Fall through */
default:
rnd_bits = asn_random_between(pc->lower_bound,
suggested_upper_bound);
}
} else {
rnd_bits =
asn_random_between(pc->lower_bound, suggested_upper_bound);
}
} else {
rnd_bits = asn_random_between(0, max_length - 1);
}
} else if(rnd_bits >= max_length) {
rnd_bits = asn_random_between(0, max_length - 1);
}
rnd_len = (rnd_bits + 7) / 8;
buf = CALLOC(1, rnd_len + 1);
if(!buf) return result_failed;
bend = &buf[rnd_len];
for(b = buf; b < bend; b++) {
*(uint8_t *)b = asn_random_between(0, 255);
}
*b = 0; /* Zero-terminate just in case. */
if(*sptr) {
st = *sptr;
FREEMEM(st->buf);
} else {
st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
if(!st) {
FREEMEM(buf);
return result_failed;
}
}
st->buf = buf;
st->size = rnd_len;
st->bits_unused = (8 - (rnd_bits & 0x7)) & 0x7;
if(st->bits_unused) {
assert(st->size > 0);
st->buf[st->size-1] &= 0xff << st->bits_unused;
}
result_ok.length = st->size;
return result_ok;
}

View File

@@ -0,0 +1,49 @@
/*-
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _BIT_STRING_H_
#define _BIT_STRING_H_
#include <OCTET_STRING.h> /* Some help from OCTET STRING */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct BIT_STRING_s {
uint8_t *buf; /* BIT STRING body */
size_t size; /* Size of the above buffer */
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
} BIT_STRING_t;
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
extern asn_TYPE_operation_t asn_OP_BIT_STRING;
extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs;
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
asn_struct_compare_f BIT_STRING_compare;
asn_constr_check_f BIT_STRING_constraint;
xer_type_encoder_f BIT_STRING_encode_xer;
oer_type_decoder_f BIT_STRING_decode_oer;
oer_type_encoder_f BIT_STRING_encode_oer;
per_type_decoder_f BIT_STRING_decode_uper;
per_type_encoder_f BIT_STRING_encode_uper;
asn_random_fill_f BIT_STRING_random_fill;
#define BIT_STRING_free OCTET_STRING_free
#define BIT_STRING_decode_ber OCTET_STRING_decode_ber
#define BIT_STRING_encode_der OCTET_STRING_encode_der
#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary
#define BIT_STRING_decode_aper OCTET_STRING_decode_aper
#define BIT_STRING_encode_aper OCTET_STRING_encode_aper
#ifdef __cplusplus
}
#endif
#endif /* _BIT_STRING_H_ */

View File

@@ -0,0 +1,493 @@
/*-
* Copyright (c) 2003, 2005 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <asn_codecs_prim.h>
#include <BOOLEAN.h>
/*
* BOOLEAN basic type description.
*/
static const ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2))
};
asn_TYPE_operation_t asn_OP_BOOLEAN = {
BOOLEAN_free,
BOOLEAN_print,
BOOLEAN_compare,
BOOLEAN_decode_ber,
BOOLEAN_encode_der,
BOOLEAN_decode_xer,
BOOLEAN_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
0,
0,
#else
BOOLEAN_decode_oer,
BOOLEAN_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
0,
0,
#else
BOOLEAN_decode_uper, /* Unaligned PER decoder */
BOOLEAN_encode_uper, /* Unaligned PER encoder */
BOOLEAN_decode_aper, /* Aligned PER decoder */
BOOLEAN_encode_aper, /* Aligned PER encoder */
#endif /* ASN_DISABLE_PER_SUPPORT */
BOOLEAN_random_fill,
0 /* Use generic outmost tag fetcher */
};
asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
"BOOLEAN",
"BOOLEAN",
&asn_OP_BOOLEAN,
asn_DEF_BOOLEAN_tags,
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
asn_DEF_BOOLEAN_tags, /* Same as above */
sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
{ 0, 0, asn_generic_no_constraint },
0, 0, /* No members */
0 /* No specifics */
};
/*
* Decode BOOLEAN type.
*/
asn_dec_rval_t
BOOLEAN_decode_ber(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td, void **bool_value,
const void *buf_ptr, size_t size, int tag_mode) {
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
asn_dec_rval_t rval;
ber_tlv_len_t length;
ber_tlv_len_t lidx;
if(st == NULL) {
st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st)));
if(st == NULL) {
rval.code = RC_FAIL;
rval.consumed = 0;
return rval;
}
}
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
td->name, tag_mode);
/*
* Check tags.
*/
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
tag_mode, 0, &length, 0);
if(rval.code != RC_OK)
return rval;
ASN_DEBUG("Boolean length is %d bytes", (int)length);
buf_ptr = ((const char *)buf_ptr) + rval.consumed;
size -= rval.consumed;
if(length > (ber_tlv_len_t)size) {
rval.code = RC_WMORE;
rval.consumed = 0;
return rval;
}
/*
* Compute boolean value.
*/
for(*st = 0, lidx = 0;
(lidx < length) && *st == 0; lidx++) {
/*
* Very simple approach: read bytes until the end or
* value is already TRUE.
* BOOLEAN is not supposed to contain meaningful data anyway.
*/
*st |= ((const uint8_t *)buf_ptr)[lidx];
}
rval.code = RC_OK;
rval.consumed += length;
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
(long)rval.consumed, (long)length,
td->name, *st);
return rval;
}
asn_enc_rval_t
BOOLEAN_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr,
int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb,
void *app_key) {
asn_enc_rval_t erval = {0,0,0};
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key);
if(erval.encoded == -1) {
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
if(cb) {
uint8_t bool_value;
bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */
if(cb(&bool_value, 1, app_key) < 0) {
erval.encoded = -1;
erval.failed_type = td;
erval.structure_ptr = sptr;
return erval;
}
}
erval.encoded += 1;
ASN__ENCODED_OK(erval);
}
/*
* Decode the chunk of XML text encoding INTEGER.
*/
static enum xer_pbd_rval
BOOLEAN__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr,
const void *chunk_buf, size_t chunk_size) {
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
const char *p = (const char *)chunk_buf;
(void)td;
if(chunk_size && p[0] == 0x3c /* '<' */) {
switch(xer_check_tag(chunk_buf, chunk_size, "false")) {
case XCT_BOTH:
/* "<false/>" */
*st = 0;
break;
case XCT_UNKNOWN_BO:
if(xer_check_tag(chunk_buf, chunk_size, "true")
!= XCT_BOTH)
return XPBD_BROKEN_ENCODING;
/* "<true/>" */
*st = 1; /* Or 0xff as in DER?.. */
break;
default:
return XPBD_BROKEN_ENCODING;
}
return XPBD_BODY_CONSUMED;
} else {
return XPBD_BROKEN_ENCODING;
}
}
asn_dec_rval_t
BOOLEAN_decode_xer(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td, void **sptr,
const char *opt_mname, const void *buf_ptr, size_t size) {
return xer_decode_primitive(opt_codec_ctx, td,
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
BOOLEAN__xer_body_decode);
}
asn_enc_rval_t
BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er = {0, 0, 0};
(void)ilevel;
(void)flags;
if(!st) ASN__ENCODE_FAILED;
if(*st) {
ASN__CALLBACK("<true/>", 7);
} else {
ASN__CALLBACK("<false/>", 8);
}
ASN__ENCODED_OK(er);
cb_failed:
ASN__ENCODE_FAILED;
}
int
BOOLEAN_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
asn_app_consume_bytes_f *cb, void *app_key) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
const char *buf;
size_t buflen;
(void)td; /* Unused argument */
(void)ilevel; /* Unused argument */
if(st) {
if(*st) {
buf = "TRUE";
buflen = 4;
} else {
buf = "FALSE";
buflen = 5;
}
} else {
buf = "<absent>";
buflen = 8;
}
return (cb(buf, buflen, app_key) < 0) ? -1 : 0;
}
void
BOOLEAN_free(const asn_TYPE_descriptor_t *td, void *ptr,
enum asn_struct_free_method method) {
if(td && ptr) {
switch(method) {
case ASFM_FREE_EVERYTHING:
FREEMEM(ptr);
break;
case ASFM_FREE_UNDERLYING:
break;
case ASFM_FREE_UNDERLYING_AND_RESET:
memset(ptr, 0, sizeof(BOOLEAN_t));
break;
}
}
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
BOOLEAN_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, void **sptr,
asn_per_data_t *pd) {
asn_dec_rval_t rv;
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
(void)opt_codec_ctx;
(void)td;
(void)constraints;
if(!st) {
st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
if(!st) ASN__DECODE_FAILED;
}
/*
* Extract a single bit
*/
switch(per_get_few_bits(pd, 1)) {
case 1: *st = 1; break;
case 0: *st = 0; break;
case -1: default: ASN__DECODE_STARVED;
}
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
rv.code = RC_OK;
rv.consumed = 1;
return rv;
}
asn_enc_rval_t
BOOLEAN_encode_uper(const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, const void *sptr,
asn_per_outp_t *po) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er = { 0, 0, 0 };
(void)constraints;
if(!st) ASN__ENCODE_FAILED;
if(per_put_few_bits(po, *st ? 1 : 0, 1))
ASN__ENCODE_FAILED;
ASN__ENCODED_OK(er);
}
asn_dec_rval_t
BOOLEAN_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
asn_dec_rval_t rv;
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
(void)opt_codec_ctx;
(void)constraints;
(void)td;
if(!st) {
st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
if(!st) ASN__DECODE_FAILED;
}
/*
* Extract a single bit
*/
switch(per_get_few_bits(pd, 1)) {
case 1:
*st = 1;
break;
case 0:
*st = 0;
break;
case -1:
default:
ASN__DECODE_STARVED;
}
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
rv.code = RC_OK;
rv.consumed = 1;
return rv;
}
asn_enc_rval_t
BOOLEAN_encode_aper(const asn_TYPE_descriptor_t *td,
const asn_per_constraints_t *constraints,
const void *sptr, asn_per_outp_t *po) {
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
asn_enc_rval_t er = { 0, 0, 0 };
(void)constraints;
if(!st) ASN__ENCODE_FAILED;
if(per_put_few_bits(po, *st ? 1 : 0, 1))
ASN__ENCODE_FAILED;
ASN__ENCODED_OK(er);
}
#endif /* ASN_DISABLE_PER_SUPPORT */
#ifndef ASN_DISABLE_OER_SUPPORT
/*
* Encode as Canonical OER.
*/
asn_enc_rval_t
BOOLEAN_encode_oer(const asn_TYPE_descriptor_t *td,
const asn_oer_constraints_t *constraints, const void *sptr,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_enc_rval_t er = { 1, 0, 0 };
const BOOLEAN_t *st = sptr;
uint8_t bool_value = *st ? 0xff : 0; /* 0xff mandated by OER */
(void)td;
(void)constraints; /* Constraints are unused in OER */
if(cb(&bool_value, 1, app_key) < 0) {
ASN__ENCODE_FAILED;
} else {
ASN__ENCODED_OK(er);
}
}
asn_dec_rval_t
BOOLEAN_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
const asn_oer_constraints_t *constraints, void **sptr,
const void *ptr, size_t size) {
asn_dec_rval_t ok = {RC_OK, 1};
BOOLEAN_t *st;
(void)opt_codec_ctx;
(void)td;
(void)constraints; /* Constraints are unused in OER */
if(size < 1) {
ASN__DECODE_STARVED;
}
if(!(st = *sptr)) {
st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st)));
if(!st) ASN__DECODE_FAILED;
}
*st = *(const uint8_t *)ptr;
return ok;
}
#endif
int
BOOLEAN_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
const void *bptr) {
const BOOLEAN_t *a = aptr;
const BOOLEAN_t *b = bptr;
(void)td;
if(a && b) {
if(!*a == !*b) { /* TRUE can be encoded by any non-zero byte. */
return 0;
} else if(!*a) {
return -1;
} else {
return 1;
}
} else if(!a) {
return -1;
} else {
return 1;
}
}
asn_random_fill_result_t
BOOLEAN_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
const asn_encoding_constraints_t *constraints,
size_t max_length) {
asn_random_fill_result_t result_ok = {ARFILL_OK, 1};
asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0};
asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0};
BOOLEAN_t *st = *sptr;
if(max_length == 0) return result_skipped;
if(st == NULL) {
st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st)));
if(st == NULL) {
return result_failed;
}
}
if(!constraints || !constraints->per_constraints)
constraints = &td->encoding_constraints;
if(constraints->per_constraints) {
const asn_per_constraint_t *pc = &constraints->per_constraints->value;
if(pc->flags & APC_CONSTRAINED) {
*st = asn_random_between(pc->lower_bound, pc->upper_bound);
return result_ok;
}
}
/* Simulate booleans that are sloppily set and biased. */
switch(asn_random_between(0, 7)) {
case 0:
case 1:
case 2:
*st = 0; break;
case 3: *st = -1; break;
case 4: *st = 1; break;
case 5: *st = INT_MIN; break;
case 6: *st = INT_MAX; break;
default:
*st = asn_random_between(INT_MIN, INT_MAX);
break;
}
return result_ok;
}

View File

@@ -0,0 +1,46 @@
/*-
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _BOOLEAN_H_
#define _BOOLEAN_H_
#include <asn_application.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* The underlying integer may contain various values, but everything
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
* yield non-zero values different from 1, beware.
*/
typedef int BOOLEAN_t;
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
extern asn_TYPE_operation_t asn_OP_BOOLEAN;
asn_struct_free_f BOOLEAN_free;
asn_struct_print_f BOOLEAN_print;
asn_struct_compare_f BOOLEAN_compare;
ber_type_decoder_f BOOLEAN_decode_ber;
der_type_encoder_f BOOLEAN_encode_der;
oer_type_decoder_f BOOLEAN_decode_oer;
oer_type_encoder_f BOOLEAN_encode_oer;
per_type_decoder_f BOOLEAN_decode_uper;
per_type_encoder_f BOOLEAN_encode_uper;
per_type_decoder_f BOOLEAN_decode_aper;
per_type_encoder_f BOOLEAN_encode_aper;
xer_type_decoder_f BOOLEAN_decode_xer;
xer_type_encoder_f BOOLEAN_encode_xer;
asn_random_fill_f BOOLEAN_random_fill;
#define BOOLEAN_constraint asn_generic_no_constraint
#ifdef __cplusplus
}
#endif
#endif /* _BOOLEAN_H_ */

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BandInfo.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_BandInfo_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct BandInfo, freqBandIndicator),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_FreqBandIndicator,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"freqBandIndicator"
},
{ ATF_POINTER, 1, offsetof(struct BandInfo, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P169,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_BandInfo_oms_1[] = { 1 };
static const ber_tlv_tag_t asn_DEF_BandInfo_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_BandInfo_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicator */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_BandInfo_specs_1 = {
sizeof(struct BandInfo),
offsetof(struct BandInfo, _asn_ctx),
asn_MAP_BandInfo_tag2el_1,
2, /* Count of tags in the map */
asn_MAP_BandInfo_oms_1, /* Optional members */
1, 0, /* Root/Additions */
2, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_BandInfo = {
"BandInfo",
"BandInfo",
&asn_OP_SEQUENCE,
asn_DEF_BandInfo_tags_1,
sizeof(asn_DEF_BandInfo_tags_1)
/sizeof(asn_DEF_BandInfo_tags_1[0]), /* 1 */
asn_DEF_BandInfo_tags_1, /* Same as above */
sizeof(asn_DEF_BandInfo_tags_1)
/sizeof(asn_DEF_BandInfo_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_BandInfo_1,
2, /* Elements count */
&asn_SPC_BandInfo_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BandInfo_H_
#define _BandInfo_H_
#include "asn_application.h"
/* Including external dependencies */
#include "FreqBandIndicator.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* BandInfo */
typedef struct BandInfo {
FreqBandIndicator_t freqBandIndicator;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} BandInfo_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_BandInfo;
extern asn_SEQUENCE_specifics_t asn_SPC_BandInfo_specs_1;
extern asn_TYPE_member_t asn_MBR_BandInfo_1[2];
#ifdef __cplusplus
}
#endif
#endif /* _BandInfo_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BandwidthReducedSI.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BandwidthReducedSI_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_BandwidthReducedSI_value2enum_1[] = {
{ 0, 9, "scheduled" }
/* This list is extensible */
};
static const unsigned int asn_MAP_BandwidthReducedSI_enum2value_1[] = {
0 /* scheduled(0) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_BandwidthReducedSI_specs_1 = {
asn_MAP_BandwidthReducedSI_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_BandwidthReducedSI_enum2value_1, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_BandwidthReducedSI_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BandwidthReducedSI = {
"BandwidthReducedSI",
"BandwidthReducedSI",
&asn_OP_NativeEnumerated,
asn_DEF_BandwidthReducedSI_tags_1,
sizeof(asn_DEF_BandwidthReducedSI_tags_1)
/sizeof(asn_DEF_BandwidthReducedSI_tags_1[0]), /* 1 */
asn_DEF_BandwidthReducedSI_tags_1, /* Same as above */
sizeof(asn_DEF_BandwidthReducedSI_tags_1)
/sizeof(asn_DEF_BandwidthReducedSI_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BandwidthReducedSI_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_BandwidthReducedSI_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BandwidthReducedSI_H_
#define _BandwidthReducedSI_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum BandwidthReducedSI {
BandwidthReducedSI_scheduled = 0
/*
* Enumeration is extensible
*/
} e_BandwidthReducedSI;
/* BandwidthReducedSI */
typedef long BandwidthReducedSI_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BandwidthReducedSI_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BandwidthReducedSI;
extern const asn_INTEGER_specifics_t asn_SPC_BandwidthReducedSI_specs_1;
asn_struct_free_f BandwidthReducedSI_free;
asn_struct_print_f BandwidthReducedSI_print;
asn_constr_check_f BandwidthReducedSI_constraint;
ber_type_decoder_f BandwidthReducedSI_decode_ber;
der_type_encoder_f BandwidthReducedSI_encode_der;
xer_type_decoder_f BandwidthReducedSI_decode_xer;
xer_type_encoder_f BandwidthReducedSI_encode_xer;
per_type_decoder_f BandwidthReducedSI_decode_uper;
per_type_encoder_f BandwidthReducedSI_encode_uper;
per_type_decoder_f BandwidthReducedSI_decode_aper;
per_type_encoder_f BandwidthReducedSI_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BandwidthReducedSI_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BearerType.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BearerType_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_BearerType_value2enum_1[] = {
{ 0, 6, "non-IP" }
/* This list is extensible */
};
static const unsigned int asn_MAP_BearerType_enum2value_1[] = {
0 /* non-IP(0) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_BearerType_specs_1 = {
asn_MAP_BearerType_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_BearerType_enum2value_1, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_BearerType_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BearerType = {
"BearerType",
"BearerType",
&asn_OP_NativeEnumerated,
asn_DEF_BearerType_tags_1,
sizeof(asn_DEF_BearerType_tags_1)
/sizeof(asn_DEF_BearerType_tags_1[0]), /* 1 */
asn_DEF_BearerType_tags_1, /* Same as above */
sizeof(asn_DEF_BearerType_tags_1)
/sizeof(asn_DEF_BearerType_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BearerType_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_BearerType_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BearerType_H_
#define _BearerType_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum BearerType {
BearerType_non_IP = 0
/*
* Enumeration is extensible
*/
} e_BearerType;
/* BearerType */
typedef long BearerType_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BearerType_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BearerType;
extern const asn_INTEGER_specifics_t asn_SPC_BearerType_specs_1;
asn_struct_free_f BearerType_free;
asn_struct_print_f BearerType_print;
asn_constr_check_f BearerType_constraint;
ber_type_decoder_f BearerType_decode_ber;
der_type_encoder_f BearerType_encode_der;
xer_type_decoder_f BearerType_decode_xer;
xer_type_encoder_f BearerType_encode_xer;
per_type_decoder_f BearerType_decode_uper;
per_type_encoder_f BearerType_encode_uper;
per_type_decoder_f BearerType_decode_aper;
per_type_encoder_f BearerType_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BearerType_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BenefitMetric.h"
int
BenefitMetric_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= -101 && value <= 100)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BenefitMetric_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 8, 8, -101, 100 } /* (-101..100,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_BenefitMetric_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BenefitMetric = {
"BenefitMetric",
"BenefitMetric",
&asn_OP_NativeInteger,
asn_DEF_BenefitMetric_tags_1,
sizeof(asn_DEF_BenefitMetric_tags_1)
/sizeof(asn_DEF_BenefitMetric_tags_1[0]), /* 1 */
asn_DEF_BenefitMetric_tags_1, /* Same as above */
sizeof(asn_DEF_BenefitMetric_tags_1)
/sizeof(asn_DEF_BenefitMetric_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BenefitMetric_constr_1, BenefitMetric_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BenefitMetric_H_
#define _BenefitMetric_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#ifdef __cplusplus
extern "C" {
#endif
/* BenefitMetric */
typedef long BenefitMetric_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BenefitMetric_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BenefitMetric;
asn_struct_free_f BenefitMetric_free;
asn_struct_print_f BenefitMetric_print;
asn_constr_check_f BenefitMetric_constraint;
ber_type_decoder_f BenefitMetric_decode_ber;
der_type_encoder_f BenefitMetric_encode_der;
xer_type_decoder_f BenefitMetric_decode_xer;
xer_type_encoder_f BenefitMetric_encode_xer;
per_type_decoder_f BenefitMetric_decode_uper;
per_type_encoder_f BenefitMetric_encode_uper;
per_type_decoder_f BenefitMetric_decode_aper;
per_type_encoder_f BenefitMetric_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BenefitMetric_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BitRate.h"
int
BitRate_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const INTEGER_t *st = (const INTEGER_t *)sptr;
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(asn_INTEGER2long(st, &value)) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value too large (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if((value >= 0 && value <= 10000000000)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using INTEGER,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BitRate_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED, 34, -1, 0, 10000000000 } /* (0..10000000000) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_BitRate_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BitRate = {
"BitRate",
"BitRate",
&asn_OP_INTEGER,
asn_DEF_BitRate_tags_1,
sizeof(asn_DEF_BitRate_tags_1)
/sizeof(asn_DEF_BitRate_tags_1[0]), /* 1 */
asn_DEF_BitRate_tags_1, /* Same as above */
sizeof(asn_DEF_BitRate_tags_1)
/sizeof(asn_DEF_BitRate_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BitRate_constr_1, BitRate_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BitRate_H_
#define _BitRate_H_
#include "asn_application.h"
/* Including external dependencies */
#include "INTEGER.h"
#ifdef __cplusplus
extern "C" {
#endif
/* BitRate */
typedef INTEGER_t BitRate_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BitRate_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BitRate;
asn_struct_free_f BitRate_free;
asn_struct_print_f BitRate_print;
asn_constr_check_f BitRate_constraint;
ber_type_decoder_f BitRate_decode_ber;
der_type_encoder_f BitRate_encode_der;
xer_type_decoder_f BitRate_decode_xer;
xer_type_encoder_f BitRate_encode_xer;
per_type_decoder_f BitRate_decode_uper;
per_type_encoder_f BitRate_encode_uper;
per_type_decoder_f BitRate_decode_aper;
per_type_encoder_f BitRate_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BitRate_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BluetoothMeasConfig.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BluetoothMeasConfig_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_BluetoothMeasConfig_value2enum_1[] = {
{ 0, 5, "setup" }
/* This list is extensible */
};
static const unsigned int asn_MAP_BluetoothMeasConfig_enum2value_1[] = {
0 /* setup(0) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_BluetoothMeasConfig_specs_1 = {
asn_MAP_BluetoothMeasConfig_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_BluetoothMeasConfig_enum2value_1, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_BluetoothMeasConfig_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BluetoothMeasConfig = {
"BluetoothMeasConfig",
"BluetoothMeasConfig",
&asn_OP_NativeEnumerated,
asn_DEF_BluetoothMeasConfig_tags_1,
sizeof(asn_DEF_BluetoothMeasConfig_tags_1)
/sizeof(asn_DEF_BluetoothMeasConfig_tags_1[0]), /* 1 */
asn_DEF_BluetoothMeasConfig_tags_1, /* Same as above */
sizeof(asn_DEF_BluetoothMeasConfig_tags_1)
/sizeof(asn_DEF_BluetoothMeasConfig_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BluetoothMeasConfig_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_BluetoothMeasConfig_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BluetoothMeasConfig_H_
#define _BluetoothMeasConfig_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum BluetoothMeasConfig {
BluetoothMeasConfig_setup = 0
/*
* Enumeration is extensible
*/
} e_BluetoothMeasConfig;
/* BluetoothMeasConfig */
typedef long BluetoothMeasConfig_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BluetoothMeasConfig_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BluetoothMeasConfig;
extern const asn_INTEGER_specifics_t asn_SPC_BluetoothMeasConfig_specs_1;
asn_struct_free_f BluetoothMeasConfig_free;
asn_struct_print_f BluetoothMeasConfig_print;
asn_constr_check_f BluetoothMeasConfig_constraint;
ber_type_decoder_f BluetoothMeasConfig_decode_ber;
der_type_encoder_f BluetoothMeasConfig_encode_der;
xer_type_decoder_f BluetoothMeasConfig_decode_xer;
xer_type_encoder_f BluetoothMeasConfig_encode_xer;
per_type_decoder_f BluetoothMeasConfig_decode_uper;
per_type_encoder_f BluetoothMeasConfig_encode_uper;
per_type_decoder_f BluetoothMeasConfig_decode_aper;
per_type_encoder_f BluetoothMeasConfig_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BluetoothMeasConfig_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BluetoothMeasConfigNameList.h"
asn_per_constraints_t asn_PER_type_BluetoothMeasConfigNameList_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_BluetoothMeasConfigNameList_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
0,
&asn_DEF_BluetoothName,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_BluetoothMeasConfigNameList_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_BluetoothMeasConfigNameList_specs_1 = {
sizeof(struct BluetoothMeasConfigNameList),
offsetof(struct BluetoothMeasConfigNameList, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_BluetoothMeasConfigNameList = {
"BluetoothMeasConfigNameList",
"BluetoothMeasConfigNameList",
&asn_OP_SEQUENCE_OF,
asn_DEF_BluetoothMeasConfigNameList_tags_1,
sizeof(asn_DEF_BluetoothMeasConfigNameList_tags_1)
/sizeof(asn_DEF_BluetoothMeasConfigNameList_tags_1[0]), /* 1 */
asn_DEF_BluetoothMeasConfigNameList_tags_1, /* Same as above */
sizeof(asn_DEF_BluetoothMeasConfigNameList_tags_1)
/sizeof(asn_DEF_BluetoothMeasConfigNameList_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BluetoothMeasConfigNameList_constr_1, SEQUENCE_OF_constraint },
asn_MBR_BluetoothMeasConfigNameList_1,
1, /* Single element */
&asn_SPC_BluetoothMeasConfigNameList_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BluetoothMeasConfigNameList_H_
#define _BluetoothMeasConfigNameList_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BluetoothName.h"
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* BluetoothMeasConfigNameList */
typedef struct BluetoothMeasConfigNameList {
A_SEQUENCE_OF(BluetoothName_t) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} BluetoothMeasConfigNameList_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_BluetoothMeasConfigNameList;
extern asn_SET_OF_specifics_t asn_SPC_BluetoothMeasConfigNameList_specs_1;
extern asn_TYPE_member_t asn_MBR_BluetoothMeasConfigNameList_1[1];
extern asn_per_constraints_t asn_PER_type_BluetoothMeasConfigNameList_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _BluetoothMeasConfigNameList_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,153 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BluetoothMeasurementConfiguration.h"
#include "BluetoothMeasConfigNameList.h"
#include "ProtocolExtensionContainer.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
static asn_per_constraints_t asn_PER_type_bt_rssi_constr_4 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_bt_rssi_value2enum_4[] = {
{ 0, 4, "true" }
/* This list is extensible */
};
static const unsigned int asn_MAP_bt_rssi_enum2value_4[] = {
0 /* true(0) */
/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_bt_rssi_specs_4 = {
asn_MAP_bt_rssi_value2enum_4, /* "tag" => N; sorted by tag */
asn_MAP_bt_rssi_enum2value_4, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_bt_rssi_tags_4[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_bt_rssi_4 = {
"bt-rssi",
"bt-rssi",
&asn_OP_NativeEnumerated,
asn_DEF_bt_rssi_tags_4,
sizeof(asn_DEF_bt_rssi_tags_4)
/sizeof(asn_DEF_bt_rssi_tags_4[0]) - 1, /* 1 */
asn_DEF_bt_rssi_tags_4, /* Same as above */
sizeof(asn_DEF_bt_rssi_tags_4)
/sizeof(asn_DEF_bt_rssi_tags_4[0]), /* 2 */
{ 0, &asn_PER_type_bt_rssi_constr_4, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_bt_rssi_specs_4 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_BluetoothMeasurementConfiguration_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfig),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BluetoothMeasConfig,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"bluetoothMeasConfig"
},
{ ATF_POINTER, 3, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfigNameList),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_BluetoothMeasConfigNameList,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"bluetoothMeasConfigNameList"
},
{ ATF_POINTER, 2, offsetof(struct BluetoothMeasurementConfiguration, bt_rssi),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_bt_rssi_4,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"bt-rssi"
},
{ ATF_POINTER, 1, offsetof(struct BluetoothMeasurementConfiguration, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P111,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_BluetoothMeasurementConfiguration_oms_1[] = { 1, 2, 3 };
static const ber_tlv_tag_t asn_DEF_BluetoothMeasurementConfiguration_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_BluetoothMeasurementConfiguration_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bluetoothMeasConfig */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bluetoothMeasConfigNameList */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-rssi */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_BluetoothMeasurementConfiguration_specs_1 = {
sizeof(struct BluetoothMeasurementConfiguration),
offsetof(struct BluetoothMeasurementConfiguration, _asn_ctx),
asn_MAP_BluetoothMeasurementConfiguration_tag2el_1,
4, /* Count of tags in the map */
asn_MAP_BluetoothMeasurementConfiguration_oms_1, /* Optional members */
3, 0, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_BluetoothMeasurementConfiguration = {
"BluetoothMeasurementConfiguration",
"BluetoothMeasurementConfiguration",
&asn_OP_SEQUENCE,
asn_DEF_BluetoothMeasurementConfiguration_tags_1,
sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
/sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
asn_DEF_BluetoothMeasurementConfiguration_tags_1, /* Same as above */
sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
/sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_BluetoothMeasurementConfiguration_1,
4, /* Elements count */
&asn_SPC_BluetoothMeasurementConfiguration_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BluetoothMeasurementConfiguration_H_
#define _BluetoothMeasurementConfiguration_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BluetoothMeasConfig.h"
#include "NativeEnumerated.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum BluetoothMeasurementConfiguration__bt_rssi {
BluetoothMeasurementConfiguration__bt_rssi_true = 0
/*
* Enumeration is extensible
*/
} e_BluetoothMeasurementConfiguration__bt_rssi;
/* Forward declarations */
struct BluetoothMeasConfigNameList;
struct ProtocolExtensionContainer;
/* BluetoothMeasurementConfiguration */
typedef struct BluetoothMeasurementConfiguration {
BluetoothMeasConfig_t bluetoothMeasConfig;
struct BluetoothMeasConfigNameList *bluetoothMeasConfigNameList; /* OPTIONAL */
long *bt_rssi; /* OPTIONAL */
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} BluetoothMeasurementConfiguration_t;
/* Implementation */
/* extern asn_TYPE_descriptor_t asn_DEF_bt_rssi_4; // (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_BluetoothMeasurementConfiguration;
extern asn_SEQUENCE_specifics_t asn_SPC_BluetoothMeasurementConfiguration_specs_1;
extern asn_TYPE_member_t asn_MBR_BluetoothMeasurementConfiguration_1[4];
#ifdef __cplusplus
}
#endif
#endif /* _BluetoothMeasurementConfiguration_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BluetoothName.h"
int
BluetoothName_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
size = st->size;
if((size >= 1 && size <= 248)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using OCTET_STRING,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_BluetoothName_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 8, 8, 1, 248 } /* (SIZE(1..248)) */,
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_BluetoothName_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
asn_TYPE_descriptor_t asn_DEF_BluetoothName = {
"BluetoothName",
"BluetoothName",
&asn_OP_OCTET_STRING,
asn_DEF_BluetoothName_tags_1,
sizeof(asn_DEF_BluetoothName_tags_1)
/sizeof(asn_DEF_BluetoothName_tags_1[0]), /* 1 */
asn_DEF_BluetoothName_tags_1, /* Same as above */
sizeof(asn_DEF_BluetoothName_tags_1)
/sizeof(asn_DEF_BluetoothName_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BluetoothName_constr_1, BluetoothName_constraint },
0, 0, /* No members */
&asn_SPC_OCTET_STRING_specs /* Additional specs */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BluetoothName_H_
#define _BluetoothName_H_
#include "asn_application.h"
/* Including external dependencies */
#include "OCTET_STRING.h"
#ifdef __cplusplus
extern "C" {
#endif
/* BluetoothName */
typedef OCTET_STRING_t BluetoothName_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_BluetoothName_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_BluetoothName;
asn_struct_free_f BluetoothName_free;
asn_struct_print_f BluetoothName_print;
asn_constr_check_f BluetoothName_constraint;
ber_type_decoder_f BluetoothName_decode_ber;
der_type_encoder_f BluetoothName_encode_der;
xer_type_decoder_f BluetoothName_decode_xer;
xer_type_encoder_f BluetoothName_encode_xer;
per_type_decoder_f BluetoothName_decode_uper;
per_type_encoder_f BluetoothName_encode_uper;
per_type_decoder_f BluetoothName_decode_aper;
per_type_encoder_f BluetoothName_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _BluetoothName_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "BroadcastPLMNs-Item.h"
asn_per_constraints_t asn_PER_type_BroadcastPLMNs_Item_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 3, 3, 1, 6 } /* (SIZE(1..6)) */,
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_BroadcastPLMNs_Item_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
0,
&asn_DEF_PLMN_Identity,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_BroadcastPLMNs_Item_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_BroadcastPLMNs_Item_specs_1 = {
sizeof(struct BroadcastPLMNs_Item),
offsetof(struct BroadcastPLMNs_Item, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_BroadcastPLMNs_Item = {
"BroadcastPLMNs-Item",
"BroadcastPLMNs-Item",
&asn_OP_SEQUENCE_OF,
asn_DEF_BroadcastPLMNs_Item_tags_1,
sizeof(asn_DEF_BroadcastPLMNs_Item_tags_1)
/sizeof(asn_DEF_BroadcastPLMNs_Item_tags_1[0]), /* 1 */
asn_DEF_BroadcastPLMNs_Item_tags_1, /* Same as above */
sizeof(asn_DEF_BroadcastPLMNs_Item_tags_1)
/sizeof(asn_DEF_BroadcastPLMNs_Item_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_BroadcastPLMNs_Item_constr_1, SEQUENCE_OF_constraint },
asn_MBR_BroadcastPLMNs_Item_1,
1, /* Single element */
&asn_SPC_BroadcastPLMNs_Item_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _BroadcastPLMNs_Item_H_
#define _BroadcastPLMNs_Item_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PLMN-Identity.h"
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* BroadcastPLMNs-Item */
typedef struct BroadcastPLMNs_Item {
A_SEQUENCE_OF(PLMN_Identity_t) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} BroadcastPLMNs_Item_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_BroadcastPLMNs_Item;
extern asn_SET_OF_specifics_t asn_SPC_BroadcastPLMNs_Item_specs_1;
extern asn_TYPE_member_t asn_MBR_BroadcastPLMNs_Item_1[1];
extern asn_per_constraints_t asn_PER_type_BroadcastPLMNs_Item_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _BroadcastPLMNs_Item_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CNTypeRestrictions.h"
#include "CNTypeRestrictionsItem.h"
asn_per_constraints_t asn_PER_type_CNTypeRestrictions_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_CNTypeRestrictions_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_CNTypeRestrictionsItem,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_CNTypeRestrictions_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_CNTypeRestrictions_specs_1 = {
sizeof(struct CNTypeRestrictions),
offsetof(struct CNTypeRestrictions, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictions = {
"CNTypeRestrictions",
"CNTypeRestrictions",
&asn_OP_SEQUENCE_OF,
asn_DEF_CNTypeRestrictions_tags_1,
sizeof(asn_DEF_CNTypeRestrictions_tags_1)
/sizeof(asn_DEF_CNTypeRestrictions_tags_1[0]), /* 1 */
asn_DEF_CNTypeRestrictions_tags_1, /* Same as above */
sizeof(asn_DEF_CNTypeRestrictions_tags_1)
/sizeof(asn_DEF_CNTypeRestrictions_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CNTypeRestrictions_constr_1, SEQUENCE_OF_constraint },
asn_MBR_CNTypeRestrictions_1,
1, /* Single element */
&asn_SPC_CNTypeRestrictions_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CNTypeRestrictions_H_
#define _CNTypeRestrictions_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct CNTypeRestrictionsItem;
/* CNTypeRestrictions */
typedef struct CNTypeRestrictions {
A_SEQUENCE_OF(struct CNTypeRestrictionsItem) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CNTypeRestrictions_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictions;
extern asn_SET_OF_specifics_t asn_SPC_CNTypeRestrictions_specs_1;
extern asn_TYPE_member_t asn_MBR_CNTypeRestrictions_1[1];
extern asn_per_constraints_t asn_PER_type_CNTypeRestrictions_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _CNTypeRestrictions_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,142 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CNTypeRestrictionsItem.h"
#include "ProtocolExtensionContainer.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
static asn_per_constraints_t asn_PER_type_cn_type_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_cn_type_value2enum_3[] = {
{ 0, 16, "fiveGC-forbidden" }
/* This list is extensible */
};
static const unsigned int asn_MAP_cn_type_enum2value_3[] = {
0 /* fiveGC-forbidden(0) */
/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_cn_type_specs_3 = {
asn_MAP_cn_type_value2enum_3, /* "tag" => N; sorted by tag */
asn_MAP_cn_type_enum2value_3, /* N => "tag"; sorted by N */
1, /* Number of elements in the maps */
2, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_cn_type_tags_3[] = {
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_cn_type_3 = {
"cn-type",
"cn-type",
&asn_OP_NativeEnumerated,
asn_DEF_cn_type_tags_3,
sizeof(asn_DEF_cn_type_tags_3)
/sizeof(asn_DEF_cn_type_tags_3[0]) - 1, /* 1 */
asn_DEF_cn_type_tags_3, /* Same as above */
sizeof(asn_DEF_cn_type_tags_3)
/sizeof(asn_DEF_cn_type_tags_3[0]), /* 2 */
{ 0, &asn_PER_type_cn_type_constr_3, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_cn_type_specs_3 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, plmn_Id),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PLMN_Identity,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"plmn-Id"
},
{ ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, cn_type),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_cn_type_3,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cn-type"
},
{ ATF_POINTER, 1, offsetof(struct CNTypeRestrictionsItem, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P116,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_CNTypeRestrictionsItem_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_CNTypeRestrictionsItem_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CNTypeRestrictionsItem_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1 = {
sizeof(struct CNTypeRestrictionsItem),
offsetof(struct CNTypeRestrictionsItem, _asn_ctx),
asn_MAP_CNTypeRestrictionsItem_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_CNTypeRestrictionsItem_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem = {
"CNTypeRestrictionsItem",
"CNTypeRestrictionsItem",
&asn_OP_SEQUENCE,
asn_DEF_CNTypeRestrictionsItem_tags_1,
sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
/sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
asn_DEF_CNTypeRestrictionsItem_tags_1, /* Same as above */
sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
/sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_CNTypeRestrictionsItem_1,
3, /* Elements count */
&asn_SPC_CNTypeRestrictionsItem_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CNTypeRestrictionsItem_H_
#define _CNTypeRestrictionsItem_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PLMN-Identity.h"
#include "NativeEnumerated.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum CNTypeRestrictionsItem__cn_type {
CNTypeRestrictionsItem__cn_type_fiveGC_forbidden = 0
/*
* Enumeration is extensible
*/
} e_CNTypeRestrictionsItem__cn_type;
/* Forward declarations */
struct ProtocolExtensionContainer;
/* CNTypeRestrictionsItem */
typedef struct CNTypeRestrictionsItem {
PLMN_Identity_t plmn_Id;
long cn_type;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CNTypeRestrictionsItem_t;
/* Implementation */
/* extern asn_TYPE_descriptor_t asn_DEF_cn_type_3; // (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem;
extern asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1;
extern asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _CNTypeRestrictionsItem_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "COUNTValueExtended.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_COUNTValueExtended_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct COUNTValueExtended, pDCP_SNExtended),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PDCP_SNExtended,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pDCP-SNExtended"
},
{ ATF_NOFLAGS, 0, offsetof(struct COUNTValueExtended, hFNModified),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_HFNModified,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"hFNModified"
},
{ ATF_POINTER, 1, offsetof(struct COUNTValueExtended, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P124,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_COUNTValueExtended_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_COUNTValueExtended_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_COUNTValueExtended_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCP-SNExtended */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hFNModified */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_COUNTValueExtended_specs_1 = {
sizeof(struct COUNTValueExtended),
offsetof(struct COUNTValueExtended, _asn_ctx),
asn_MAP_COUNTValueExtended_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_COUNTValueExtended_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_COUNTValueExtended = {
"COUNTValueExtended",
"COUNTValueExtended",
&asn_OP_SEQUENCE,
asn_DEF_COUNTValueExtended_tags_1,
sizeof(asn_DEF_COUNTValueExtended_tags_1)
/sizeof(asn_DEF_COUNTValueExtended_tags_1[0]), /* 1 */
asn_DEF_COUNTValueExtended_tags_1, /* Same as above */
sizeof(asn_DEF_COUNTValueExtended_tags_1)
/sizeof(asn_DEF_COUNTValueExtended_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_COUNTValueExtended_1,
3, /* Elements count */
&asn_SPC_COUNTValueExtended_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _COUNTValueExtended_H_
#define _COUNTValueExtended_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PDCP-SNExtended.h"
#include "HFNModified.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* COUNTValueExtended */
typedef struct COUNTValueExtended {
PDCP_SNExtended_t pDCP_SNExtended;
HFNModified_t hFNModified;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} COUNTValueExtended_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_COUNTValueExtended;
extern asn_SEQUENCE_specifics_t asn_SPC_COUNTValueExtended_specs_1;
extern asn_TYPE_member_t asn_MBR_COUNTValueExtended_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _COUNTValueExtended_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "COUNTvalue.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_COUNTvalue_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct COUNTvalue, pDCP_SN),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PDCP_SN,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pDCP-SN"
},
{ ATF_NOFLAGS, 0, offsetof(struct COUNTvalue, hFN),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_HFN,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"hFN"
},
{ ATF_POINTER, 1, offsetof(struct COUNTvalue, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P123,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_COUNTvalue_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_COUNTvalue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_COUNTvalue_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCP-SN */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hFN */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_COUNTvalue_specs_1 = {
sizeof(struct COUNTvalue),
offsetof(struct COUNTvalue, _asn_ctx),
asn_MAP_COUNTvalue_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_COUNTvalue_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_COUNTvalue = {
"COUNTvalue",
"COUNTvalue",
&asn_OP_SEQUENCE,
asn_DEF_COUNTvalue_tags_1,
sizeof(asn_DEF_COUNTvalue_tags_1)
/sizeof(asn_DEF_COUNTvalue_tags_1[0]), /* 1 */
asn_DEF_COUNTvalue_tags_1, /* Same as above */
sizeof(asn_DEF_COUNTvalue_tags_1)
/sizeof(asn_DEF_COUNTvalue_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_COUNTvalue_1,
3, /* Elements count */
&asn_SPC_COUNTvalue_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _COUNTvalue_H_
#define _COUNTvalue_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PDCP-SN.h"
#include "HFN.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* COUNTvalue */
typedef struct COUNTvalue {
PDCP_SN_t pDCP_SN;
HFN_t hFN;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} COUNTvalue_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_COUNTvalue;
extern asn_SEQUENCE_specifics_t asn_SPC_COUNTvalue_specs_1;
extern asn_TYPE_member_t asn_MBR_COUNTvalue_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _COUNTvalue_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "COUNTvaluePDCP-SNlength18.h"
#include "ProtocolExtensionContainer.h"
asn_TYPE_member_t asn_MBR_COUNTvaluePDCP_SNlength18_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct COUNTvaluePDCP_SNlength18, pDCP_SNlength18),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_PDCP_SNlength18,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"pDCP-SNlength18"
},
{ ATF_NOFLAGS, 0, offsetof(struct COUNTvaluePDCP_SNlength18, hFNforPDCP_SNlength18),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_HFNforPDCP_SNlength18,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"hFNforPDCP-SNlength18"
},
{ ATF_POINTER, 1, offsetof(struct COUNTvaluePDCP_SNlength18, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P125,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_COUNTvaluePDCP_SNlength18_oms_1[] = { 2 };
static const ber_tlv_tag_t asn_DEF_COUNTvaluePDCP_SNlength18_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_COUNTvaluePDCP_SNlength18_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCP-SNlength18 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hFNforPDCP-SNlength18 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
asn_SEQUENCE_specifics_t asn_SPC_COUNTvaluePDCP_SNlength18_specs_1 = {
sizeof(struct COUNTvaluePDCP_SNlength18),
offsetof(struct COUNTvaluePDCP_SNlength18, _asn_ctx),
asn_MAP_COUNTvaluePDCP_SNlength18_tag2el_1,
3, /* Count of tags in the map */
asn_MAP_COUNTvaluePDCP_SNlength18_oms_1, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_COUNTvaluePDCP_SNlength18 = {
"COUNTvaluePDCP-SNlength18",
"COUNTvaluePDCP-SNlength18",
&asn_OP_SEQUENCE,
asn_DEF_COUNTvaluePDCP_SNlength18_tags_1,
sizeof(asn_DEF_COUNTvaluePDCP_SNlength18_tags_1)
/sizeof(asn_DEF_COUNTvaluePDCP_SNlength18_tags_1[0]), /* 1 */
asn_DEF_COUNTvaluePDCP_SNlength18_tags_1, /* Same as above */
sizeof(asn_DEF_COUNTvaluePDCP_SNlength18_tags_1)
/sizeof(asn_DEF_COUNTvaluePDCP_SNlength18_tags_1[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_COUNTvaluePDCP_SNlength18_1,
3, /* Elements count */
&asn_SPC_COUNTvaluePDCP_SNlength18_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _COUNTvaluePDCP_SNlength18_H_
#define _COUNTvaluePDCP_SNlength18_H_
#include "asn_application.h"
/* Including external dependencies */
#include "PDCP-SNlength18.h"
#include "HFNforPDCP-SNlength18.h"
#include "constr_SEQUENCE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* COUNTvaluePDCP-SNlength18 */
typedef struct COUNTvaluePDCP_SNlength18 {
PDCP_SNlength18_t pDCP_SNlength18;
HFNforPDCP_SNlength18_t hFNforPDCP_SNlength18;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} COUNTvaluePDCP_SNlength18_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_COUNTvaluePDCP_SNlength18;
extern asn_SEQUENCE_specifics_t asn_SPC_COUNTvaluePDCP_SNlength18_specs_1;
extern asn_TYPE_member_t asn_MBR_COUNTvaluePDCP_SNlength18_1[3];
#ifdef __cplusplus
}
#endif
#endif /* _COUNTvaluePDCP_SNlength18_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CRNTI.h"
int
CRNTI_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size == 16)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using BIT_STRING,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_CRNTI_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */,
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_CRNTI_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CRNTI = {
"CRNTI",
"CRNTI",
&asn_OP_BIT_STRING,
asn_DEF_CRNTI_tags_1,
sizeof(asn_DEF_CRNTI_tags_1)
/sizeof(asn_DEF_CRNTI_tags_1[0]), /* 1 */
asn_DEF_CRNTI_tags_1, /* Same as above */
sizeof(asn_DEF_CRNTI_tags_1)
/sizeof(asn_DEF_CRNTI_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CRNTI_constr_1, CRNTI_constraint },
0, 0, /* No members */
&asn_SPC_BIT_STRING_specs /* Additional specs */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CRNTI_H_
#define _CRNTI_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BIT_STRING.h"
#ifdef __cplusplus
extern "C" {
#endif
/* CRNTI */
typedef BIT_STRING_t CRNTI_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_CRNTI_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_CRNTI;
asn_struct_free_f CRNTI_free;
asn_struct_print_f CRNTI_print;
asn_constr_check_f CRNTI_constraint;
ber_type_decoder_f CRNTI_decode_ber;
der_type_encoder_f CRNTI_encode_der;
xer_type_decoder_f CRNTI_decode_xer;
xer_type_encoder_f CRNTI_encode_xer;
per_type_decoder_f CRNTI_decode_uper;
per_type_encoder_f CRNTI_encode_uper;
per_type_decoder_f CRNTI_decode_aper;
per_type_encoder_f CRNTI_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _CRNTI_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CSG-Id.h"
int
CSG_Id_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(st->size > 0) {
/* Size in bits */
size = 8 * st->size - (st->bits_unused & 0x07);
} else {
size = 0;
}
if((size == 27)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using BIT_STRING,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_CSG_Id_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 0, 0, 27, 27 } /* (SIZE(27..27)) */,
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_CSG_Id_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CSG_Id = {
"CSG-Id",
"CSG-Id",
&asn_OP_BIT_STRING,
asn_DEF_CSG_Id_tags_1,
sizeof(asn_DEF_CSG_Id_tags_1)
/sizeof(asn_DEF_CSG_Id_tags_1[0]), /* 1 */
asn_DEF_CSG_Id_tags_1, /* Same as above */
sizeof(asn_DEF_CSG_Id_tags_1)
/sizeof(asn_DEF_CSG_Id_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CSG_Id_constr_1, CSG_Id_constraint },
0, 0, /* No members */
&asn_SPC_BIT_STRING_specs /* Additional specs */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CSG_Id_H_
#define _CSG_Id_H_
#include "asn_application.h"
/* Including external dependencies */
#include "BIT_STRING.h"
#ifdef __cplusplus
extern "C" {
#endif
/* CSG-Id */
typedef BIT_STRING_t CSG_Id_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_CSG_Id_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_CSG_Id;
asn_struct_free_f CSG_Id_free;
asn_struct_print_f CSG_Id_print;
asn_constr_check_f CSG_Id_constraint;
ber_type_decoder_f CSG_Id_decode_ber;
der_type_encoder_f CSG_Id_encode_der;
xer_type_decoder_f CSG_Id_decode_xer;
xer_type_encoder_f CSG_Id_encode_xer;
per_type_decoder_f CSG_Id_decode_uper;
per_type_encoder_f CSG_Id_encode_uper;
per_type_decoder_f CSG_Id_decode_aper;
per_type_encoder_f CSG_Id_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _CSG_Id_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CSGMembershipStatus.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_CSGMembershipStatus_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_CSGMembershipStatus_value2enum_1[] = {
{ 0, 6, "member" },
{ 1, 10, "not-member" }
};
static const unsigned int asn_MAP_CSGMembershipStatus_enum2value_1[] = {
0, /* member(0) */
1 /* not-member(1) */
};
const asn_INTEGER_specifics_t asn_SPC_CSGMembershipStatus_specs_1 = {
asn_MAP_CSGMembershipStatus_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_CSGMembershipStatus_enum2value_1, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
0, /* Enumeration is not extensible */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_CSGMembershipStatus_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CSGMembershipStatus = {
"CSGMembershipStatus",
"CSGMembershipStatus",
&asn_OP_NativeEnumerated,
asn_DEF_CSGMembershipStatus_tags_1,
sizeof(asn_DEF_CSGMembershipStatus_tags_1)
/sizeof(asn_DEF_CSGMembershipStatus_tags_1[0]), /* 1 */
asn_DEF_CSGMembershipStatus_tags_1, /* Same as above */
sizeof(asn_DEF_CSGMembershipStatus_tags_1)
/sizeof(asn_DEF_CSGMembershipStatus_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CSGMembershipStatus_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_CSGMembershipStatus_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CSGMembershipStatus_H_
#define _CSGMembershipStatus_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeEnumerated.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum CSGMembershipStatus {
CSGMembershipStatus_member = 0,
CSGMembershipStatus_not_member = 1
} e_CSGMembershipStatus;
/* CSGMembershipStatus */
typedef long CSGMembershipStatus_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_CSGMembershipStatus_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_CSGMembershipStatus;
extern const asn_INTEGER_specifics_t asn_SPC_CSGMembershipStatus_specs_1;
asn_struct_free_f CSGMembershipStatus_free;
asn_struct_print_f CSGMembershipStatus_print;
asn_constr_check_f CSGMembershipStatus_constraint;
ber_type_decoder_f CSGMembershipStatus_decode_ber;
der_type_encoder_f CSGMembershipStatus_encode_der;
xer_type_decoder_f CSGMembershipStatus_decode_xer;
xer_type_encoder_f CSGMembershipStatus_encode_xer;
per_type_decoder_f CSGMembershipStatus_decode_uper;
per_type_encoder_f CSGMembershipStatus_encode_uper;
per_type_decoder_f CSGMembershipStatus_decode_aper;
per_type_encoder_f CSGMembershipStatus_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _CSGMembershipStatus_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,137 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CSIReportList.h"
#include "ProtocolExtensionContainer.h"
asn_per_constraints_t asn_PER_type_CSIReportList_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 7, 7, 1, 128 } /* (SIZE(1..128)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Member_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportList__Member, uEID),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_UEID,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"uEID"
},
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportList__Member, cSIReportPerCSIProcess),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CSIReportPerCSIProcess,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cSIReportPerCSIProcess"
},
{ ATF_POINTER, 1, offsetof(struct CSIReportList__Member, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P128,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_Member_oms_2[] = { 2 };
static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uEID */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cSIReportPerCSIProcess */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
sizeof(struct CSIReportList__Member),
offsetof(struct CSIReportList__Member, _asn_ctx),
asn_MAP_Member_tag2el_2,
3, /* Count of tags in the map */
asn_MAP_Member_oms_2, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_2 = {
"SEQUENCE",
"SEQUENCE",
&asn_OP_SEQUENCE,
asn_DEF_Member_tags_2,
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
asn_DEF_Member_tags_2, /* Same as above */
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_Member_2,
3, /* Elements count */
&asn_SPC_Member_specs_2 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_CSIReportList_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_Member_2,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_CSIReportList_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_CSIReportList_specs_1 = {
sizeof(struct CSIReportList),
offsetof(struct CSIReportList, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_CSIReportList = {
"CSIReportList",
"CSIReportList",
&asn_OP_SEQUENCE_OF,
asn_DEF_CSIReportList_tags_1,
sizeof(asn_DEF_CSIReportList_tags_1)
/sizeof(asn_DEF_CSIReportList_tags_1[0]), /* 1 */
asn_DEF_CSIReportList_tags_1, /* Same as above */
sizeof(asn_DEF_CSIReportList_tags_1)
/sizeof(asn_DEF_CSIReportList_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CSIReportList_constr_1, SEQUENCE_OF_constraint },
asn_MBR_CSIReportList_1,
1, /* Single element */
&asn_SPC_CSIReportList_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CSIReportList_H_
#define _CSIReportList_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "UEID.h"
#include "CSIReportPerCSIProcess.h"
#include "constr_SEQUENCE.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* Forward definitions */
typedef struct CSIReportList__Member {
UEID_t uEID;
CSIReportPerCSIProcess_t cSIReportPerCSIProcess;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportList__Member;
/* CSIReportList */
typedef struct CSIReportList {
A_SEQUENCE_OF(CSIReportList__Member) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportList_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_CSIReportList;
extern asn_SET_OF_specifics_t asn_SPC_CSIReportList_specs_1;
extern asn_TYPE_member_t asn_MBR_CSIReportList_1[1];
extern asn_per_constraints_t asn_PER_type_CSIReportList_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _CSIReportList_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,167 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CSIReportPerCSIProcess.h"
#include "ProtocolExtensionContainer.h"
static int
memb_cSIProcessConfigurationIndex_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 1 && value <= 7)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t asn_PER_memb_cSIProcessConfigurationIndex_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 1, 7 } /* (1..7,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcess_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Member_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcess__Member, cSIProcessConfigurationIndex),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, &asn_PER_memb_cSIProcessConfigurationIndex_constr_3, memb_cSIProcessConfigurationIndex_constraint_2 },
0, 0, /* No default value */
"cSIProcessConfigurationIndex"
},
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcess__Member, cSIReportPerCSIProcessItem),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CSIReportPerCSIProcessItem,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"cSIReportPerCSIProcessItem"
},
{ ATF_POINTER, 1, offsetof(struct CSIReportPerCSIProcess__Member, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P129,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_Member_oms_2[] = { 2 };
static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cSIProcessConfigurationIndex */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cSIReportPerCSIProcessItem */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
sizeof(struct CSIReportPerCSIProcess__Member),
offsetof(struct CSIReportPerCSIProcess__Member, _asn_ctx),
asn_MAP_Member_tag2el_2,
3, /* Count of tags in the map */
asn_MAP_Member_oms_2, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_2 = {
"SEQUENCE",
"SEQUENCE",
&asn_OP_SEQUENCE,
asn_DEF_Member_tags_2,
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
asn_DEF_Member_tags_2, /* Same as above */
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_Member_2,
3, /* Elements count */
&asn_SPC_Member_specs_2 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcess_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_Member_2,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_CSIReportPerCSIProcess_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcess_specs_1 = {
sizeof(struct CSIReportPerCSIProcess),
offsetof(struct CSIReportPerCSIProcess, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcess = {
"CSIReportPerCSIProcess",
"CSIReportPerCSIProcess",
&asn_OP_SEQUENCE_OF,
asn_DEF_CSIReportPerCSIProcess_tags_1,
sizeof(asn_DEF_CSIReportPerCSIProcess_tags_1)
/sizeof(asn_DEF_CSIReportPerCSIProcess_tags_1[0]), /* 1 */
asn_DEF_CSIReportPerCSIProcess_tags_1, /* Same as above */
sizeof(asn_DEF_CSIReportPerCSIProcess_tags_1)
/sizeof(asn_DEF_CSIReportPerCSIProcess_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CSIReportPerCSIProcess_constr_1, SEQUENCE_OF_constraint },
asn_MBR_CSIReportPerCSIProcess_1,
1, /* Single element */
&asn_SPC_CSIReportPerCSIProcess_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CSIReportPerCSIProcess_H_
#define _CSIReportPerCSIProcess_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "NativeInteger.h"
#include "CSIReportPerCSIProcessItem.h"
#include "constr_SEQUENCE.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct ProtocolExtensionContainer;
/* Forward definitions */
typedef struct CSIReportPerCSIProcess__Member {
long cSIProcessConfigurationIndex;
CSIReportPerCSIProcessItem_t cSIReportPerCSIProcessItem;
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportPerCSIProcess__Member;
/* CSIReportPerCSIProcess */
typedef struct CSIReportPerCSIProcess {
A_SEQUENCE_OF(CSIReportPerCSIProcess__Member) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportPerCSIProcess_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcess;
extern asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcess_specs_1;
extern asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcess_1[1];
extern asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcess_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _CSIReportPerCSIProcess_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,188 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CSIReportPerCSIProcessItem.h"
#include "SubbandCQIList.h"
#include "ProtocolExtensionContainer.h"
static int
memb_rI_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 1 && value <= 8)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t asn_PER_memb_rI_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 1, 8 } /* (1..8,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcessItem_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Member_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, rI),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, &asn_PER_memb_rI_constr_3, memb_rI_constraint_2 },
0, 0, /* No default value */
"rI"
},
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, widebandCQI),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_WidebandCQI,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"widebandCQI"
},
{ ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandSize),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SubbandSize,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"subbandSize"
},
{ ATF_POINTER, 2, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandCQIList),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_SubbandCQIList,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"subbandCQIList"
},
{ ATF_POINTER, 1, offsetof(struct CSIReportPerCSIProcessItem__Member, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_ProtocolExtensionContainer_170P130,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_Member_oms_2[] = { 3, 4 };
static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rI */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* widebandCQI */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* subbandSize */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* subbandCQIList */
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
sizeof(struct CSIReportPerCSIProcessItem__Member),
offsetof(struct CSIReportPerCSIProcessItem__Member, _asn_ctx),
asn_MAP_Member_tag2el_2,
5, /* Count of tags in the map */
asn_MAP_Member_oms_2, /* Optional members */
2, 0, /* Root/Additions */
5, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_2 = {
"SEQUENCE",
"SEQUENCE",
&asn_OP_SEQUENCE,
asn_DEF_Member_tags_2,
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
asn_DEF_Member_tags_2, /* Same as above */
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_Member_2,
5, /* Elements count */
&asn_SPC_Member_specs_2 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcessItem_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_Member_2,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_CSIReportPerCSIProcessItem_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcessItem_specs_1 = {
sizeof(struct CSIReportPerCSIProcessItem),
offsetof(struct CSIReportPerCSIProcessItem, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcessItem = {
"CSIReportPerCSIProcessItem",
"CSIReportPerCSIProcessItem",
&asn_OP_SEQUENCE_OF,
asn_DEF_CSIReportPerCSIProcessItem_tags_1,
sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
/sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
asn_DEF_CSIReportPerCSIProcessItem_tags_1, /* Same as above */
sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
/sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CSIReportPerCSIProcessItem_constr_1, SEQUENCE_OF_constraint },
asn_MBR_CSIReportPerCSIProcessItem_1,
1, /* Single element */
&asn_SPC_CSIReportPerCSIProcessItem_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CSIReportPerCSIProcessItem_H_
#define _CSIReportPerCSIProcessItem_H_
#include "asn_application.h"
/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "NativeInteger.h"
#include "WidebandCQI.h"
#include "SubbandSize.h"
#include "constr_SEQUENCE.h"
#include "constr_SEQUENCE_OF.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declarations */
struct SubbandCQIList;
struct ProtocolExtensionContainer;
/* Forward definitions */
typedef struct CSIReportPerCSIProcessItem__Member {
long rI;
WidebandCQI_t widebandCQI;
SubbandSize_t subbandSize;
struct SubbandCQIList *subbandCQIList; /* OPTIONAL */
struct ProtocolExtensionContainer *iE_Extensions; /* OPTIONAL */
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportPerCSIProcessItem__Member;
/* CSIReportPerCSIProcessItem */
typedef struct CSIReportPerCSIProcessItem {
A_SEQUENCE_OF(CSIReportPerCSIProcessItem__Member) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} CSIReportPerCSIProcessItem_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcessItem;
extern asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcessItem_specs_1;
extern asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcessItem_1[1];
extern asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcessItem_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _CSIReportPerCSIProcessItem_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CallProcess-ID.h"
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
static const ber_tlv_tag_t asn_DEF_CallProcess_ID_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CallProcess_ID = {
"CallProcess-ID",
"CallProcess-ID",
&asn_OP_NativeInteger,
asn_DEF_CallProcess_ID_tags_1,
sizeof(asn_DEF_CallProcess_ID_tags_1)
/sizeof(asn_DEF_CallProcess_ID_tags_1[0]), /* 1 */
asn_DEF_CallProcess_ID_tags_1, /* Same as above */
sizeof(asn_DEF_CallProcess_ID_tags_1)
/sizeof(asn_DEF_CallProcess_ID_tags_1[0]), /* 1 */
{ 0, 0, NativeInteger_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "E2SM-gNB-X2-IEs"
* found in "../../asnFiles/e2sm-gNB-X2-release-1-v041.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CallProcess_ID_H_
#define _CallProcess_ID_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#ifdef __cplusplus
extern "C" {
#endif
/* CallProcess-ID */
typedef long CallProcess_ID_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_CallProcess_ID;
asn_struct_free_f CallProcess_ID_free;
asn_struct_print_f CallProcess_ID_print;
asn_constr_check_f CallProcess_ID_constraint;
ber_type_decoder_f CallProcess_ID_decode_ber;
der_type_encoder_f CallProcess_ID_encode_der;
xer_type_decoder_f CallProcess_ID_decode_xer;
xer_type_encoder_f CallProcess_ID_encode_xer;
per_type_decoder_f CallProcess_ID_decode_uper;
per_type_encoder_f CallProcess_ID_encode_uper;
per_type_decoder_f CallProcess_ID_decode_aper;
per_type_encoder_f CallProcess_ID_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _CallProcess_ID_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CapacityValue.h"
int
CapacityValue_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 0 && value <= 100)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_CapacityValue_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED, 7, 7, 0, 100 } /* (0..100) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const ber_tlv_tag_t asn_DEF_CapacityValue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CapacityValue = {
"CapacityValue",
"CapacityValue",
&asn_OP_NativeInteger,
asn_DEF_CapacityValue_tags_1,
sizeof(asn_DEF_CapacityValue_tags_1)
/sizeof(asn_DEF_CapacityValue_tags_1[0]), /* 1 */
asn_DEF_CapacityValue_tags_1, /* Same as above */
sizeof(asn_DEF_CapacityValue_tags_1)
/sizeof(asn_DEF_CapacityValue_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CapacityValue_constr_1, CapacityValue_constraint },
0, 0, /* No members */
0 /* No specifics */
};

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _CapacityValue_H_
#define _CapacityValue_H_
#include "asn_application.h"
/* Including external dependencies */
#include "NativeInteger.h"
#ifdef __cplusplus
extern "C" {
#endif
/* CapacityValue */
typedef long CapacityValue_t;
/* Implementation */
extern asn_per_constraints_t asn_PER_type_CapacityValue_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_CapacityValue;
asn_struct_free_f CapacityValue_free;
asn_struct_print_f CapacityValue_print;
asn_constr_check_f CapacityValue_constraint;
ber_type_decoder_f CapacityValue_decode_ber;
der_type_encoder_f CapacityValue_encode_der;
xer_type_decoder_f CapacityValue_decode_xer;
xer_type_encoder_f CapacityValue_encode_xer;
per_type_decoder_f CapacityValue_decode_uper;
per_type_encoder_f CapacityValue_encode_uper;
per_type_decoder_f CapacityValue_decode_aper;
per_type_encoder_f CapacityValue_encode_aper;
#ifdef __cplusplus
}
#endif
#endif /* _CapacityValue_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "Cause.h"
asn_per_constraints_t asn_PER_type_Cause_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_TYPE_member_t asn_MBR_Cause_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Cause, choice.radioNetwork),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CauseRadioNetwork,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"radioNetwork"
},
{ ATF_NOFLAGS, 0, offsetof(struct Cause, choice.transport),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CauseTransport,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"transport"
},
{ ATF_NOFLAGS, 0, offsetof(struct Cause, choice.protocol),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CauseProtocol,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"protocol"
},
{ ATF_NOFLAGS, 0, offsetof(struct Cause, choice.misc),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_CauseMisc,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"misc"
},
};
static const asn_TYPE_tag2member_t asn_MAP_Cause_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transport */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protocol */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* misc */
};
asn_CHOICE_specifics_t asn_SPC_Cause_specs_1 = {
sizeof(struct Cause),
offsetof(struct Cause, _asn_ctx),
offsetof(struct Cause, present),
sizeof(((struct Cause *)0)->present),
asn_MAP_Cause_tag2el_1,
4, /* Count of tags in the map */
0, 0,
4 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_Cause = {
"Cause",
"Cause",
&asn_OP_CHOICE,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
{ 0, &asn_PER_type_Cause_constr_1, CHOICE_constraint },
asn_MBR_Cause_1,
4, /* Elements count */
&asn_SPC_Cause_specs_1 /* Additional specs */
};

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#ifndef _Cause_H_
#define _Cause_H_
#include "asn_application.h"
/* Including external dependencies */
#include "CauseRadioNetwork.h"
#include "CauseTransport.h"
#include "CauseProtocol.h"
#include "CauseMisc.h"
#include "constr_CHOICE.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Dependencies */
typedef enum Cause_PR {
Cause_PR_NOTHING, /* No components present */
Cause_PR_radioNetwork,
Cause_PR_transport,
Cause_PR_protocol,
Cause_PR_misc
/* Extensions may appear below */
} Cause_PR;
/* Cause */
typedef struct Cause {
Cause_PR present;
union Cause_u {
CauseRadioNetwork_t radioNetwork;
CauseTransport_t transport;
CauseProtocol_t protocol;
CauseMisc_t misc;
/*
* This type is extensible,
* possible extensions are below.
*/
} choice;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} Cause_t;
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_Cause;
extern asn_CHOICE_specifics_t asn_SPC_Cause_specs_1;
extern asn_TYPE_member_t asn_MBR_Cause_1[4];
extern asn_per_constraints_t asn_PER_type_Cause_constr_1;
#ifdef __cplusplus
}
#endif
#endif /* _Cause_H_ */
#include "asn_internal.h"

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2019 AT&T Intellectual Property
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source code is part of the near-RT RIC (RAN Intelligent Controller)
* platform project (RICP).
*/
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asnFiles/X2AP-IEs.asn"
* `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
*/
#include "CauseMisc.h"
/*
* This type is implemented using NativeEnumerated,
* so here we adjust the DEF accordingly.
*/
asn_per_constraints_t asn_PER_type_CauseMisc_constr_1 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static const asn_INTEGER_enum_map_t asn_MAP_CauseMisc_value2enum_1[] = {
{ 0, 27, "control-processing-overload" },
{ 1, 16, "hardware-failure" },
{ 2, 15, "om-intervention" },
{ 3, 42, "not-enough-user-plane-processing-resources" },
{ 4, 11, "unspecified" }
/* This list is extensible */
};
static const unsigned int asn_MAP_CauseMisc_enum2value_1[] = {
0, /* control-processing-overload(0) */
1, /* hardware-failure(1) */
3, /* not-enough-user-plane-processing-resources(3) */
2, /* om-intervention(2) */
4 /* unspecified(4) */
/* This list is extensible */
};
const asn_INTEGER_specifics_t asn_SPC_CauseMisc_specs_1 = {
asn_MAP_CauseMisc_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_CauseMisc_enum2value_1, /* N => "tag"; sorted by N */
5, /* Number of elements in the maps */
6, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0
};
static const ber_tlv_tag_t asn_DEF_CauseMisc_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn_TYPE_descriptor_t asn_DEF_CauseMisc = {
"CauseMisc",
"CauseMisc",
&asn_OP_NativeEnumerated,
asn_DEF_CauseMisc_tags_1,
sizeof(asn_DEF_CauseMisc_tags_1)
/sizeof(asn_DEF_CauseMisc_tags_1[0]), /* 1 */
asn_DEF_CauseMisc_tags_1, /* Same as above */
sizeof(asn_DEF_CauseMisc_tags_1)
/sizeof(asn_DEF_CauseMisc_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_CauseMisc_constr_1, NativeEnumerated_constraint },
0, 0, /* Defined elsewhere */
&asn_SPC_CauseMisc_specs_1 /* Additional specs */
};

Some files were not shown because too many files have changed in this diff Show More