e6a7d8f63a7f1063e1fc5478d435f0101c44081d
[o-du/l2.git] / src / codec_utils / F1AP / PrivateIE-Field.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "F1AP-Containers"
4  *      found in "F1.asn1"
5  *      `asn1c -D ./out -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "PrivateIE-Field.h"
9
10 static int
11 memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         
14         if(!sptr) {
15                 ASN__CTFAIL(app_key, td, sptr,
16                         "%s: value not given (%s:%d)",
17                         td->name, __FILE__, __LINE__);
18                 return -1;
19         }
20         
21         
22         if(1 /* No applicable constraints whatsoever */) {
23                 /* Nothing is here. See below */
24         }
25         
26         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
27 }
28
29 static int
30 memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
31                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
32         
33         if(!sptr) {
34                 ASN__CTFAIL(app_key, td, sptr,
35                         "%s: value not given (%s:%d)",
36                         td->name, __FILE__, __LINE__);
37                 return -1;
38         }
39         
40         
41         if(1 /* No applicable constraints whatsoever */) {
42                 /* Nothing is here. See below */
43         }
44         
45         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
46 }
47
48 static int
49 memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
50                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
51         
52         if(!sptr) {
53                 ASN__CTFAIL(app_key, td, sptr,
54                         "%s: value not given (%s:%d)",
55                         td->name, __FILE__, __LINE__);
56                 return -1;
57         }
58         
59         
60         if(1 /* No applicable constraints whatsoever */) {
61                 /* Nothing is here. See below */
62         }
63         
64         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
65 }
66
67 static asn_oer_constraints_t asn_OER_memb_id_constr_2 CC_NOTUSED = {
68         { 0, 0 },
69         -1};
70 static asn_per_constraints_t asn_PER_memb_id_constr_2 CC_NOTUSED = {
71         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
72         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
73         0, 0    /* No PER value map */
74 };
75 static asn_oer_constraints_t asn_OER_memb_criticality_constr_3 CC_NOTUSED = {
76         { 0, 0 },
77         -1};
78 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
79         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
80         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
81         0, 0    /* No PER value map */
82 };
83 static asn_oer_constraints_t asn_OER_memb_value_constr_4 CC_NOTUSED = {
84         { 0, 0 },
85         -1};
86 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
87         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
88         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
89         0, 0    /* No PER value map */
90 };
91 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
92         sizeof(struct PrivateMessage_IEs__value),
93         offsetof(struct PrivateMessage_IEs__value, _asn_ctx),
94         offsetof(struct PrivateMessage_IEs__value, present),
95         sizeof(((struct PrivateMessage_IEs__value *)0)->present),
96         0,      /* No top level tags */
97         0,      /* No tags in the map */
98         0, 0,
99         -1      /* Extensions start */
100 };
101 static /* Use -fall-defs-global to expose */
102 asn_TYPE_descriptor_t asn_DEF_value_4 = {
103         "value",
104         "value",
105         &asn_OP_OPEN_TYPE,
106         0,      /* No effective tags (pointer) */
107         0,      /* No effective tags (count) */
108         0,      /* No tags (pointer) */
109         0,      /* No tags (count) */
110         { 0, 0, OPEN_TYPE_constraint },
111         0, 0,   /* No members */
112         &asn_SPC_value_specs_4  /* Additional specs */
113 };
114
115 asn_TYPE_member_t asn_MBR_PrivateMessage_IEs_1[] = {
116         { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, id),
117                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
118                 +1,     /* EXPLICIT tag at current level */
119                 &asn_DEF_PrivateIE_ID,
120                 0,
121                 { &asn_OER_memb_id_constr_2, &asn_PER_memb_id_constr_2,  memb_id_constraint_1 },
122                 0, 0, /* No default value */
123                 "id"
124                 },
125         { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, criticality),
126                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
127                 -1,     /* IMPLICIT tag at current level */
128                 &asn_DEF_Criticality,
129                 0,
130                 { &asn_OER_memb_criticality_constr_3, &asn_PER_memb_criticality_constr_3,  memb_criticality_constraint_1 },
131                 0, 0, /* No default value */
132                 "criticality"
133                 },
134         { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct PrivateMessage_IEs, value),
135                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
136                 +1,     /* EXPLICIT tag at current level */
137                 &asn_DEF_value_4,
138                 0,
139                 { &asn_OER_memb_value_constr_4, &asn_PER_memb_value_constr_4,  memb_value_constraint_1 },
140                 0, 0, /* No default value */
141                 "value"
142                 },
143 };
144 static const ber_tlv_tag_t asn_DEF_PrivateMessage_IEs_tags_1[] = {
145         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
146 };
147 static const asn_TYPE_tag2member_t asn_MAP_PrivateMessage_IEs_tag2el_1[] = {
148     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
149     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
150     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
151 };
152 asn_SEQUENCE_specifics_t asn_SPC_PrivateMessage_IEs_specs_1 = {
153         sizeof(struct PrivateMessage_IEs),
154         offsetof(struct PrivateMessage_IEs, _asn_ctx),
155         asn_MAP_PrivateMessage_IEs_tag2el_1,
156         3,      /* Count of tags in the map */
157         0, 0, 0,        /* Optional elements (not needed) */
158         -1,     /* First extension addition */
159 };
160 asn_TYPE_descriptor_t asn_DEF_PrivateMessage_IEs = {
161         "PrivateMessage-IEs",
162         "PrivateMessage-IEs",
163         &asn_OP_SEQUENCE,
164         asn_DEF_PrivateMessage_IEs_tags_1,
165         sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
166                 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
167         asn_DEF_PrivateMessage_IEs_tags_1,      /* Same as above */
168         sizeof(asn_DEF_PrivateMessage_IEs_tags_1)
169                 /sizeof(asn_DEF_PrivateMessage_IEs_tags_1[0]), /* 1 */
170         { 0, 0, SEQUENCE_constraint },
171         asn_MBR_PrivateMessage_IEs_1,
172         3,      /* Elements count */
173         &asn_SPC_PrivateMessage_IEs_specs_1     /* Additional specs */
174 };
175