Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / RICtimeToWait.c
1 /*****************************************************************************
2 #                                                                            *
3 # Copyright 2019 AT&T Intellectual Property                                  *
4 #                                                                            *
5 # Licensed under the Apache License, Version 2.0 (the "License");            *
6 # you may not use this file except in compliance with the License.           *
7 # You may obtain a copy of the License at                                    *
8 #                                                                            *
9 #      http://www.apache.org/licenses/LICENSE-2.0                            *
10 #                                                                            *
11 # Unless required by applicable law or agreed to in writing, software        *
12 # distributed under the License is distributed on an "AS IS" BASIS,          *
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *
14 # See the License for the specific language governing permissions and        *
15 # limitations under the License.                                             *
16 #                                                                            *
17 ******************************************************************************/
18
19 /*
20  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
21  * From ASN.1 module "E2AP-IEs"
22  *      found in "../../asnFiles/e2ap-v031.asn"
23  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
24  */
25
26 #include "RICtimeToWait.h"
27
28 /*
29  * This type is implemented using NativeEnumerated,
30  * so here we adjust the DEF accordingly.
31  */
32 asn_per_constraints_t asn_PER_type_RICtimeToWait_constr_1 CC_NOTUSED = {
33         { APC_CONSTRAINED | APC_EXTENSIBLE,  5,  5,  0,  17 }   /* (0..17,...) */,
34         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
35         0, 0    /* No PER value map */
36 };
37 static const asn_INTEGER_enum_map_t asn_MAP_RICtimeToWait_value2enum_1[] = {
38         { 0,    4,      "zero" },
39         { 1,    4,      "w1ms" },
40         { 2,    4,      "w2ms" },
41         { 3,    4,      "w5ms" },
42         { 4,    5,      "w10ms" },
43         { 5,    5,      "w20ms" },
44         { 6,    5,      "w30ms" },
45         { 7,    5,      "w40ms" },
46         { 8,    5,      "w50ms" },
47         { 9,    6,      "w100ms" },
48         { 10,   6,      "w200ms" },
49         { 11,   6,      "w500ms" },
50         { 12,   3,      "w1s" },
51         { 13,   3,      "w2s" },
52         { 14,   3,      "w5s" },
53         { 15,   4,      "w10s" },
54         { 16,   4,      "w20s" },
55         { 17,   4,      "w60s" }
56         /* This list is extensible */
57 };
58 static const unsigned int asn_MAP_RICtimeToWait_enum2value_1[] = {
59         9,      /* w100ms(9) */
60         4,      /* w10ms(4) */
61         15,     /* w10s(15) */
62         1,      /* w1ms(1) */
63         12,     /* w1s(12) */
64         10,     /* w200ms(10) */
65         5,      /* w20ms(5) */
66         16,     /* w20s(16) */
67         2,      /* w2ms(2) */
68         13,     /* w2s(13) */
69         6,      /* w30ms(6) */
70         7,      /* w40ms(7) */
71         11,     /* w500ms(11) */
72         8,      /* w50ms(8) */
73         3,      /* w5ms(3) */
74         14,     /* w5s(14) */
75         17,     /* w60s(17) */
76         0       /* zero(0) */
77         /* This list is extensible */
78 };
79 const asn_INTEGER_specifics_t asn_SPC_RICtimeToWait_specs_1 = {
80         asn_MAP_RICtimeToWait_value2enum_1,     /* "tag" => N; sorted by tag */
81         asn_MAP_RICtimeToWait_enum2value_1,     /* N => "tag"; sorted by N */
82         18,     /* Number of elements in the maps */
83         19,     /* Extensions before this member */
84         1,      /* Strict enumeration */
85         0,      /* Native long size */
86         0
87 };
88 static const ber_tlv_tag_t asn_DEF_RICtimeToWait_tags_1[] = {
89         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
90 };
91 asn_TYPE_descriptor_t asn_DEF_RICtimeToWait = {
92         "RICtimeToWait",
93         "RICtimeToWait",
94         &asn_OP_NativeEnumerated,
95         asn_DEF_RICtimeToWait_tags_1,
96         sizeof(asn_DEF_RICtimeToWait_tags_1)
97                 /sizeof(asn_DEF_RICtimeToWait_tags_1[0]), /* 1 */
98         asn_DEF_RICtimeToWait_tags_1,   /* Same as above */
99         sizeof(asn_DEF_RICtimeToWait_tags_1)
100                 /sizeof(asn_DEF_RICtimeToWait_tags_1[0]), /* 1 */
101         { 0, &asn_PER_type_RICtimeToWait_constr_1, NativeEnumerated_constraint },
102         0, 0,   /* Defined elsewhere */
103         &asn_SPC_RICtimeToWait_specs_1  /* Additional specs */
104 };
105