2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "F1AP-IEs"
4 * found in "../F1.asn1"
5 * `asn1c -D ../F1_output/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "NRFreqInfo.h"
10 #include "SUL-Information.h"
11 #include "ProtocolExtensionContainer.h"
12 #include "FreqBandNrItem.h"
14 memb_nRARFCN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
15 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
19 ASN__CTFAIL(app_key, td, sptr,
20 "%s: value not given (%s:%d)",
21 td->name, __FILE__, __LINE__);
25 value = *(const long *)sptr;
27 if((value >= 0 && value <= 3279165)) {
28 /* Constraint check succeeded */
31 ASN__CTFAIL(app_key, td, sptr,
32 "%s: constraint failed (%s:%d)",
33 td->name, __FILE__, __LINE__);
39 memb_freqBandListNr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
40 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44 ASN__CTFAIL(app_key, td, sptr,
45 "%s: value not given (%s:%d)",
46 td->name, __FILE__, __LINE__);
50 /* Determine the number of elements */
51 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
53 if((size >= 1 && size <= 32)) {
54 /* Perform validation of the inner elements */
55 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
57 ASN__CTFAIL(app_key, td, sptr,
58 "%s: constraint failed (%s:%d)",
59 td->name, __FILE__, __LINE__);
64 static asn_oer_constraints_t asn_OER_type_freqBandListNr_constr_4 CC_NOTUSED = {
66 -1 /* (SIZE(1..32)) */};
67 static asn_per_constraints_t asn_PER_type_freqBandListNr_constr_4 CC_NOTUSED = {
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69 { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
70 0, 0 /* No PER value map */
72 static asn_oer_constraints_t asn_OER_memb_nRARFCN_constr_2 CC_NOTUSED = {
73 { 4, 1 } /* (0..3279165) */,
75 static asn_per_constraints_t asn_PER_memb_nRARFCN_constr_2 CC_NOTUSED = {
76 { APC_CONSTRAINED, 22, -1, 0, 3279165 } /* (0..3279165) */,
77 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
78 0, 0 /* No PER value map */
80 static asn_oer_constraints_t asn_OER_memb_freqBandListNr_constr_4 CC_NOTUSED = {
82 -1 /* (SIZE(1..32)) */};
83 static asn_per_constraints_t asn_PER_memb_freqBandListNr_constr_4 CC_NOTUSED = {
84 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
85 { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
86 0, 0 /* No PER value map */
88 static asn_TYPE_member_t asn_MBR_freqBandListNr_4[] = {
90 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
92 &asn_DEF_FreqBandNrItem,
95 0, 0, /* No default value */
99 static const ber_tlv_tag_t asn_DEF_freqBandListNr_tags_4[] = {
100 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
101 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
103 static asn_SET_OF_specifics_t asn_SPC_freqBandListNr_specs_4 = {
104 sizeof(struct NRFreqInfo__freqBandListNr),
105 offsetof(struct NRFreqInfo__freqBandListNr, _asn_ctx),
106 0, /* XER encoding is XMLDelimitedItemList */
108 static /* Use -fall-defs-global to expose */
109 asn_TYPE_descriptor_t asn_DEF_freqBandListNr_4 = {
113 asn_DEF_freqBandListNr_tags_4,
114 sizeof(asn_DEF_freqBandListNr_tags_4)
115 /sizeof(asn_DEF_freqBandListNr_tags_4[0]) - 1, /* 1 */
116 asn_DEF_freqBandListNr_tags_4, /* Same as above */
117 sizeof(asn_DEF_freqBandListNr_tags_4)
118 /sizeof(asn_DEF_freqBandListNr_tags_4[0]), /* 2 */
119 { &asn_OER_type_freqBandListNr_constr_4, &asn_PER_type_freqBandListNr_constr_4, SEQUENCE_OF_constraint },
120 asn_MBR_freqBandListNr_4,
121 1, /* Single element */
122 &asn_SPC_freqBandListNr_specs_4 /* Additional specs */
125 asn_TYPE_member_t asn_MBR_NRFreqInfo_1[] = {
126 { ATF_NOFLAGS, 0, offsetof(struct NRFreqInfo, nRARFCN),
127 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
128 -1, /* IMPLICIT tag at current level */
129 &asn_DEF_NativeInteger,
131 { &asn_OER_memb_nRARFCN_constr_2, &asn_PER_memb_nRARFCN_constr_2, memb_nRARFCN_constraint_1 },
132 0, 0, /* No default value */
135 { ATF_POINTER, 1, offsetof(struct NRFreqInfo, sul_Information),
136 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
137 -1, /* IMPLICIT tag at current level */
138 &asn_DEF_SUL_Information,
141 0, 0, /* No default value */
144 { ATF_NOFLAGS, 0, offsetof(struct NRFreqInfo, freqBandListNr),
145 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
147 &asn_DEF_freqBandListNr_4,
149 { &asn_OER_memb_freqBandListNr_constr_4, &asn_PER_memb_freqBandListNr_constr_4, memb_freqBandListNr_constraint_1 },
150 0, 0, /* No default value */
153 { ATF_POINTER, 1, offsetof(struct NRFreqInfo, iE_Extensions),
154 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
155 -1, /* IMPLICIT tag at current level */
156 &asn_DEF_ProtocolExtensionContainer_4624P66,
159 0, 0, /* No default value */
163 static const int asn_MAP_NRFreqInfo_oms_1[] = { 1, 3 };
164 static const ber_tlv_tag_t asn_DEF_NRFreqInfo_tags_1[] = {
165 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
167 static const asn_TYPE_tag2member_t asn_MAP_NRFreqInfo_tag2el_1[] = {
168 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nRARFCN */
169 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sul-Information */
170 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* freqBandListNr */
171 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
173 asn_SEQUENCE_specifics_t asn_SPC_NRFreqInfo_specs_1 = {
174 sizeof(struct NRFreqInfo),
175 offsetof(struct NRFreqInfo, _asn_ctx),
176 asn_MAP_NRFreqInfo_tag2el_1,
177 4, /* Count of tags in the map */
178 asn_MAP_NRFreqInfo_oms_1, /* Optional members */
179 2, 0, /* Root/Additions */
180 4, /* First extension addition */
182 asn_TYPE_descriptor_t asn_DEF_NRFreqInfo = {
186 asn_DEF_NRFreqInfo_tags_1,
187 sizeof(asn_DEF_NRFreqInfo_tags_1)
188 /sizeof(asn_DEF_NRFreqInfo_tags_1[0]), /* 1 */
189 asn_DEF_NRFreqInfo_tags_1, /* Same as above */
190 sizeof(asn_DEF_NRFreqInfo_tags_1)
191 /sizeof(asn_DEF_NRFreqInfo_tags_1[0]), /* 1 */
192 { 0, 0, SEQUENCE_constraint },
193 asn_MBR_NRFreqInfo_1,
194 4, /* Elements count */
195 &asn_SPC_NRFreqInfo_specs_1 /* Additional specs */