Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "X2AP-IEs" |
kalnagy | 1455c85 | 2019-10-21 13:06:23 +0200 | [diff] [blame] | 4 | * found in "X2AP-15-4-0.asn1" |
| 5 | * `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example` |
Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include "EN-DC-ResourceConfiguration.h" |
| 9 | |
| 10 | #include "ProtocolExtensionContainer.h" |
| 11 | /* |
| 12 | * This type is implemented using NativeEnumerated, |
| 13 | * so here we adjust the DEF accordingly. |
| 14 | */ |
| 15 | /* |
| 16 | * This type is implemented using NativeEnumerated, |
| 17 | * so here we adjust the DEF accordingly. |
| 18 | */ |
| 19 | /* |
| 20 | * This type is implemented using NativeEnumerated, |
| 21 | * so here we adjust the DEF accordingly. |
| 22 | */ |
| 23 | static asn_oer_constraints_t asn_OER_type_pDCPatSgNB_constr_2 CC_NOTUSED = { |
| 24 | { 0, 0 }, |
| 25 | -1}; |
| 26 | static asn_per_constraints_t asn_PER_type_pDCPatSgNB_constr_2 CC_NOTUSED = { |
| 27 | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
| 28 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 29 | 0, 0 /* No PER value map */ |
| 30 | }; |
| 31 | static asn_oer_constraints_t asn_OER_type_mCGresources_constr_6 CC_NOTUSED = { |
| 32 | { 0, 0 }, |
| 33 | -1}; |
| 34 | static asn_per_constraints_t asn_PER_type_mCGresources_constr_6 CC_NOTUSED = { |
| 35 | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
| 36 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 37 | 0, 0 /* No PER value map */ |
| 38 | }; |
| 39 | static asn_oer_constraints_t asn_OER_type_sCGresources_constr_10 CC_NOTUSED = { |
| 40 | { 0, 0 }, |
| 41 | -1}; |
| 42 | static asn_per_constraints_t asn_PER_type_sCGresources_constr_10 CC_NOTUSED = { |
| 43 | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
| 44 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 45 | 0, 0 /* No PER value map */ |
| 46 | }; |
| 47 | static const asn_INTEGER_enum_map_t asn_MAP_pDCPatSgNB_value2enum_2[] = { |
| 48 | { 0, 7, "present" }, |
| 49 | { 1, 11, "not-present" } |
| 50 | /* This list is extensible */ |
| 51 | }; |
| 52 | static const unsigned int asn_MAP_pDCPatSgNB_enum2value_2[] = { |
| 53 | 1, /* not-present(1) */ |
| 54 | 0 /* present(0) */ |
| 55 | /* This list is extensible */ |
| 56 | }; |
| 57 | static const asn_INTEGER_specifics_t asn_SPC_pDCPatSgNB_specs_2 = { |
| 58 | asn_MAP_pDCPatSgNB_value2enum_2, /* "tag" => N; sorted by tag */ |
| 59 | asn_MAP_pDCPatSgNB_enum2value_2, /* N => "tag"; sorted by N */ |
| 60 | 2, /* Number of elements in the maps */ |
| 61 | 3, /* Extensions before this member */ |
| 62 | 1, /* Strict enumeration */ |
| 63 | 0, /* Native long size */ |
| 64 | 0 |
| 65 | }; |
| 66 | static const ber_tlv_tag_t asn_DEF_pDCPatSgNB_tags_2[] = { |
| 67 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 68 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 69 | }; |
| 70 | static /* Use -fall-defs-global to expose */ |
| 71 | asn_TYPE_descriptor_t asn_DEF_pDCPatSgNB_2 = { |
| 72 | "pDCPatSgNB", |
| 73 | "pDCPatSgNB", |
| 74 | &asn_OP_NativeEnumerated, |
| 75 | asn_DEF_pDCPatSgNB_tags_2, |
| 76 | sizeof(asn_DEF_pDCPatSgNB_tags_2) |
| 77 | /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]) - 1, /* 1 */ |
| 78 | asn_DEF_pDCPatSgNB_tags_2, /* Same as above */ |
| 79 | sizeof(asn_DEF_pDCPatSgNB_tags_2) |
| 80 | /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]), /* 2 */ |
| 81 | { &asn_OER_type_pDCPatSgNB_constr_2, &asn_PER_type_pDCPatSgNB_constr_2, NativeEnumerated_constraint }, |
| 82 | 0, 0, /* Defined elsewhere */ |
| 83 | &asn_SPC_pDCPatSgNB_specs_2 /* Additional specs */ |
| 84 | }; |
| 85 | |
| 86 | static const asn_INTEGER_enum_map_t asn_MAP_mCGresources_value2enum_6[] = { |
| 87 | { 0, 7, "present" }, |
| 88 | { 1, 11, "not-present" } |
| 89 | /* This list is extensible */ |
| 90 | }; |
| 91 | static const unsigned int asn_MAP_mCGresources_enum2value_6[] = { |
| 92 | 1, /* not-present(1) */ |
| 93 | 0 /* present(0) */ |
| 94 | /* This list is extensible */ |
| 95 | }; |
| 96 | static const asn_INTEGER_specifics_t asn_SPC_mCGresources_specs_6 = { |
| 97 | asn_MAP_mCGresources_value2enum_6, /* "tag" => N; sorted by tag */ |
| 98 | asn_MAP_mCGresources_enum2value_6, /* N => "tag"; sorted by N */ |
| 99 | 2, /* Number of elements in the maps */ |
| 100 | 3, /* Extensions before this member */ |
| 101 | 1, /* Strict enumeration */ |
| 102 | 0, /* Native long size */ |
| 103 | 0 |
| 104 | }; |
| 105 | static const ber_tlv_tag_t asn_DEF_mCGresources_tags_6[] = { |
| 106 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 107 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 108 | }; |
| 109 | static /* Use -fall-defs-global to expose */ |
| 110 | asn_TYPE_descriptor_t asn_DEF_mCGresources_6 = { |
| 111 | "mCGresources", |
| 112 | "mCGresources", |
| 113 | &asn_OP_NativeEnumerated, |
| 114 | asn_DEF_mCGresources_tags_6, |
| 115 | sizeof(asn_DEF_mCGresources_tags_6) |
| 116 | /sizeof(asn_DEF_mCGresources_tags_6[0]) - 1, /* 1 */ |
| 117 | asn_DEF_mCGresources_tags_6, /* Same as above */ |
| 118 | sizeof(asn_DEF_mCGresources_tags_6) |
| 119 | /sizeof(asn_DEF_mCGresources_tags_6[0]), /* 2 */ |
| 120 | { &asn_OER_type_mCGresources_constr_6, &asn_PER_type_mCGresources_constr_6, NativeEnumerated_constraint }, |
| 121 | 0, 0, /* Defined elsewhere */ |
| 122 | &asn_SPC_mCGresources_specs_6 /* Additional specs */ |
| 123 | }; |
| 124 | |
| 125 | static const asn_INTEGER_enum_map_t asn_MAP_sCGresources_value2enum_10[] = { |
| 126 | { 0, 7, "present" }, |
| 127 | { 1, 11, "not-present" } |
| 128 | /* This list is extensible */ |
| 129 | }; |
| 130 | static const unsigned int asn_MAP_sCGresources_enum2value_10[] = { |
| 131 | 1, /* not-present(1) */ |
| 132 | 0 /* present(0) */ |
| 133 | /* This list is extensible */ |
| 134 | }; |
| 135 | static const asn_INTEGER_specifics_t asn_SPC_sCGresources_specs_10 = { |
| 136 | asn_MAP_sCGresources_value2enum_10, /* "tag" => N; sorted by tag */ |
| 137 | asn_MAP_sCGresources_enum2value_10, /* N => "tag"; sorted by N */ |
| 138 | 2, /* Number of elements in the maps */ |
| 139 | 3, /* Extensions before this member */ |
| 140 | 1, /* Strict enumeration */ |
| 141 | 0, /* Native long size */ |
| 142 | 0 |
| 143 | }; |
| 144 | static const ber_tlv_tag_t asn_DEF_sCGresources_tags_10[] = { |
| 145 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 146 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 147 | }; |
| 148 | static /* Use -fall-defs-global to expose */ |
| 149 | asn_TYPE_descriptor_t asn_DEF_sCGresources_10 = { |
| 150 | "sCGresources", |
| 151 | "sCGresources", |
| 152 | &asn_OP_NativeEnumerated, |
| 153 | asn_DEF_sCGresources_tags_10, |
| 154 | sizeof(asn_DEF_sCGresources_tags_10) |
| 155 | /sizeof(asn_DEF_sCGresources_tags_10[0]) - 1, /* 1 */ |
| 156 | asn_DEF_sCGresources_tags_10, /* Same as above */ |
| 157 | sizeof(asn_DEF_sCGresources_tags_10) |
| 158 | /sizeof(asn_DEF_sCGresources_tags_10[0]), /* 2 */ |
| 159 | { &asn_OER_type_sCGresources_constr_10, &asn_PER_type_sCGresources_constr_10, NativeEnumerated_constraint }, |
| 160 | 0, 0, /* Defined elsewhere */ |
| 161 | &asn_SPC_sCGresources_specs_10 /* Additional specs */ |
| 162 | }; |
| 163 | |
| 164 | asn_TYPE_member_t asn_MBR_EN_DC_ResourceConfiguration_1[] = { |
| 165 | { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, pDCPatSgNB), |
| 166 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 167 | -1, /* IMPLICIT tag at current level */ |
| 168 | &asn_DEF_pDCPatSgNB_2, |
| 169 | 0, |
| 170 | { 0, 0, 0 }, |
| 171 | 0, 0, /* No default value */ |
| 172 | "pDCPatSgNB" |
| 173 | }, |
| 174 | { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, mCGresources), |
| 175 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 176 | -1, /* IMPLICIT tag at current level */ |
| 177 | &asn_DEF_mCGresources_6, |
| 178 | 0, |
| 179 | { 0, 0, 0 }, |
| 180 | 0, 0, /* No default value */ |
| 181 | "mCGresources" |
| 182 | }, |
| 183 | { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, sCGresources), |
| 184 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 185 | -1, /* IMPLICIT tag at current level */ |
| 186 | &asn_DEF_sCGresources_10, |
| 187 | 0, |
| 188 | { 0, 0, 0 }, |
| 189 | 0, 0, /* No default value */ |
| 190 | "sCGresources" |
| 191 | }, |
| 192 | { ATF_POINTER, 1, offsetof(struct EN_DC_ResourceConfiguration, iE_Extensions), |
| 193 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 194 | -1, /* IMPLICIT tag at current level */ |
kalnagy | 1455c85 | 2019-10-21 13:06:23 +0200 | [diff] [blame] | 195 | &asn_DEF_ProtocolExtensionContainer_7683P137, |
Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 196 | 0, |
| 197 | { 0, 0, 0 }, |
| 198 | 0, 0, /* No default value */ |
| 199 | "iE-Extensions" |
| 200 | }, |
| 201 | }; |
| 202 | static const int asn_MAP_EN_DC_ResourceConfiguration_oms_1[] = { 3 }; |
| 203 | static const ber_tlv_tag_t asn_DEF_EN_DC_ResourceConfiguration_tags_1[] = { |
| 204 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 205 | }; |
| 206 | static const asn_TYPE_tag2member_t asn_MAP_EN_DC_ResourceConfiguration_tag2el_1[] = { |
| 207 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCPatSgNB */ |
| 208 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mCGresources */ |
| 209 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sCGresources */ |
| 210 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ |
| 211 | }; |
| 212 | asn_SEQUENCE_specifics_t asn_SPC_EN_DC_ResourceConfiguration_specs_1 = { |
| 213 | sizeof(struct EN_DC_ResourceConfiguration), |
| 214 | offsetof(struct EN_DC_ResourceConfiguration, _asn_ctx), |
| 215 | asn_MAP_EN_DC_ResourceConfiguration_tag2el_1, |
| 216 | 4, /* Count of tags in the map */ |
| 217 | asn_MAP_EN_DC_ResourceConfiguration_oms_1, /* Optional members */ |
| 218 | 1, 0, /* Root/Additions */ |
| 219 | 4, /* First extension addition */ |
| 220 | }; |
| 221 | asn_TYPE_descriptor_t asn_DEF_EN_DC_ResourceConfiguration = { |
| 222 | "EN-DC-ResourceConfiguration", |
| 223 | "EN-DC-ResourceConfiguration", |
| 224 | &asn_OP_SEQUENCE, |
| 225 | asn_DEF_EN_DC_ResourceConfiguration_tags_1, |
| 226 | sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1) |
| 227 | /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */ |
| 228 | asn_DEF_EN_DC_ResourceConfiguration_tags_1, /* Same as above */ |
| 229 | sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1) |
| 230 | /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */ |
| 231 | { 0, 0, SEQUENCE_constraint }, |
| 232 | asn_MBR_EN_DC_ResourceConfiguration_1, |
| 233 | 4, /* Elements count */ |
| 234 | &asn_SPC_EN_DC_ResourceConfiguration_specs_1 /* Additional specs */ |
| 235 | }; |
| 236 | |