rajalakshmisv | 960885a | 2022-05-31 14:59:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "E2SM-RC-IEs" |
| 4 | * found in "e2sm-rc-nov2021.asn" |
| 5 | * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .` |
| 6 | */ |
| 7 | |
| 8 | #include "RANParameter-TestingCondition.h" |
| 9 | |
| 10 | /* |
| 11 | * This type is implemented using NativeEnumerated, |
| 12 | * so here we adjust the DEF accordingly. |
| 13 | */ |
| 14 | /* |
| 15 | * This type is implemented using NativeEnumerated, |
| 16 | * so here we adjust the DEF accordingly. |
| 17 | */ |
| 18 | static asn_oer_constraints_t asn_OER_type_ranP_Choice_comparison_constr_2 CC_NOTUSED = { |
| 19 | { 0, 0 }, |
| 20 | -1}; |
| 21 | static asn_per_constraints_t asn_PER_type_ranP_Choice_comparison_constr_2 CC_NOTUSED = { |
| 22 | { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */, |
| 23 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 24 | 0, 0 /* No PER value map */ |
| 25 | }; |
| 26 | static asn_oer_constraints_t asn_OER_type_ranP_Choice_presence_constr_10 CC_NOTUSED = { |
| 27 | { 0, 0 }, |
| 28 | -1}; |
| 29 | static asn_per_constraints_t asn_PER_type_ranP_Choice_presence_constr_10 CC_NOTUSED = { |
| 30 | { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, |
| 31 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 32 | 0, 0 /* No PER value map */ |
| 33 | }; |
| 34 | static asn_oer_constraints_t asn_OER_type_RANParameter_TestingCondition_constr_1 CC_NOTUSED = { |
| 35 | { 0, 0 }, |
| 36 | -1}; |
| 37 | asn_per_constraints_t asn_PER_type_RANParameter_TestingCondition_constr_1 CC_NOTUSED = { |
| 38 | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
| 39 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 40 | 0, 0 /* No PER value map */ |
| 41 | }; |
| 42 | static const asn_INTEGER_enum_map_t asn_MAP_ranP_Choice_comparison_value2enum_2[] = { |
| 43 | { 0, 5, "equal" }, |
| 44 | { 1, 10, "difference" }, |
| 45 | { 2, 11, "greaterthan" }, |
| 46 | { 3, 8, "lessthan" }, |
| 47 | { 4, 8, "contains" }, |
| 48 | { 5, 11, "starts-with" } |
| 49 | /* This list is extensible */ |
| 50 | }; |
| 51 | static const unsigned int asn_MAP_ranP_Choice_comparison_enum2value_2[] = { |
| 52 | 4, /* contains(4) */ |
| 53 | 1, /* difference(1) */ |
| 54 | 0, /* equal(0) */ |
| 55 | 2, /* greaterthan(2) */ |
| 56 | 3, /* lessthan(3) */ |
| 57 | 5 /* starts-with(5) */ |
| 58 | /* This list is extensible */ |
| 59 | }; |
| 60 | static const asn_INTEGER_specifics_t asn_SPC_ranP_Choice_comparison_specs_2 = { |
| 61 | asn_MAP_ranP_Choice_comparison_value2enum_2, /* "tag" => N; sorted by tag */ |
| 62 | asn_MAP_ranP_Choice_comparison_enum2value_2, /* N => "tag"; sorted by N */ |
| 63 | 6, /* Number of elements in the maps */ |
| 64 | 7, /* Extensions before this member */ |
| 65 | 1, /* Strict enumeration */ |
| 66 | 0, /* Native long size */ |
| 67 | 0 |
| 68 | }; |
| 69 | static const ber_tlv_tag_t asn_DEF_ranP_Choice_comparison_tags_2[] = { |
| 70 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 71 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 72 | }; |
| 73 | static /* Use -fall-defs-global to expose */ |
| 74 | asn_TYPE_descriptor_t asn_DEF_ranP_Choice_comparison_2 = { |
| 75 | "ranP-Choice-comparison", |
| 76 | "ranP-Choice-comparison", |
| 77 | &asn_OP_NativeEnumerated, |
| 78 | asn_DEF_ranP_Choice_comparison_tags_2, |
| 79 | sizeof(asn_DEF_ranP_Choice_comparison_tags_2) |
| 80 | /sizeof(asn_DEF_ranP_Choice_comparison_tags_2[0]) - 1, /* 1 */ |
| 81 | asn_DEF_ranP_Choice_comparison_tags_2, /* Same as above */ |
| 82 | sizeof(asn_DEF_ranP_Choice_comparison_tags_2) |
| 83 | /sizeof(asn_DEF_ranP_Choice_comparison_tags_2[0]), /* 2 */ |
| 84 | { &asn_OER_type_ranP_Choice_comparison_constr_2, &asn_PER_type_ranP_Choice_comparison_constr_2, NativeEnumerated_constraint }, |
| 85 | 0, 0, /* Defined elsewhere */ |
| 86 | &asn_SPC_ranP_Choice_comparison_specs_2 /* Additional specs */ |
| 87 | }; |
| 88 | |
| 89 | static const asn_INTEGER_enum_map_t asn_MAP_ranP_Choice_presence_value2enum_10[] = { |
| 90 | { 0, 7, "present" }, |
| 91 | { 1, 10, "configured" }, |
| 92 | { 2, 8, "rollover" }, |
| 93 | { 3, 8, "non-zero" } |
| 94 | /* This list is extensible */ |
| 95 | }; |
| 96 | static const unsigned int asn_MAP_ranP_Choice_presence_enum2value_10[] = { |
| 97 | 1, /* configured(1) */ |
| 98 | 3, /* non-zero(3) */ |
| 99 | 0, /* present(0) */ |
| 100 | 2 /* rollover(2) */ |
| 101 | /* This list is extensible */ |
| 102 | }; |
| 103 | static const asn_INTEGER_specifics_t asn_SPC_ranP_Choice_presence_specs_10 = { |
| 104 | asn_MAP_ranP_Choice_presence_value2enum_10, /* "tag" => N; sorted by tag */ |
| 105 | asn_MAP_ranP_Choice_presence_enum2value_10, /* N => "tag"; sorted by N */ |
| 106 | 4, /* Number of elements in the maps */ |
| 107 | 5, /* Extensions before this member */ |
| 108 | 1, /* Strict enumeration */ |
| 109 | 0, /* Native long size */ |
| 110 | 0 |
| 111 | }; |
| 112 | static const ber_tlv_tag_t asn_DEF_ranP_Choice_presence_tags_10[] = { |
| 113 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 114 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 115 | }; |
| 116 | static /* Use -fall-defs-global to expose */ |
| 117 | asn_TYPE_descriptor_t asn_DEF_ranP_Choice_presence_10 = { |
| 118 | "ranP-Choice-presence", |
| 119 | "ranP-Choice-presence", |
| 120 | &asn_OP_NativeEnumerated, |
| 121 | asn_DEF_ranP_Choice_presence_tags_10, |
| 122 | sizeof(asn_DEF_ranP_Choice_presence_tags_10) |
| 123 | /sizeof(asn_DEF_ranP_Choice_presence_tags_10[0]) - 1, /* 1 */ |
| 124 | asn_DEF_ranP_Choice_presence_tags_10, /* Same as above */ |
| 125 | sizeof(asn_DEF_ranP_Choice_presence_tags_10) |
| 126 | /sizeof(asn_DEF_ranP_Choice_presence_tags_10[0]), /* 2 */ |
| 127 | { &asn_OER_type_ranP_Choice_presence_constr_10, &asn_PER_type_ranP_Choice_presence_constr_10, NativeEnumerated_constraint }, |
| 128 | 0, 0, /* Defined elsewhere */ |
| 129 | &asn_SPC_ranP_Choice_presence_specs_10 /* Additional specs */ |
| 130 | }; |
| 131 | |
| 132 | asn_TYPE_member_t asn_MBR_RANParameter_TestingCondition_1[] = { |
| 133 | { ATF_NOFLAGS, 0, offsetof(struct RANParameter_TestingCondition, choice.ranP_Choice_comparison), |
| 134 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 135 | -1, /* IMPLICIT tag at current level */ |
| 136 | &asn_DEF_ranP_Choice_comparison_2, |
| 137 | 0, |
| 138 | { 0, 0, 0 }, |
| 139 | 0, 0, /* No default value */ |
| 140 | "ranP-Choice-comparison" |
| 141 | }, |
| 142 | { ATF_NOFLAGS, 0, offsetof(struct RANParameter_TestingCondition, choice.ranP_Choice_presence), |
| 143 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 144 | -1, /* IMPLICIT tag at current level */ |
| 145 | &asn_DEF_ranP_Choice_presence_10, |
| 146 | 0, |
| 147 | { 0, 0, 0 }, |
| 148 | 0, 0, /* No default value */ |
| 149 | "ranP-Choice-presence" |
| 150 | }, |
| 151 | }; |
| 152 | static const asn_TYPE_tag2member_t asn_MAP_RANParameter_TestingCondition_tag2el_1[] = { |
| 153 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ranP-Choice-comparison */ |
| 154 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ranP-Choice-presence */ |
| 155 | }; |
| 156 | asn_CHOICE_specifics_t asn_SPC_RANParameter_TestingCondition_specs_1 = { |
| 157 | sizeof(struct RANParameter_TestingCondition), |
| 158 | offsetof(struct RANParameter_TestingCondition, _asn_ctx), |
| 159 | offsetof(struct RANParameter_TestingCondition, present), |
| 160 | sizeof(((struct RANParameter_TestingCondition *)0)->present), |
| 161 | asn_MAP_RANParameter_TestingCondition_tag2el_1, |
| 162 | 2, /* Count of tags in the map */ |
| 163 | 0, 0, |
| 164 | 2 /* Extensions start */ |
| 165 | }; |
| 166 | asn_TYPE_descriptor_t asn_DEF_RANParameter_TestingCondition = { |
| 167 | "RANParameter-TestingCondition", |
| 168 | "RANParameter-TestingCondition", |
| 169 | &asn_OP_CHOICE, |
| 170 | 0, /* No effective tags (pointer) */ |
| 171 | 0, /* No effective tags (count) */ |
| 172 | 0, /* No tags (pointer) */ |
| 173 | 0, /* No tags (count) */ |
| 174 | { &asn_OER_type_RANParameter_TestingCondition_constr_1, &asn_PER_type_RANParameter_TestingCondition_constr_1, CHOICE_constraint }, |
| 175 | asn_MBR_RANParameter_TestingCondition_1, |
| 176 | 2, /* Elements count */ |
| 177 | &asn_SPC_RANParameter_TestingCondition_specs_1 /* Additional specs */ |
| 178 | }; |
| 179 | |