ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / e2sm_rc / lib / E2SM-RC-ControlHeader-Format2.c
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.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example`
6  */
7
8 #include "E2SM-RC-ControlHeader-Format2.h"
9
10 #include "UEID.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 static asn_oer_constraints_t asn_OER_type_ric_ControlDecision_constr_3 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_ric_ControlDecision_constr_3 CC_NOTUSED = {
19         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
20         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
21         0, 0    /* No PER value map */
22 };
23 static const asn_INTEGER_enum_map_t asn_MAP_ric_ControlDecision_value2enum_3[] = {
24         { 0,    6,      "accept" },
25         { 1,    6,      "reject" }
26         /* This list is extensible */
27 };
28 static const unsigned int asn_MAP_ric_ControlDecision_enum2value_3[] = {
29         0,      /* accept(0) */
30         1       /* reject(1) */
31         /* This list is extensible */
32 };
33 static const asn_INTEGER_specifics_t asn_SPC_ric_ControlDecision_specs_3 = {
34         asn_MAP_ric_ControlDecision_value2enum_3,       /* "tag" => N; sorted by tag */
35         asn_MAP_ric_ControlDecision_enum2value_3,       /* N => "tag"; sorted by N */
36         2,      /* Number of elements in the maps */
37         3,      /* Extensions before this member */
38         1,      /* Strict enumeration */
39         0,      /* Native long size */
40         0
41 };
42 static const ber_tlv_tag_t asn_DEF_ric_ControlDecision_tags_3[] = {
43         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
44         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
45 };
46 static /* Use -fall-defs-global to expose */
47 asn_TYPE_descriptor_t asn_DEF_ric_ControlDecision_3 = {
48         "ric-ControlDecision",
49         "ric-ControlDecision",
50         &asn_OP_NativeEnumerated,
51         asn_DEF_ric_ControlDecision_tags_3,
52         sizeof(asn_DEF_ric_ControlDecision_tags_3)
53                 /sizeof(asn_DEF_ric_ControlDecision_tags_3[0]) - 1, /* 1 */
54         asn_DEF_ric_ControlDecision_tags_3,     /* Same as above */
55         sizeof(asn_DEF_ric_ControlDecision_tags_3)
56                 /sizeof(asn_DEF_ric_ControlDecision_tags_3[0]), /* 2 */
57         { &asn_OER_type_ric_ControlDecision_constr_3, &asn_PER_type_ric_ControlDecision_constr_3, NativeEnumerated_constraint },
58         0, 0,   /* Defined elsewhere */
59         &asn_SPC_ric_ControlDecision_specs_3    /* Additional specs */
60 };
61
62 asn_TYPE_member_t asn_MBR_E2SM_RC_ControlHeader_Format2_1[] = {
63         { ATF_POINTER, 2, offsetof(struct E2SM_RC_ControlHeader_Format2, ueID),
64                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
65                 +1,     /* EXPLICIT tag at current level */
66                 &asn_DEF_UEID,
67                 0,
68                 { 0, 0, 0 },
69                 0, 0, /* No default value */
70                 "ueID"
71                 },
72         { ATF_POINTER, 1, offsetof(struct E2SM_RC_ControlHeader_Format2, ric_ControlDecision),
73                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
74                 -1,     /* IMPLICIT tag at current level */
75                 &asn_DEF_ric_ControlDecision_3,
76                 0,
77                 { 0, 0, 0 },
78                 0, 0, /* No default value */
79                 "ric-ControlDecision"
80                 },
81 };
82 static const int asn_MAP_E2SM_RC_ControlHeader_Format2_oms_1[] = { 0, 1 };
83 static const ber_tlv_tag_t asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1[] = {
84         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
85 };
86 static const asn_TYPE_tag2member_t asn_MAP_E2SM_RC_ControlHeader_Format2_tag2el_1[] = {
87     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ueID */
88     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ric-ControlDecision */
89 };
90 asn_SEQUENCE_specifics_t asn_SPC_E2SM_RC_ControlHeader_Format2_specs_1 = {
91         sizeof(struct E2SM_RC_ControlHeader_Format2),
92         offsetof(struct E2SM_RC_ControlHeader_Format2, _asn_ctx),
93         asn_MAP_E2SM_RC_ControlHeader_Format2_tag2el_1,
94         2,      /* Count of tags in the map */
95         asn_MAP_E2SM_RC_ControlHeader_Format2_oms_1,    /* Optional members */
96         2, 0,   /* Root/Additions */
97         2,      /* First extension addition */
98 };
99 asn_TYPE_descriptor_t asn_DEF_E2SM_RC_ControlHeader_Format2 = {
100         "E2SM-RC-ControlHeader-Format2",
101         "E2SM-RC-ControlHeader-Format2",
102         &asn_OP_SEQUENCE,
103         asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1,
104         sizeof(asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1)
105                 /sizeof(asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1[0]), /* 1 */
106         asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1,   /* Same as above */
107         sizeof(asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1)
108                 /sizeof(asn_DEF_E2SM_RC_ControlHeader_Format2_tags_1[0]), /* 1 */
109         { 0, 0, SEQUENCE_constraint },
110         asn_MBR_E2SM_RC_ControlHeader_Format2_1,
111         2,      /* Elements count */
112         &asn_SPC_E2SM_RC_ControlHeader_Format2_specs_1  /* Additional specs */
113 };
114