2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../ASN1_Input/rrc_15_3_asn.asn1"
5 * `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "ConnEstFailureControl.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_connEstFailOffset_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 >= 0 && value <= 15)) {
33 /* Constraint check succeeded */
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: constraint failed (%s:%d)",
38 td->name, __FILE__, __LINE__);
43 static asn_oer_constraints_t asn_OER_type_connEstFailCount_constr_2 CC_NOTUSED = {
46 static asn_per_constraints_t asn_PER_type_connEstFailCount_constr_2 CC_NOTUSED = {
47 { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
49 0, 0 /* No PER value map */
51 static asn_oer_constraints_t asn_OER_type_connEstFailOffsetValidity_constr_7 CC_NOTUSED = {
54 static asn_per_constraints_t asn_PER_type_connEstFailOffsetValidity_constr_7 CC_NOTUSED = {
55 { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
56 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
57 0, 0 /* No PER value map */
59 static asn_oer_constraints_t asn_OER_memb_connEstFailOffset_constr_16 CC_NOTUSED = {
60 { 1, 1 } /* (0..15) */,
62 static asn_per_constraints_t asn_PER_memb_connEstFailOffset_constr_16 CC_NOTUSED = {
63 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
64 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
65 0, 0 /* No PER value map */
67 static const asn_INTEGER_enum_map_t asn_MAP_connEstFailCount_value2enum_2[] = {
73 static const unsigned int asn_MAP_connEstFailCount_enum2value_2[] = {
79 static const asn_INTEGER_specifics_t asn_SPC_connEstFailCount_specs_2 = {
80 asn_MAP_connEstFailCount_value2enum_2, /* "tag" => N; sorted by tag */
81 asn_MAP_connEstFailCount_enum2value_2, /* N => "tag"; sorted by N */
82 4, /* Number of elements in the maps */
83 0, /* Enumeration is not extensible */
84 1, /* Strict enumeration */
85 0, /* Native long size */
88 static const ber_tlv_tag_t asn_DEF_connEstFailCount_tags_2[] = {
89 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
90 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
92 static /* Use -fall-defs-global to expose */
93 asn_TYPE_descriptor_t asn_DEF_connEstFailCount_2 = {
96 &asn_OP_NativeEnumerated,
97 asn_DEF_connEstFailCount_tags_2,
98 sizeof(asn_DEF_connEstFailCount_tags_2)
99 /sizeof(asn_DEF_connEstFailCount_tags_2[0]) - 1, /* 1 */
100 asn_DEF_connEstFailCount_tags_2, /* Same as above */
101 sizeof(asn_DEF_connEstFailCount_tags_2)
102 /sizeof(asn_DEF_connEstFailCount_tags_2[0]), /* 2 */
103 { &asn_OER_type_connEstFailCount_constr_2, &asn_PER_type_connEstFailCount_constr_2, NativeEnumerated_constraint },
104 0, 0, /* Defined elsewhere */
105 &asn_SPC_connEstFailCount_specs_2 /* Additional specs */
108 static const asn_INTEGER_enum_map_t asn_MAP_connEstFailOffsetValidity_value2enum_7[] = {
118 static const unsigned int asn_MAP_connEstFailOffsetValidity_enum2value_7[] = {
128 static const asn_INTEGER_specifics_t asn_SPC_connEstFailOffsetValidity_specs_7 = {
129 asn_MAP_connEstFailOffsetValidity_value2enum_7, /* "tag" => N; sorted by tag */
130 asn_MAP_connEstFailOffsetValidity_enum2value_7, /* N => "tag"; sorted by N */
131 8, /* Number of elements in the maps */
132 0, /* Enumeration is not extensible */
133 1, /* Strict enumeration */
134 0, /* Native long size */
137 static const ber_tlv_tag_t asn_DEF_connEstFailOffsetValidity_tags_7[] = {
138 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
139 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
141 static /* Use -fall-defs-global to expose */
142 asn_TYPE_descriptor_t asn_DEF_connEstFailOffsetValidity_7 = {
143 "connEstFailOffsetValidity",
144 "connEstFailOffsetValidity",
145 &asn_OP_NativeEnumerated,
146 asn_DEF_connEstFailOffsetValidity_tags_7,
147 sizeof(asn_DEF_connEstFailOffsetValidity_tags_7)
148 /sizeof(asn_DEF_connEstFailOffsetValidity_tags_7[0]) - 1, /* 1 */
149 asn_DEF_connEstFailOffsetValidity_tags_7, /* Same as above */
150 sizeof(asn_DEF_connEstFailOffsetValidity_tags_7)
151 /sizeof(asn_DEF_connEstFailOffsetValidity_tags_7[0]), /* 2 */
152 { &asn_OER_type_connEstFailOffsetValidity_constr_7, &asn_PER_type_connEstFailOffsetValidity_constr_7, NativeEnumerated_constraint },
153 0, 0, /* Defined elsewhere */
154 &asn_SPC_connEstFailOffsetValidity_specs_7 /* Additional specs */
157 asn_TYPE_member_t asn_MBR_ConnEstFailureControl_1[] = {
158 { ATF_NOFLAGS, 0, offsetof(struct ConnEstFailureControl, connEstFailCount),
159 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
160 -1, /* IMPLICIT tag at current level */
161 &asn_DEF_connEstFailCount_2,
164 0, 0, /* No default value */
167 { ATF_NOFLAGS, 0, offsetof(struct ConnEstFailureControl, connEstFailOffsetValidity),
168 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
169 -1, /* IMPLICIT tag at current level */
170 &asn_DEF_connEstFailOffsetValidity_7,
173 0, 0, /* No default value */
174 "connEstFailOffsetValidity"
176 { ATF_POINTER, 1, offsetof(struct ConnEstFailureControl, connEstFailOffset),
177 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
178 -1, /* IMPLICIT tag at current level */
179 &asn_DEF_NativeInteger,
181 { &asn_OER_memb_connEstFailOffset_constr_16, &asn_PER_memb_connEstFailOffset_constr_16, memb_connEstFailOffset_constraint_1 },
182 0, 0, /* No default value */
186 static const int asn_MAP_ConnEstFailureControl_oms_1[] = { 2 };
187 static const ber_tlv_tag_t asn_DEF_ConnEstFailureControl_tags_1[] = {
188 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
190 static const asn_TYPE_tag2member_t asn_MAP_ConnEstFailureControl_tag2el_1[] = {
191 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* connEstFailCount */
192 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* connEstFailOffsetValidity */
193 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* connEstFailOffset */
195 asn_SEQUENCE_specifics_t asn_SPC_ConnEstFailureControl_specs_1 = {
196 sizeof(struct ConnEstFailureControl),
197 offsetof(struct ConnEstFailureControl, _asn_ctx),
198 asn_MAP_ConnEstFailureControl_tag2el_1,
199 3, /* Count of tags in the map */
200 asn_MAP_ConnEstFailureControl_oms_1, /* Optional members */
201 1, 0, /* Root/Additions */
202 -1, /* First extension addition */
204 asn_TYPE_descriptor_t asn_DEF_ConnEstFailureControl = {
205 "ConnEstFailureControl",
206 "ConnEstFailureControl",
208 asn_DEF_ConnEstFailureControl_tags_1,
209 sizeof(asn_DEF_ConnEstFailureControl_tags_1)
210 /sizeof(asn_DEF_ConnEstFailureControl_tags_1[0]), /* 1 */
211 asn_DEF_ConnEstFailureControl_tags_1, /* Same as above */
212 sizeof(asn_DEF_ConnEstFailureControl_tags_1)
213 /sizeof(asn_DEF_ConnEstFailureControl_tags_1[0]), /* 1 */
214 { 0, 0, SEQUENCE_constraint },
215 asn_MBR_ConnEstFailureControl_1,
216 3, /* Elements count */
217 &asn_SPC_ConnEstFailureControl_specs_1 /* Additional specs */