Updated INFO.yaml file
[ric-app/kpimon.git] / asn1c_defs / all-defs / ProtectedEUTRAResourceIndication.c
1 /*\r
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\r
3  * From ASN.1 module "X2AP-IEs"\r
4  *      found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"\r
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\r
6  */\r
7 \r
8 #include "ProtectedEUTRAResourceIndication.h"\r
9 \r
10 #include "ProtocolExtensionContainer.h"\r
11 static int\r
12 memb_activationSFN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
13                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
14         long value;\r
15         \r
16         if(!sptr) {\r
17                 ASN__CTFAIL(app_key, td, sptr,\r
18                         "%s: value not given (%s:%d)",\r
19                         td->name, __FILE__, __LINE__);\r
20                 return -1;\r
21         }\r
22         \r
23         value = *(const long *)sptr;\r
24         \r
25         if((value >= 0 && value <= 1023)) {\r
26                 /* Constraint check succeeded */\r
27                 return 0;\r
28         } else {\r
29                 ASN__CTFAIL(app_key, td, sptr,\r
30                         "%s: constraint failed (%s:%d)",\r
31                         td->name, __FILE__, __LINE__);\r
32                 return -1;\r
33         }\r
34 }\r
35 \r
36 static int\r
37 memb_mBSFNControlRegionLength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
38                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
39         long value;\r
40         \r
41         if(!sptr) {\r
42                 ASN__CTFAIL(app_key, td, sptr,\r
43                         "%s: value not given (%s:%d)",\r
44                         td->name, __FILE__, __LINE__);\r
45                 return -1;\r
46         }\r
47         \r
48         value = *(const long *)sptr;\r
49         \r
50         if((value >= 0 && value <= 3)) {\r
51                 /* Constraint check succeeded */\r
52                 return 0;\r
53         } else {\r
54                 ASN__CTFAIL(app_key, td, sptr,\r
55                         "%s: constraint failed (%s:%d)",\r
56                         td->name, __FILE__, __LINE__);\r
57                 return -1;\r
58         }\r
59 }\r
60 \r
61 static int\r
62 memb_pDCCHRegionLength_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
63                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
64         long value;\r
65         \r
66         if(!sptr) {\r
67                 ASN__CTFAIL(app_key, td, sptr,\r
68                         "%s: value not given (%s:%d)",\r
69                         td->name, __FILE__, __LINE__);\r
70                 return -1;\r
71         }\r
72         \r
73         value = *(const long *)sptr;\r
74         \r
75         if((value >= 1 && value <= 3)) {\r
76                 /* Constraint check succeeded */\r
77                 return 0;\r
78         } else {\r
79                 ASN__CTFAIL(app_key, td, sptr,\r
80                         "%s: constraint failed (%s:%d)",\r
81                         td->name, __FILE__, __LINE__);\r
82                 return -1;\r
83         }\r
84 }\r
85 \r
86 static asn_per_constraints_t asn_PER_memb_activationSFN_constr_2 CC_NOTUSED = {\r
87         { APC_CONSTRAINED,       10,  10,  0,  1023 }   /* (0..1023) */,\r
88         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
89         0, 0    /* No PER value map */\r
90 };\r
91 static asn_per_constraints_t asn_PER_memb_mBSFNControlRegionLength_constr_4 CC_NOTUSED = {\r
92         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,\r
93         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
94         0, 0    /* No PER value map */\r
95 };\r
96 static asn_per_constraints_t asn_PER_memb_pDCCHRegionLength_constr_5 CC_NOTUSED = {\r
97         { APC_CONSTRAINED,       2,  2,  1,  3 }        /* (1..3) */,\r
98         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
99         0, 0    /* No PER value map */\r
100 };\r
101 static asn_TYPE_member_t asn_MBR_ProtectedEUTRAResourceIndication_1[] = {\r
102         { ATF_NOFLAGS, 0, offsetof(struct ProtectedEUTRAResourceIndication, activationSFN),\r
103                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
104                 -1,     /* IMPLICIT tag at current level */\r
105                 &asn_DEF_NativeInteger,\r
106                 0,\r
107                 { 0, &asn_PER_memb_activationSFN_constr_2,  memb_activationSFN_constraint_1 },\r
108                 0, 0, /* No default value */\r
109                 "activationSFN"\r
110                 },\r
111         { ATF_NOFLAGS, 0, offsetof(struct ProtectedEUTRAResourceIndication, protectedResourceList),\r
112                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
113                 -1,     /* IMPLICIT tag at current level */\r
114                 &asn_DEF_ProtectedResourceList,\r
115                 0,\r
116                 { 0, 0, 0 },\r
117                 0, 0, /* No default value */\r
118                 "protectedResourceList"\r
119                 },\r
120         { ATF_POINTER, 3, offsetof(struct ProtectedEUTRAResourceIndication, mBSFNControlRegionLength),\r
121                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
122                 -1,     /* IMPLICIT tag at current level */\r
123                 &asn_DEF_NativeInteger,\r
124                 0,\r
125                 { 0, &asn_PER_memb_mBSFNControlRegionLength_constr_4,  memb_mBSFNControlRegionLength_constraint_1 },\r
126                 0, 0, /* No default value */\r
127                 "mBSFNControlRegionLength"\r
128                 },\r
129         { ATF_POINTER, 2, offsetof(struct ProtectedEUTRAResourceIndication, pDCCHRegionLength),\r
130                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),\r
131                 -1,     /* IMPLICIT tag at current level */\r
132                 &asn_DEF_NativeInteger,\r
133                 0,\r
134                 { 0, &asn_PER_memb_pDCCHRegionLength_constr_5,  memb_pDCCHRegionLength_constraint_1 },\r
135                 0, 0, /* No default value */\r
136                 "pDCCHRegionLength"\r
137                 },\r
138         { ATF_POINTER, 1, offsetof(struct ProtectedEUTRAResourceIndication, iE_Extensions),\r
139                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),\r
140                 -1,     /* IMPLICIT tag at current level */\r
141                 &asn_DEF_ProtocolExtensionContainer_8231P180,\r
142                 0,\r
143                 { 0, 0, 0 },\r
144                 0, 0, /* No default value */\r
145                 "iE-Extensions"\r
146                 },\r
147 };\r
148 static const int asn_MAP_ProtectedEUTRAResourceIndication_oms_1[] = { 2, 3, 4 };\r
149 static const ber_tlv_tag_t asn_DEF_ProtectedEUTRAResourceIndication_tags_1[] = {\r
150         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
151 };\r
152 static const asn_TYPE_tag2member_t asn_MAP_ProtectedEUTRAResourceIndication_tag2el_1[] = {\r
153     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* activationSFN */\r
154     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protectedResourceList */\r
155     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mBSFNControlRegionLength */\r
156     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pDCCHRegionLength */\r
157     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */\r
158 };\r
159 static asn_SEQUENCE_specifics_t asn_SPC_ProtectedEUTRAResourceIndication_specs_1 = {\r
160         sizeof(struct ProtectedEUTRAResourceIndication),\r
161         offsetof(struct ProtectedEUTRAResourceIndication, _asn_ctx),\r
162         asn_MAP_ProtectedEUTRAResourceIndication_tag2el_1,\r
163         5,      /* Count of tags in the map */\r
164         asn_MAP_ProtectedEUTRAResourceIndication_oms_1, /* Optional members */\r
165         3, 0,   /* Root/Additions */\r
166         5,      /* First extension addition */\r
167 };\r
168 asn_TYPE_descriptor_t asn_DEF_ProtectedEUTRAResourceIndication = {\r
169         "ProtectedEUTRAResourceIndication",\r
170         "ProtectedEUTRAResourceIndication",\r
171         &asn_OP_SEQUENCE,\r
172         asn_DEF_ProtectedEUTRAResourceIndication_tags_1,\r
173         sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1)\r
174                 /sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1[0]), /* 1 */\r
175         asn_DEF_ProtectedEUTRAResourceIndication_tags_1,        /* Same as above */\r
176         sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1)\r
177                 /sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1[0]), /* 1 */\r
178         { 0, 0, SEQUENCE_constraint },\r
179         asn_MBR_ProtectedEUTRAResourceIndication_1,\r
180         5,      /* Elements count */\r
181         &asn_SPC_ProtectedEUTRAResourceIndication_specs_1       /* Additional specs */\r
182 };\r
183 \r