2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5 * `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "PUCCH-format4.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
15 * This type is implemented using NativeEnumerated,
16 * so here we adjust the DEF accordingly.
19 memb_nrofSymbols_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
20 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
24 ASN__CTFAIL(app_key, td, sptr,
25 "%s: value not given (%s:%d)",
26 td->name, __FILE__, __LINE__);
30 value = *(const long *)sptr;
32 if((value >= 4 && value <= 14)) {
33 /* Constraint check succeeded */
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: constraint failed (%s:%d)",
38 td->name, __FILE__, __LINE__);
44 memb_startingSymbolIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
45 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
49 ASN__CTFAIL(app_key, td, sptr,
50 "%s: value not given (%s:%d)",
51 td->name, __FILE__, __LINE__);
55 value = *(const long *)sptr;
57 if((value >= 0 && value <= 10)) {
58 /* Constraint check succeeded */
61 ASN__CTFAIL(app_key, td, sptr,
62 "%s: constraint failed (%s:%d)",
63 td->name, __FILE__, __LINE__);
68 static asn_oer_constraints_t asn_OER_type_occ_Length_constr_3 CC_NOTUSED = {
71 static asn_per_constraints_t asn_PER_type_occ_Length_constr_3 CC_NOTUSED = {
72 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
73 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
74 0, 0 /* No PER value map */
76 static asn_oer_constraints_t asn_OER_type_occ_Index_constr_6 CC_NOTUSED = {
79 static asn_per_constraints_t asn_PER_type_occ_Index_constr_6 CC_NOTUSED = {
80 { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
81 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
82 0, 0 /* No PER value map */
84 static asn_oer_constraints_t asn_OER_memb_nrofSymbols_constr_2 CC_NOTUSED = {
85 { 1, 1 } /* (4..14) */,
87 static asn_per_constraints_t asn_PER_memb_nrofSymbols_constr_2 CC_NOTUSED = {
88 { APC_CONSTRAINED, 4, 4, 4, 14 } /* (4..14) */,
89 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
90 0, 0 /* No PER value map */
92 static asn_oer_constraints_t asn_OER_memb_startingSymbolIndex_constr_11 CC_NOTUSED = {
93 { 1, 1 } /* (0..10) */,
95 static asn_per_constraints_t asn_PER_memb_startingSymbolIndex_constr_11 CC_NOTUSED = {
96 { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */,
97 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
98 0, 0 /* No PER value map */
100 static const asn_INTEGER_enum_map_t asn_MAP_occ_Length_value2enum_3[] = {
104 static const unsigned int asn_MAP_occ_Length_enum2value_3[] = {
108 static const asn_INTEGER_specifics_t asn_SPC_occ_Length_specs_3 = {
109 asn_MAP_occ_Length_value2enum_3, /* "tag" => N; sorted by tag */
110 asn_MAP_occ_Length_enum2value_3, /* N => "tag"; sorted by N */
111 2, /* Number of elements in the maps */
112 0, /* Enumeration is not extensible */
113 1, /* Strict enumeration */
114 0, /* Native long size */
117 static const ber_tlv_tag_t asn_DEF_occ_Length_tags_3[] = {
118 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
119 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
121 static /* Use -fall-defs-global to expose */
122 asn_TYPE_descriptor_t asn_DEF_occ_Length_3 = {
125 &asn_OP_NativeEnumerated,
126 asn_DEF_occ_Length_tags_3,
127 sizeof(asn_DEF_occ_Length_tags_3)
128 /sizeof(asn_DEF_occ_Length_tags_3[0]) - 1, /* 1 */
129 asn_DEF_occ_Length_tags_3, /* Same as above */
130 sizeof(asn_DEF_occ_Length_tags_3)
131 /sizeof(asn_DEF_occ_Length_tags_3[0]), /* 2 */
132 { &asn_OER_type_occ_Length_constr_3, &asn_PER_type_occ_Length_constr_3, NativeEnumerated_constraint },
133 0, 0, /* Defined elsewhere */
134 &asn_SPC_occ_Length_specs_3 /* Additional specs */
137 static const asn_INTEGER_enum_map_t asn_MAP_occ_Index_value2enum_6[] = {
143 static const unsigned int asn_MAP_occ_Index_enum2value_6[] = {
149 static const asn_INTEGER_specifics_t asn_SPC_occ_Index_specs_6 = {
150 asn_MAP_occ_Index_value2enum_6, /* "tag" => N; sorted by tag */
151 asn_MAP_occ_Index_enum2value_6, /* N => "tag"; sorted by N */
152 4, /* Number of elements in the maps */
153 0, /* Enumeration is not extensible */
154 1, /* Strict enumeration */
155 0, /* Native long size */
158 static const ber_tlv_tag_t asn_DEF_occ_Index_tags_6[] = {
159 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
160 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
162 static /* Use -fall-defs-global to expose */
163 asn_TYPE_descriptor_t asn_DEF_occ_Index_6 = {
166 &asn_OP_NativeEnumerated,
167 asn_DEF_occ_Index_tags_6,
168 sizeof(asn_DEF_occ_Index_tags_6)
169 /sizeof(asn_DEF_occ_Index_tags_6[0]) - 1, /* 1 */
170 asn_DEF_occ_Index_tags_6, /* Same as above */
171 sizeof(asn_DEF_occ_Index_tags_6)
172 /sizeof(asn_DEF_occ_Index_tags_6[0]), /* 2 */
173 { &asn_OER_type_occ_Index_constr_6, &asn_PER_type_occ_Index_constr_6, NativeEnumerated_constraint },
174 0, 0, /* Defined elsewhere */
175 &asn_SPC_occ_Index_specs_6 /* Additional specs */
178 asn_TYPE_member_t asn_MBR_PUCCH_format4_1[] = {
179 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_format4, nrofSymbols),
180 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
181 -1, /* IMPLICIT tag at current level */
182 &asn_DEF_NativeInteger,
184 { &asn_OER_memb_nrofSymbols_constr_2, &asn_PER_memb_nrofSymbols_constr_2, memb_nrofSymbols_constraint_1 },
185 0, 0, /* No default value */
188 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_format4, occ_Length),
189 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
190 -1, /* IMPLICIT tag at current level */
191 &asn_DEF_occ_Length_3,
194 0, 0, /* No default value */
197 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_format4, occ_Index),
198 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
199 -1, /* IMPLICIT tag at current level */
200 &asn_DEF_occ_Index_6,
203 0, 0, /* No default value */
206 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_format4, startingSymbolIndex),
207 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
208 -1, /* IMPLICIT tag at current level */
209 &asn_DEF_NativeInteger,
211 { &asn_OER_memb_startingSymbolIndex_constr_11, &asn_PER_memb_startingSymbolIndex_constr_11, memb_startingSymbolIndex_constraint_1 },
212 0, 0, /* No default value */
213 "startingSymbolIndex"
216 static const ber_tlv_tag_t asn_DEF_PUCCH_format4_tags_1[] = {
217 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
219 static const asn_TYPE_tag2member_t asn_MAP_PUCCH_format4_tag2el_1[] = {
220 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrofSymbols */
221 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* occ-Length */
222 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* occ-Index */
223 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* startingSymbolIndex */
225 asn_SEQUENCE_specifics_t asn_SPC_PUCCH_format4_specs_1 = {
226 sizeof(struct PUCCH_format4),
227 offsetof(struct PUCCH_format4, _asn_ctx),
228 asn_MAP_PUCCH_format4_tag2el_1,
229 4, /* Count of tags in the map */
230 0, 0, 0, /* Optional elements (not needed) */
231 -1, /* First extension addition */
233 asn_TYPE_descriptor_t asn_DEF_PUCCH_format4 = {
237 asn_DEF_PUCCH_format4_tags_1,
238 sizeof(asn_DEF_PUCCH_format4_tags_1)
239 /sizeof(asn_DEF_PUCCH_format4_tags_1[0]), /* 1 */
240 asn_DEF_PUCCH_format4_tags_1, /* Same as above */
241 sizeof(asn_DEF_PUCCH_format4_tags_1)
242 /sizeof(asn_DEF_PUCCH_format4_tags_1[0]), /* 1 */
243 { 0, 0, SEQUENCE_constraint },
244 asn_MBR_PUCCH_format4_1,
245 4, /* Elements count */
246 &asn_SPC_PUCCH_format4_specs_1 /* Additional specs */