2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "Spec/e2ap-v031ex.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "WidebandCQI.h"
10 #include "WidebandCQICodeword1.h"
11 #include "ProtocolExtensionContainer.h"
13 memb_widebandCQICodeword0_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
24 value = *(const long *)sptr;
26 if((value >= 0 && value <= 15)) {
27 /* Constraint check succeeded */
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
37 static asn_oer_constraints_t asn_OER_memb_widebandCQICodeword0_constr_2 CC_NOTUSED = {
40 static asn_per_constraints_t asn_PER_memb_widebandCQICodeword0_constr_2 CC_NOTUSED = {
41 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,
42 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
43 0, 0 /* No PER value map */
45 asn_TYPE_member_t asn_MBR_WidebandCQI_1[] = {
46 { ATF_NOFLAGS, 0, offsetof(struct WidebandCQI, widebandCQICodeword0),
47 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
48 -1, /* IMPLICIT tag at current level */
49 &asn_DEF_NativeInteger,
51 { &asn_OER_memb_widebandCQICodeword0_constr_2, &asn_PER_memb_widebandCQICodeword0_constr_2, memb_widebandCQICodeword0_constraint_1 },
52 0, 0, /* No default value */
53 "widebandCQICodeword0"
55 { ATF_POINTER, 2, offsetof(struct WidebandCQI, widebandCQICodeword1),
56 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
57 +1, /* EXPLICIT tag at current level */
58 &asn_DEF_WidebandCQICodeword1,
61 0, 0, /* No default value */
62 "widebandCQICodeword1"
64 { ATF_POINTER, 1, offsetof(struct WidebandCQI, iE_Extensions),
65 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
66 -1, /* IMPLICIT tag at current level */
67 &asn_DEF_ProtocolExtensionContainer_9566P221,
70 0, 0, /* No default value */
74 static const int asn_MAP_WidebandCQI_oms_1[] = { 1, 2 };
75 static const ber_tlv_tag_t asn_DEF_WidebandCQI_tags_1[] = {
76 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
78 static const asn_TYPE_tag2member_t asn_MAP_WidebandCQI_tag2el_1[] = {
79 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* widebandCQICodeword0 */
80 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* widebandCQICodeword1 */
81 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
83 asn_SEQUENCE_specifics_t asn_SPC_WidebandCQI_specs_1 = {
84 sizeof(struct WidebandCQI),
85 offsetof(struct WidebandCQI, _asn_ctx),
86 asn_MAP_WidebandCQI_tag2el_1,
87 3, /* Count of tags in the map */
88 asn_MAP_WidebandCQI_oms_1, /* Optional members */
89 2, 0, /* Root/Additions */
90 3, /* First extension addition */
92 asn_TYPE_descriptor_t asn_DEF_WidebandCQI = {
96 asn_DEF_WidebandCQI_tags_1,
97 sizeof(asn_DEF_WidebandCQI_tags_1)
98 /sizeof(asn_DEF_WidebandCQI_tags_1[0]), /* 1 */
99 asn_DEF_WidebandCQI_tags_1, /* Same as above */
100 sizeof(asn_DEF_WidebandCQI_tags_1)
101 /sizeof(asn_DEF_WidebandCQI_tags_1[0]), /* 1 */
102 { 0, 0, SEQUENCE_constraint },
103 asn_MBR_WidebandCQI_1,
104 3, /* Elements count */
105 &asn_SPC_WidebandCQI_specs_1 /* Additional specs */