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
8 #include "WidebandCQICodeword1.h"
\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
16 ASN__CTFAIL(app_key, td, sptr,
\r
17 "%s: value not given (%s:%d)",
\r
18 td->name, __FILE__, __LINE__);
\r
22 value = *(const long *)sptr;
\r
24 if((value >= 0 && value <= 15)) {
\r
25 /* Constraint check succeeded */
\r
28 ASN__CTFAIL(app_key, td, sptr,
\r
29 "%s: constraint failed (%s:%d)",
\r
30 td->name, __FILE__, __LINE__);
\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
41 ASN__CTFAIL(app_key, td, sptr,
\r
42 "%s: value not given (%s:%d)",
\r
43 td->name, __FILE__, __LINE__);
\r
47 value = *(const long *)sptr;
\r
49 if((value >= 0 && value <= 7)) {
\r
50 /* Constraint check succeeded */
\r
53 ASN__CTFAIL(app_key, td, sptr,
\r
54 "%s: constraint failed (%s:%d)",
\r
55 td->name, __FILE__, __LINE__);
\r
60 static asn_per_constraints_t asn_PER_memb_four_bitCQI_constr_2 CC_NOTUSED = {
\r
61 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,
\r
62 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
63 0, 0 /* No PER value map */
\r
65 static asn_per_constraints_t asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3 CC_NOTUSED = {
\r
66 { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */,
\r
67 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
68 0, 0 /* No PER value map */
\r
70 asn_per_constraints_t asn_PER_type_WidebandCQICodeword1_constr_1 CC_NOTUSED = {
\r
71 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
\r
72 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
73 0, 0 /* No PER value map */
\r
75 asn_TYPE_member_t asn_MBR_WidebandCQICodeword1_1[] = {
\r
76 { ATF_NOFLAGS, 0, offsetof(struct WidebandCQICodeword1, choice.four_bitCQI),
\r
77 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
78 -1, /* IMPLICIT tag at current level */
\r
79 &asn_DEF_NativeInteger,
\r
81 { 0, &asn_PER_memb_four_bitCQI_constr_2, memb_four_bitCQI_constraint_1 },
\r
82 0, 0, /* No default value */
\r
85 { ATF_NOFLAGS, 0, offsetof(struct WidebandCQICodeword1, choice.three_bitSpatialDifferentialCQI),
\r
86 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
87 -1, /* IMPLICIT tag at current level */
\r
88 &asn_DEF_NativeInteger,
\r
90 { 0, &asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3, memb_three_bitSpatialDifferentialCQI_constraint_1 },
\r
91 0, 0, /* No default value */
\r
92 "three-bitSpatialDifferentialCQI"
\r
95 static const asn_TYPE_tag2member_t asn_MAP_WidebandCQICodeword1_tag2el_1[] = {
\r
96 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* four-bitCQI */
\r
97 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* three-bitSpatialDifferentialCQI */
\r
99 asn_CHOICE_specifics_t asn_SPC_WidebandCQICodeword1_specs_1 = {
\r
100 sizeof(struct WidebandCQICodeword1),
\r
101 offsetof(struct WidebandCQICodeword1, _asn_ctx),
\r
102 offsetof(struct WidebandCQICodeword1, present),
\r
103 sizeof(((struct WidebandCQICodeword1 *)0)->present),
\r
104 asn_MAP_WidebandCQICodeword1_tag2el_1,
\r
105 2, /* Count of tags in the map */
\r
107 2 /* Extensions start */
\r
109 asn_TYPE_descriptor_t asn_DEF_WidebandCQICodeword1 = {
\r
110 "WidebandCQICodeword1",
\r
111 "WidebandCQICodeword1",
\r
113 0, /* No effective tags (pointer) */
\r
114 0, /* No effective tags (count) */
\r
115 0, /* No tags (pointer) */
\r
116 0, /* No tags (count) */
\r
117 { 0, &asn_PER_type_WidebandCQICodeword1_constr_1, CHOICE_constraint },
\r
118 asn_MBR_WidebandCQICodeword1_1,
\r
119 2, /* Elements count */
\r
120 &asn_SPC_WidebandCQICodeword1_specs_1 /* Additional specs */
\r