sjana | 76e88d2 | 2020-03-19 13:24:39 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "X2AP-IEs" |
| 4 | * found in "../../asn_defs/asn1/x2ap-15-04.asn" |
| 5 | * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER` |
| 6 | */ |
| 7 | |
| 8 | #include "X2N_RNTP-Threshold.h" |
| 9 | |
| 10 | /* |
| 11 | * This type is implemented using NativeEnumerated, |
| 12 | * so here we adjust the DEF accordingly. |
| 13 | */ |
| 14 | asn_per_constraints_t asn_PER_type_X2N_RNTP_Threshold_constr_1 CC_NOTUSED = { |
| 15 | { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */, |
| 16 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 17 | 0, 0 /* No PER value map */ |
| 18 | }; |
| 19 | static const asn_INTEGER_enum_map_t asn_MAP_X2N_RNTP_Threshold_value2enum_1[] = { |
| 20 | { 0, 13, "minusInfinity" }, |
| 21 | { 1, 11, "minusEleven" }, |
| 22 | { 2, 8, "minusTen" }, |
| 23 | { 3, 9, "minusNine" }, |
| 24 | { 4, 10, "minusEight" }, |
| 25 | { 5, 10, "minusSeven" }, |
| 26 | { 6, 8, "minusSix" }, |
| 27 | { 7, 9, "minusFive" }, |
| 28 | { 8, 9, "minusFour" }, |
| 29 | { 9, 10, "minusThree" }, |
| 30 | { 10, 8, "minusTwo" }, |
| 31 | { 11, 8, "minusOne" }, |
| 32 | { 12, 4, "zero" }, |
| 33 | { 13, 3, "one" }, |
| 34 | { 14, 3, "two" }, |
| 35 | { 15, 5, "three" } |
| 36 | /* This list is extensible */ |
| 37 | }; |
| 38 | static const unsigned int asn_MAP_X2N_RNTP_Threshold_enum2value_1[] = { |
| 39 | 4, /* minusEight(4) */ |
| 40 | 1, /* minusEleven(1) */ |
| 41 | 7, /* minusFive(7) */ |
| 42 | 8, /* minusFour(8) */ |
| 43 | 0, /* minusInfinity(0) */ |
| 44 | 3, /* minusNine(3) */ |
| 45 | 11, /* minusOne(11) */ |
| 46 | 5, /* minusSeven(5) */ |
| 47 | 6, /* minusSix(6) */ |
| 48 | 2, /* minusTen(2) */ |
| 49 | 9, /* minusThree(9) */ |
| 50 | 10, /* minusTwo(10) */ |
| 51 | 13, /* one(13) */ |
| 52 | 15, /* three(15) */ |
| 53 | 14, /* two(14) */ |
| 54 | 12 /* zero(12) */ |
| 55 | /* This list is extensible */ |
| 56 | }; |
| 57 | const asn_INTEGER_specifics_t asn_SPC_X2N_RNTP_Threshold_specs_1 = { |
| 58 | asn_MAP_X2N_RNTP_Threshold_value2enum_1, /* "tag" => N; sorted by tag */ |
| 59 | asn_MAP_X2N_RNTP_Threshold_enum2value_1, /* N => "tag"; sorted by N */ |
| 60 | 16, /* Number of elements in the maps */ |
| 61 | 17, /* 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_X2N_RNTP_Threshold_tags_1[] = { |
| 67 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 68 | }; |
| 69 | asn_TYPE_descriptor_t asn_DEF_X2N_RNTP_Threshold = { |
| 70 | "RNTP-Threshold", |
| 71 | "RNTP-Threshold", |
| 72 | &asn_OP_NativeEnumerated, |
| 73 | asn_DEF_X2N_RNTP_Threshold_tags_1, |
| 74 | sizeof(asn_DEF_X2N_RNTP_Threshold_tags_1) |
| 75 | /sizeof(asn_DEF_X2N_RNTP_Threshold_tags_1[0]), /* 1 */ |
| 76 | asn_DEF_X2N_RNTP_Threshold_tags_1, /* Same as above */ |
| 77 | sizeof(asn_DEF_X2N_RNTP_Threshold_tags_1) |
| 78 | /sizeof(asn_DEF_X2N_RNTP_Threshold_tags_1[0]), /* 1 */ |
| 79 | { 0, &asn_PER_type_X2N_RNTP_Threshold_constr_1, NativeEnumerated_constraint }, |
| 80 | 0, 0, /* Defined elsewhere */ |
| 81 | &asn_SPC_X2N_RNTP_Threshold_specs_1 /* Additional specs */ |
| 82 | }; |
| 83 | |