387110ef3cedae96ffc7083bb420dd0571299bf3
[ric-plt/submgr.git] / e2ap / lib / RadioframeAllocationPeriod.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
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`
6  */
7
8 #include "RadioframeAllocationPeriod.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_RadioframeAllocationPeriod_constr_1 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 asn_per_constraints_t asn_PER_type_RadioframeAllocationPeriod_constr_1 CC_NOTUSED = {
18         { APC_CONSTRAINED | APC_EXTENSIBLE,  3,  3,  0,  5 }    /* (0..5,...) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static const asn_INTEGER_enum_map_t asn_MAP_RadioframeAllocationPeriod_value2enum_1[] = {
23         { 0,    2,      "n1" },
24         { 1,    2,      "n2" },
25         { 2,    2,      "n4" },
26         { 3,    2,      "n8" },
27         { 4,    3,      "n16" },
28         { 5,    3,      "n32" }
29         /* This list is extensible */
30 };
31 static const unsigned int asn_MAP_RadioframeAllocationPeriod_enum2value_1[] = {
32         0,      /* n1(0) */
33         4,      /* n16(4) */
34         1,      /* n2(1) */
35         5,      /* n32(5) */
36         2,      /* n4(2) */
37         3       /* n8(3) */
38         /* This list is extensible */
39 };
40 const asn_INTEGER_specifics_t asn_SPC_RadioframeAllocationPeriod_specs_1 = {
41         asn_MAP_RadioframeAllocationPeriod_value2enum_1,        /* "tag" => N; sorted by tag */
42         asn_MAP_RadioframeAllocationPeriod_enum2value_1,        /* N => "tag"; sorted by N */
43         6,      /* Number of elements in the maps */
44         7,      /* Extensions before this member */
45         1,      /* Strict enumeration */
46         0,      /* Native long size */
47         0
48 };
49 static const ber_tlv_tag_t asn_DEF_RadioframeAllocationPeriod_tags_1[] = {
50         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
51 };
52 asn_TYPE_descriptor_t asn_DEF_RadioframeAllocationPeriod = {
53         "RadioframeAllocationPeriod",
54         "RadioframeAllocationPeriod",
55         &asn_OP_NativeEnumerated,
56         asn_DEF_RadioframeAllocationPeriod_tags_1,
57         sizeof(asn_DEF_RadioframeAllocationPeriod_tags_1)
58                 /sizeof(asn_DEF_RadioframeAllocationPeriod_tags_1[0]), /* 1 */
59         asn_DEF_RadioframeAllocationPeriod_tags_1,      /* Same as above */
60         sizeof(asn_DEF_RadioframeAllocationPeriod_tags_1)
61                 /sizeof(asn_DEF_RadioframeAllocationPeriod_tags_1[0]), /* 1 */
62         { &asn_OER_type_RadioframeAllocationPeriod_constr_1, &asn_PER_type_RadioframeAllocationPeriod_constr_1, NativeEnumerated_constraint },
63         0, 0,   /* Defined elsewhere */
64         &asn_SPC_RadioframeAllocationPeriod_specs_1     /* Additional specs */
65 };
66