2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../../mib_sib1.asn1"
5 * `asn1c -D ./mib_sib_out/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "FrequencyInfoDL-SIB.h"
10 #include "SCS-SpecificCarrier.h"
12 memb_offsetToPointA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 value = *(const long *)sptr;
25 if((value >= 0 && value <= 2199)) {
26 /* Constraint check succeeded */
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
37 memb_scs_SpecificCarrierList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
38 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
42 ASN__CTFAIL(app_key, td, sptr,
43 "%s: value not given (%s:%d)",
44 td->name, __FILE__, __LINE__);
48 /* Determine the number of elements */
49 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
51 if((size >= 1 && size <= 5)) {
52 /* Perform validation of the inner elements */
53 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
55 ASN__CTFAIL(app_key, td, sptr,
56 "%s: constraint failed (%s:%d)",
57 td->name, __FILE__, __LINE__);
62 static asn_oer_constraints_t asn_OER_type_scs_SpecificCarrierList_constr_4 CC_NOTUSED = {
64 -1 /* (SIZE(1..5)) */};
65 static asn_per_constraints_t asn_PER_type_scs_SpecificCarrierList_constr_4 CC_NOTUSED = {
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 { APC_CONSTRAINED, 3, 3, 1, 5 } /* (SIZE(1..5)) */,
68 0, 0 /* No PER value map */
70 static asn_oer_constraints_t asn_OER_memb_offsetToPointA_constr_3 CC_NOTUSED = {
71 { 2, 1 } /* (0..2199) */,
73 static asn_per_constraints_t asn_PER_memb_offsetToPointA_constr_3 CC_NOTUSED = {
74 { APC_CONSTRAINED, 12, 12, 0, 2199 } /* (0..2199) */,
75 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
76 0, 0 /* No PER value map */
78 static asn_oer_constraints_t asn_OER_memb_scs_SpecificCarrierList_constr_4 CC_NOTUSED = {
80 -1 /* (SIZE(1..5)) */};
81 static asn_per_constraints_t asn_PER_memb_scs_SpecificCarrierList_constr_4 CC_NOTUSED = {
82 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
83 { APC_CONSTRAINED, 3, 3, 1, 5 } /* (SIZE(1..5)) */,
84 0, 0 /* No PER value map */
86 static asn_TYPE_member_t asn_MBR_scs_SpecificCarrierList_4[] = {
88 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
90 &asn_DEF_SCS_SpecificCarrier,
93 0, 0, /* No default value */
97 static const ber_tlv_tag_t asn_DEF_scs_SpecificCarrierList_tags_4[] = {
98 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
99 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
101 static asn_SET_OF_specifics_t asn_SPC_scs_SpecificCarrierList_specs_4 = {
102 sizeof(struct FrequencyInfoDL_SIB__scs_SpecificCarrierList),
103 offsetof(struct FrequencyInfoDL_SIB__scs_SpecificCarrierList, _asn_ctx),
104 0, /* XER encoding is XMLDelimitedItemList */
106 static /* Use -fall-defs-global to expose */
107 asn_TYPE_descriptor_t asn_DEF_scs_SpecificCarrierList_4 = {
108 "scs-SpecificCarrierList",
109 "scs-SpecificCarrierList",
111 asn_DEF_scs_SpecificCarrierList_tags_4,
112 sizeof(asn_DEF_scs_SpecificCarrierList_tags_4)
113 /sizeof(asn_DEF_scs_SpecificCarrierList_tags_4[0]) - 1, /* 1 */
114 asn_DEF_scs_SpecificCarrierList_tags_4, /* Same as above */
115 sizeof(asn_DEF_scs_SpecificCarrierList_tags_4)
116 /sizeof(asn_DEF_scs_SpecificCarrierList_tags_4[0]), /* 2 */
117 { &asn_OER_type_scs_SpecificCarrierList_constr_4, &asn_PER_type_scs_SpecificCarrierList_constr_4, SEQUENCE_OF_constraint },
118 asn_MBR_scs_SpecificCarrierList_4,
119 1, /* Single element */
120 &asn_SPC_scs_SpecificCarrierList_specs_4 /* Additional specs */
123 asn_TYPE_member_t asn_MBR_FrequencyInfoDL_SIB_1[] = {
124 { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoDL_SIB, frequencyBandList),
125 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
126 -1, /* IMPLICIT tag at current level */
127 &asn_DEF_MultiFrequencyBandListNR_SIB,
130 0, 0, /* No default value */
133 { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoDL_SIB, offsetToPointA),
134 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
135 -1, /* IMPLICIT tag at current level */
136 &asn_DEF_NativeInteger,
138 { &asn_OER_memb_offsetToPointA_constr_3, &asn_PER_memb_offsetToPointA_constr_3, memb_offsetToPointA_constraint_1 },
139 0, 0, /* No default value */
142 { ATF_NOFLAGS, 0, offsetof(struct FrequencyInfoDL_SIB, scs_SpecificCarrierList),
143 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
145 &asn_DEF_scs_SpecificCarrierList_4,
147 { &asn_OER_memb_scs_SpecificCarrierList_constr_4, &asn_PER_memb_scs_SpecificCarrierList_constr_4, memb_scs_SpecificCarrierList_constraint_1 },
148 0, 0, /* No default value */
149 "scs-SpecificCarrierList"
152 static const ber_tlv_tag_t asn_DEF_FrequencyInfoDL_SIB_tags_1[] = {
153 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
155 static const asn_TYPE_tag2member_t asn_MAP_FrequencyInfoDL_SIB_tag2el_1[] = {
156 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyBandList */
157 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* offsetToPointA */
158 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* scs-SpecificCarrierList */
160 asn_SEQUENCE_specifics_t asn_SPC_FrequencyInfoDL_SIB_specs_1 = {
161 sizeof(struct FrequencyInfoDL_SIB),
162 offsetof(struct FrequencyInfoDL_SIB, _asn_ctx),
163 asn_MAP_FrequencyInfoDL_SIB_tag2el_1,
164 3, /* Count of tags in the map */
165 0, 0, 0, /* Optional elements (not needed) */
166 -1, /* First extension addition */
168 asn_TYPE_descriptor_t asn_DEF_FrequencyInfoDL_SIB = {
169 "FrequencyInfoDL-SIB",
170 "FrequencyInfoDL-SIB",
172 asn_DEF_FrequencyInfoDL_SIB_tags_1,
173 sizeof(asn_DEF_FrequencyInfoDL_SIB_tags_1)
174 /sizeof(asn_DEF_FrequencyInfoDL_SIB_tags_1[0]), /* 1 */
175 asn_DEF_FrequencyInfoDL_SIB_tags_1, /* Same as above */
176 sizeof(asn_DEF_FrequencyInfoDL_SIB_tags_1)
177 /sizeof(asn_DEF_FrequencyInfoDL_SIB_tags_1[0]), /* 1 */
178 { 0, 0, SEQUENCE_constraint },
179 asn_MBR_FrequencyInfoDL_SIB_1,
180 3, /* Elements count */
181 &asn_SPC_FrequencyInfoDL_SIB_specs_1 /* Additional specs */