2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "FreqBandNrItem.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
11 #include "SupportedSULFreqBandItem.h"
\r
13 memb_freqBandIndicatorNr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
18 ASN__CTFAIL(app_key, td, sptr,
\r
19 "%s: value not given (%s:%d)",
\r
20 td->name, __FILE__, __LINE__);
\r
24 value = *(const long *)sptr;
\r
26 if((value >= 1 && value <= 1024)) {
\r
27 /* Constraint check succeeded */
\r
30 ASN__CTFAIL(app_key, td, sptr,
\r
31 "%s: constraint failed (%s:%d)",
\r
32 td->name, __FILE__, __LINE__);
\r
38 memb_supportedSULBandList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
39 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
43 ASN__CTFAIL(app_key, td, sptr,
\r
44 "%s: value not given (%s:%d)",
\r
45 td->name, __FILE__, __LINE__);
\r
49 /* Determine the number of elements */
\r
50 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
\r
53 /* Perform validation of the inner elements */
\r
54 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
\r
56 ASN__CTFAIL(app_key, td, sptr,
\r
57 "%s: constraint failed (%s:%d)",
\r
58 td->name, __FILE__, __LINE__);
\r
63 static asn_per_constraints_t asn_PER_type_supportedSULBandList_constr_3 CC_NOTUSED = {
\r
64 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
65 { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */,
\r
66 0, 0 /* No PER value map */
\r
68 static asn_per_constraints_t asn_PER_memb_freqBandIndicatorNr_constr_2 CC_NOTUSED = {
\r
69 { APC_CONSTRAINED | APC_EXTENSIBLE, 10, 10, 1, 1024 } /* (1..1024,...) */,
\r
70 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
71 0, 0 /* No PER value map */
\r
73 static asn_per_constraints_t asn_PER_memb_supportedSULBandList_constr_3 CC_NOTUSED = {
\r
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
75 { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */,
\r
76 0, 0 /* No PER value map */
\r
78 static asn_TYPE_member_t asn_MBR_supportedSULBandList_3[] = {
\r
79 { ATF_POINTER, 0, 0,
\r
80 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
\r
82 &asn_DEF_SupportedSULFreqBandItem,
\r
85 0, 0, /* No default value */
\r
89 static const ber_tlv_tag_t asn_DEF_supportedSULBandList_tags_3[] = {
\r
90 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
91 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
93 static asn_SET_OF_specifics_t asn_SPC_supportedSULBandList_specs_3 = {
\r
94 sizeof(struct FreqBandNrItem__supportedSULBandList),
\r
95 offsetof(struct FreqBandNrItem__supportedSULBandList, _asn_ctx),
\r
96 0, /* XER encoding is XMLDelimitedItemList */
\r
98 static /* Use -fall-defs-global to expose */
\r
99 asn_TYPE_descriptor_t asn_DEF_supportedSULBandList_3 = {
\r
100 "supportedSULBandList",
\r
101 "supportedSULBandList",
\r
102 &asn_OP_SEQUENCE_OF,
\r
103 asn_DEF_supportedSULBandList_tags_3,
\r
104 sizeof(asn_DEF_supportedSULBandList_tags_3)
\r
105 /sizeof(asn_DEF_supportedSULBandList_tags_3[0]) - 1, /* 1 */
\r
106 asn_DEF_supportedSULBandList_tags_3, /* Same as above */
\r
107 sizeof(asn_DEF_supportedSULBandList_tags_3)
\r
108 /sizeof(asn_DEF_supportedSULBandList_tags_3[0]), /* 2 */
\r
109 { 0, &asn_PER_type_supportedSULBandList_constr_3, SEQUENCE_OF_constraint },
\r
110 asn_MBR_supportedSULBandList_3,
\r
111 1, /* Single element */
\r
112 &asn_SPC_supportedSULBandList_specs_3 /* Additional specs */
\r
115 asn_TYPE_member_t asn_MBR_FreqBandNrItem_1[] = {
\r
116 { ATF_NOFLAGS, 0, offsetof(struct FreqBandNrItem, freqBandIndicatorNr),
\r
117 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
118 -1, /* IMPLICIT tag at current level */
\r
119 &asn_DEF_NativeInteger,
\r
121 { 0, &asn_PER_memb_freqBandIndicatorNr_constr_2, memb_freqBandIndicatorNr_constraint_1 },
\r
122 0, 0, /* No default value */
\r
123 "freqBandIndicatorNr"
\r
125 { ATF_NOFLAGS, 0, offsetof(struct FreqBandNrItem, supportedSULBandList),
\r
126 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
128 &asn_DEF_supportedSULBandList_3,
\r
130 { 0, &asn_PER_memb_supportedSULBandList_constr_3, memb_supportedSULBandList_constraint_1 },
\r
131 0, 0, /* No default value */
\r
132 "supportedSULBandList"
\r
134 { ATF_POINTER, 1, offsetof(struct FreqBandNrItem, iE_Extensions),
\r
135 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
136 -1, /* IMPLICIT tag at current level */
\r
137 &asn_DEF_ProtocolExtensionContainer_8231P148,
\r
140 0, 0, /* No default value */
\r
144 static const int asn_MAP_FreqBandNrItem_oms_1[] = { 2 };
\r
145 static const ber_tlv_tag_t asn_DEF_FreqBandNrItem_tags_1[] = {
\r
146 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
148 static const asn_TYPE_tag2member_t asn_MAP_FreqBandNrItem_tag2el_1[] = {
\r
149 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNr */
\r
150 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedSULBandList */
\r
151 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
\r
153 asn_SEQUENCE_specifics_t asn_SPC_FreqBandNrItem_specs_1 = {
\r
154 sizeof(struct FreqBandNrItem),
\r
155 offsetof(struct FreqBandNrItem, _asn_ctx),
\r
156 asn_MAP_FreqBandNrItem_tag2el_1,
\r
157 3, /* Count of tags in the map */
\r
158 asn_MAP_FreqBandNrItem_oms_1, /* Optional members */
\r
159 1, 0, /* Root/Additions */
\r
160 3, /* First extension addition */
\r
162 asn_TYPE_descriptor_t asn_DEF_FreqBandNrItem = {
\r
166 asn_DEF_FreqBandNrItem_tags_1,
\r
167 sizeof(asn_DEF_FreqBandNrItem_tags_1)
\r
168 /sizeof(asn_DEF_FreqBandNrItem_tags_1[0]), /* 1 */
\r
169 asn_DEF_FreqBandNrItem_tags_1, /* Same as above */
\r
170 sizeof(asn_DEF_FreqBandNrItem_tags_1)
\r
171 /sizeof(asn_DEF_FreqBandNrItem_tags_1[0]), /* 1 */
\r
172 { 0, 0, SEQUENCE_constraint },
\r
173 asn_MBR_FreqBandNrItem_1,
\r
174 3, /* Elements count */
\r
175 &asn_SPC_FreqBandNrItem_specs_1 /* Additional specs */
\r