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 "NAICS-Capability-Entry.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
15 memb_numberOfNAICS_CapableCC_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
16 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
20 ASN__CTFAIL(app_key, td, sptr,
21 "%s: value not given (%s:%d)",
22 td->name, __FILE__, __LINE__);
26 value = *(const long *)sptr;
28 if((value >= 1 && value <= 5)) {
29 /* Constraint check succeeded */
32 ASN__CTFAIL(app_key, td, sptr,
33 "%s: constraint failed (%s:%d)",
34 td->name, __FILE__, __LINE__);
39 static asn_oer_constraints_t asn_OER_type_numberOfAggregatedPRB_constr_3 CC_NOTUSED = {
42 static asn_per_constraints_t asn_PER_type_numberOfAggregatedPRB_constr_3 CC_NOTUSED = {
43 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
44 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
45 0, 0 /* No PER value map */
47 static asn_oer_constraints_t asn_OER_memb_numberOfNAICS_CapableCC_constr_2 CC_NOTUSED = {
48 { 1, 1 } /* (1..5) */,
50 static asn_per_constraints_t asn_PER_memb_numberOfNAICS_CapableCC_constr_2 CC_NOTUSED = {
51 { APC_CONSTRAINED, 3, 3, 1, 5 } /* (1..5) */,
52 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
53 0, 0 /* No PER value map */
55 static const asn_INTEGER_enum_map_t asn_MAP_numberOfAggregatedPRB_value2enum_3[] = {
73 static const unsigned int asn_MAP_numberOfAggregatedPRB_enum2value_3[] = {
91 static const asn_INTEGER_specifics_t asn_SPC_numberOfAggregatedPRB_specs_3 = {
92 asn_MAP_numberOfAggregatedPRB_value2enum_3, /* "tag" => N; sorted by tag */
93 asn_MAP_numberOfAggregatedPRB_enum2value_3, /* N => "tag"; sorted by N */
94 16, /* Number of elements in the maps */
95 0, /* Enumeration is not extensible */
96 1, /* Strict enumeration */
97 0, /* Native long size */
100 static const ber_tlv_tag_t asn_DEF_numberOfAggregatedPRB_tags_3[] = {
101 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
102 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
104 static /* Use -fall-defs-global to expose */
105 asn_TYPE_descriptor_t asn_DEF_numberOfAggregatedPRB_3 = {
106 "numberOfAggregatedPRB",
107 "numberOfAggregatedPRB",
108 &asn_OP_NativeEnumerated,
109 asn_DEF_numberOfAggregatedPRB_tags_3,
110 sizeof(asn_DEF_numberOfAggregatedPRB_tags_3)
111 /sizeof(asn_DEF_numberOfAggregatedPRB_tags_3[0]) - 1, /* 1 */
112 asn_DEF_numberOfAggregatedPRB_tags_3, /* Same as above */
113 sizeof(asn_DEF_numberOfAggregatedPRB_tags_3)
114 /sizeof(asn_DEF_numberOfAggregatedPRB_tags_3[0]), /* 2 */
115 { &asn_OER_type_numberOfAggregatedPRB_constr_3, &asn_PER_type_numberOfAggregatedPRB_constr_3, NativeEnumerated_constraint },
116 0, 0, /* Defined elsewhere */
117 &asn_SPC_numberOfAggregatedPRB_specs_3 /* Additional specs */
120 asn_TYPE_member_t asn_MBR_NAICS_Capability_Entry_1[] = {
121 { ATF_NOFLAGS, 0, offsetof(struct NAICS_Capability_Entry, numberOfNAICS_CapableCC),
122 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
123 -1, /* IMPLICIT tag at current level */
124 &asn_DEF_NativeInteger,
126 { &asn_OER_memb_numberOfNAICS_CapableCC_constr_2, &asn_PER_memb_numberOfNAICS_CapableCC_constr_2, memb_numberOfNAICS_CapableCC_constraint_1 },
127 0, 0, /* No default value */
128 "numberOfNAICS-CapableCC"
130 { ATF_NOFLAGS, 0, offsetof(struct NAICS_Capability_Entry, numberOfAggregatedPRB),
131 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
132 -1, /* IMPLICIT tag at current level */
133 &asn_DEF_numberOfAggregatedPRB_3,
136 0, 0, /* No default value */
137 "numberOfAggregatedPRB"
140 static const ber_tlv_tag_t asn_DEF_NAICS_Capability_Entry_tags_1[] = {
141 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
143 static const asn_TYPE_tag2member_t asn_MAP_NAICS_Capability_Entry_tag2el_1[] = {
144 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numberOfNAICS-CapableCC */
145 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* numberOfAggregatedPRB */
147 asn_SEQUENCE_specifics_t asn_SPC_NAICS_Capability_Entry_specs_1 = {
148 sizeof(struct NAICS_Capability_Entry),
149 offsetof(struct NAICS_Capability_Entry, _asn_ctx),
150 asn_MAP_NAICS_Capability_Entry_tag2el_1,
151 2, /* Count of tags in the map */
152 0, 0, 0, /* Optional elements (not needed) */
153 2, /* First extension addition */
155 asn_TYPE_descriptor_t asn_DEF_NAICS_Capability_Entry = {
156 "NAICS-Capability-Entry",
157 "NAICS-Capability-Entry",
159 asn_DEF_NAICS_Capability_Entry_tags_1,
160 sizeof(asn_DEF_NAICS_Capability_Entry_tags_1)
161 /sizeof(asn_DEF_NAICS_Capability_Entry_tags_1[0]), /* 1 */
162 asn_DEF_NAICS_Capability_Entry_tags_1, /* Same as above */
163 sizeof(asn_DEF_NAICS_Capability_Entry_tags_1)
164 /sizeof(asn_DEF_NAICS_Capability_Entry_tags_1[0]), /* 1 */
165 { 0, 0, SEQUENCE_constraint },
166 asn_MBR_NAICS_Capability_Entry_1,
167 2, /* Elements count */
168 &asn_SPC_NAICS_Capability_Entry_specs_1 /* Additional specs */