Updated INFO.yaml file
[ric-app/kpimon.git] / asn1c_defs / all-defs / SubbandCQICodeword1.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 "SubbandCQICodeword1.h"\r
9 \r
10 static int\r
11 memb_four_bitCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
13         long value;\r
14         \r
15         if(!sptr) {\r
16                 ASN__CTFAIL(app_key, td, sptr,\r
17                         "%s: value not given (%s:%d)",\r
18                         td->name, __FILE__, __LINE__);\r
19                 return -1;\r
20         }\r
21         \r
22         value = *(const long *)sptr;\r
23         \r
24         if((value >= 0 && value <= 15)) {\r
25                 /* Constraint check succeeded */\r
26                 return 0;\r
27         } else {\r
28                 ASN__CTFAIL(app_key, td, sptr,\r
29                         "%s: constraint failed (%s:%d)",\r
30                         td->name, __FILE__, __LINE__);\r
31                 return -1;\r
32         }\r
33 }\r
34 \r
35 static int\r
36 memb_three_bitSpatialDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
37                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
38         long value;\r
39         \r
40         if(!sptr) {\r
41                 ASN__CTFAIL(app_key, td, sptr,\r
42                         "%s: value not given (%s:%d)",\r
43                         td->name, __FILE__, __LINE__);\r
44                 return -1;\r
45         }\r
46         \r
47         value = *(const long *)sptr;\r
48         \r
49         if((value >= 0 && value <= 7)) {\r
50                 /* Constraint check succeeded */\r
51                 return 0;\r
52         } else {\r
53                 ASN__CTFAIL(app_key, td, sptr,\r
54                         "%s: constraint failed (%s:%d)",\r
55                         td->name, __FILE__, __LINE__);\r
56                 return -1;\r
57         }\r
58 }\r
59 \r
60 static int\r
61 memb_two_bitSubbandDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
62                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
63         long value;\r
64         \r
65         if(!sptr) {\r
66                 ASN__CTFAIL(app_key, td, sptr,\r
67                         "%s: value not given (%s:%d)",\r
68                         td->name, __FILE__, __LINE__);\r
69                 return -1;\r
70         }\r
71         \r
72         value = *(const long *)sptr;\r
73         \r
74         if((value >= 0 && value <= 3)) {\r
75                 /* Constraint check succeeded */\r
76                 return 0;\r
77         } else {\r
78                 ASN__CTFAIL(app_key, td, sptr,\r
79                         "%s: constraint failed (%s:%d)",\r
80                         td->name, __FILE__, __LINE__);\r
81                 return -1;\r
82         }\r
83 }\r
84 \r
85 static int\r
86 memb_two_bitDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
87                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
88         long value;\r
89         \r
90         if(!sptr) {\r
91                 ASN__CTFAIL(app_key, td, sptr,\r
92                         "%s: value not given (%s:%d)",\r
93                         td->name, __FILE__, __LINE__);\r
94                 return -1;\r
95         }\r
96         \r
97         value = *(const long *)sptr;\r
98         \r
99         if((value >= 0 && value <= 3)) {\r
100                 /* Constraint check succeeded */\r
101                 return 0;\r
102         } else {\r
103                 ASN__CTFAIL(app_key, td, sptr,\r
104                         "%s: constraint failed (%s:%d)",\r
105                         td->name, __FILE__, __LINE__);\r
106                 return -1;\r
107         }\r
108 }\r
109 \r
110 static asn_per_constraints_t asn_PER_memb_four_bitCQI_constr_2 CC_NOTUSED = {\r
111         { APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  15 }   /* (0..15,...) */,\r
112         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
113         0, 0    /* No PER value map */\r
114 };\r
115 static asn_per_constraints_t asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3 CC_NOTUSED = {\r
116         { APC_CONSTRAINED | APC_EXTENSIBLE,  3,  3,  0,  7 }    /* (0..7,...) */,\r
117         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
118         0, 0    /* No PER value map */\r
119 };\r
120 static asn_per_constraints_t asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4 CC_NOTUSED = {\r
121         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  3 }    /* (0..3,...) */,\r
122         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
123         0, 0    /* No PER value map */\r
124 };\r
125 static asn_per_constraints_t asn_PER_memb_two_bitDifferentialCQI_constr_5 CC_NOTUSED = {\r
126         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  3 }    /* (0..3,...) */,\r
127         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
128         0, 0    /* No PER value map */\r
129 };\r
130 asn_per_constraints_t asn_PER_type_SubbandCQICodeword1_constr_1 CC_NOTUSED = {\r
131         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  3 }    /* (0..3,...) */,\r
132         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
133         0, 0    /* No PER value map */\r
134 };\r
135 asn_TYPE_member_t asn_MBR_SubbandCQICodeword1_1[] = {\r
136         { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.four_bitCQI),\r
137                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
138                 -1,     /* IMPLICIT tag at current level */\r
139                 &asn_DEF_NativeInteger,\r
140                 0,\r
141                 { 0, &asn_PER_memb_four_bitCQI_constr_2,  memb_four_bitCQI_constraint_1 },\r
142                 0, 0, /* No default value */\r
143                 "four-bitCQI"\r
144                 },\r
145         { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.three_bitSpatialDifferentialCQI),\r
146                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
147                 -1,     /* IMPLICIT tag at current level */\r
148                 &asn_DEF_NativeInteger,\r
149                 0,\r
150                 { 0, &asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3,  memb_three_bitSpatialDifferentialCQI_constraint_1 },\r
151                 0, 0, /* No default value */\r
152                 "three-bitSpatialDifferentialCQI"\r
153                 },\r
154         { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitSubbandDifferentialCQI),\r
155                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
156                 -1,     /* IMPLICIT tag at current level */\r
157                 &asn_DEF_NativeInteger,\r
158                 0,\r
159                 { 0, &asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4,  memb_two_bitSubbandDifferentialCQI_constraint_1 },\r
160                 0, 0, /* No default value */\r
161                 "two-bitSubbandDifferentialCQI"\r
162                 },\r
163         { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitDifferentialCQI),\r
164                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),\r
165                 -1,     /* IMPLICIT tag at current level */\r
166                 &asn_DEF_NativeInteger,\r
167                 0,\r
168                 { 0, &asn_PER_memb_two_bitDifferentialCQI_constr_5,  memb_two_bitDifferentialCQI_constraint_1 },\r
169                 0, 0, /* No default value */\r
170                 "two-bitDifferentialCQI"\r
171                 },\r
172 };\r
173 static const asn_TYPE_tag2member_t asn_MAP_SubbandCQICodeword1_tag2el_1[] = {\r
174     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* four-bitCQI */\r
175     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* three-bitSpatialDifferentialCQI */\r
176     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* two-bitSubbandDifferentialCQI */\r
177     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* two-bitDifferentialCQI */\r
178 };\r
179 asn_CHOICE_specifics_t asn_SPC_SubbandCQICodeword1_specs_1 = {\r
180         sizeof(struct SubbandCQICodeword1),\r
181         offsetof(struct SubbandCQICodeword1, _asn_ctx),\r
182         offsetof(struct SubbandCQICodeword1, present),\r
183         sizeof(((struct SubbandCQICodeword1 *)0)->present),\r
184         asn_MAP_SubbandCQICodeword1_tag2el_1,\r
185         4,      /* Count of tags in the map */\r
186         0, 0,\r
187         4       /* Extensions start */\r
188 };\r
189 asn_TYPE_descriptor_t asn_DEF_SubbandCQICodeword1 = {\r
190         "SubbandCQICodeword1",\r
191         "SubbandCQICodeword1",\r
192         &asn_OP_CHOICE,\r
193         0,      /* No effective tags (pointer) */\r
194         0,      /* No effective tags (count) */\r
195         0,      /* No tags (pointer) */\r
196         0,      /* No tags (count) */\r
197         { 0, &asn_PER_type_SubbandCQICodeword1_constr_1, CHOICE_constraint },\r
198         asn_MBR_SubbandCQICodeword1_1,\r
199         4,      /* Elements count */\r
200         &asn_SPC_SubbandCQICodeword1_specs_1    /* Additional specs */\r
201 };\r
202 \r