blob: 8ce01d93b95442af5961f9a4ef2073117e4f0e18 [file] [log] [blame]
Peter Szilagyifbc56f92019-07-23 19:29:46 +00001/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
kalnagy1455c852019-10-21 13:06:23 +02004 * found in "X2AP-15-4-0.asn1"
5 * `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
Peter Szilagyifbc56f92019-07-23 19:29:46 +00006 */
7
8#include "UEAppLayerMeasConfig.h"
9
10#include "ProtocolExtensionContainer.h"
11static int
12memb_containerForAppLayerMeasConfig_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
15 size_t size;
16
17 if(!sptr) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
21 return -1;
22 }
23
24 size = st->size;
25
26 if((size >= 1 && size <= 1000)) {
27 /* Constraint check succeeded */
28 return 0;
29 } else {
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
33 return -1;
34 }
35}
36
37static asn_oer_constraints_t asn_OER_memb_containerForAppLayerMeasConfig_constr_2 CC_NOTUSED = {
38 { 0, 0 },
39 -1 /* (SIZE(1..1000)) */};
40static asn_per_constraints_t asn_PER_memb_containerForAppLayerMeasConfig_constr_2 CC_NOTUSED = {
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */,
43 0, 0 /* No PER value map */
44};
45static asn_TYPE_member_t asn_MBR_UEAppLayerMeasConfig_1[] = {
46 { ATF_NOFLAGS, 0, offsetof(struct UEAppLayerMeasConfig, containerForAppLayerMeasConfig),
47 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
48 -1, /* IMPLICIT tag at current level */
49 &asn_DEF_OCTET_STRING,
50 0,
51 { &asn_OER_memb_containerForAppLayerMeasConfig_constr_2, &asn_PER_memb_containerForAppLayerMeasConfig_constr_2, memb_containerForAppLayerMeasConfig_constraint_1 },
52 0, 0, /* No default value */
53 "containerForAppLayerMeasConfig"
54 },
55 { ATF_NOFLAGS, 0, offsetof(struct UEAppLayerMeasConfig, areaScopeOfQMC),
56 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
57 +1, /* EXPLICIT tag at current level */
58 &asn_DEF_AreaScopeOfQMC,
59 0,
60 { 0, 0, 0 },
61 0, 0, /* No default value */
62 "areaScopeOfQMC"
63 },
64 { ATF_POINTER, 1, offsetof(struct UEAppLayerMeasConfig, iE_Extensions),
65 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
66 -1, /* IMPLICIT tag at current level */
kalnagy1455c852019-10-21 13:06:23 +020067 &asn_DEF_ProtocolExtensionContainer_7683P210,
Peter Szilagyifbc56f92019-07-23 19:29:46 +000068 0,
69 { 0, 0, 0 },
70 0, 0, /* No default value */
71 "iE-Extensions"
72 },
73};
74static const int asn_MAP_UEAppLayerMeasConfig_oms_1[] = { 2 };
75static const ber_tlv_tag_t asn_DEF_UEAppLayerMeasConfig_tags_1[] = {
76 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
77};
78static const asn_TYPE_tag2member_t asn_MAP_UEAppLayerMeasConfig_tag2el_1[] = {
79 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* containerForAppLayerMeasConfig */
80 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* areaScopeOfQMC */
81 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
82};
83static asn_SEQUENCE_specifics_t asn_SPC_UEAppLayerMeasConfig_specs_1 = {
84 sizeof(struct UEAppLayerMeasConfig),
85 offsetof(struct UEAppLayerMeasConfig, _asn_ctx),
86 asn_MAP_UEAppLayerMeasConfig_tag2el_1,
87 3, /* Count of tags in the map */
88 asn_MAP_UEAppLayerMeasConfig_oms_1, /* Optional members */
89 1, 0, /* Root/Additions */
90 3, /* First extension addition */
91};
92asn_TYPE_descriptor_t asn_DEF_UEAppLayerMeasConfig = {
93 "UEAppLayerMeasConfig",
94 "UEAppLayerMeasConfig",
95 &asn_OP_SEQUENCE,
96 asn_DEF_UEAppLayerMeasConfig_tags_1,
97 sizeof(asn_DEF_UEAppLayerMeasConfig_tags_1)
98 /sizeof(asn_DEF_UEAppLayerMeasConfig_tags_1[0]), /* 1 */
99 asn_DEF_UEAppLayerMeasConfig_tags_1, /* Same as above */
100 sizeof(asn_DEF_UEAppLayerMeasConfig_tags_1)
101 /sizeof(asn_DEF_UEAppLayerMeasConfig_tags_1[0]), /* 1 */
102 { 0, 0, SEQUENCE_constraint },
103 asn_MBR_UEAppLayerMeasConfig_1,
104 3, /* Elements count */
105 &asn_SPC_UEAppLayerMeasConfig_specs_1 /* Additional specs */
106};
107