2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-IEs"
4 * found in "/home/rshacham/e2sm-kpm-v01.02.asn"
5 * `asn1c -fcompound-names`
8 #include "PerQCIReportListItemFormat.h"
11 memb_qci_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(const long *)sptr;
24 if((value >= 0 && value <= 255)) {
25 /* Constraint check succeeded */
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
36 memb_pDCPBytesDL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
38 const INTEGER_t *st = (const INTEGER_t *)sptr;
42 ASN__CTFAIL(app_key, td, sptr,
43 "%s: value not given (%s:%d)",
44 td->name, __FILE__, __LINE__);
48 if(asn_INTEGER2long(st, &value)) {
49 ASN__CTFAIL(app_key, td, sptr,
50 "%s: value too large (%s:%d)",
51 td->name, __FILE__, __LINE__);
55 if((value >= 0 && value <= 10000000000)) {
56 /* Constraint check succeeded */
59 ASN__CTFAIL(app_key, td, sptr,
60 "%s: constraint failed (%s:%d)",
61 td->name, __FILE__, __LINE__);
67 memb_pDCPBytesUL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
68 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
69 const INTEGER_t *st = (const INTEGER_t *)sptr;
73 ASN__CTFAIL(app_key, td, sptr,
74 "%s: value not given (%s:%d)",
75 td->name, __FILE__, __LINE__);
79 if(asn_INTEGER2long(st, &value)) {
80 ASN__CTFAIL(app_key, td, sptr,
81 "%s: value too large (%s:%d)",
82 td->name, __FILE__, __LINE__);
86 if((value >= 0 && value <= 10000000000)) {
87 /* Constraint check succeeded */
90 ASN__CTFAIL(app_key, td, sptr,
91 "%s: constraint failed (%s:%d)",
92 td->name, __FILE__, __LINE__);
97 static asn_oer_constraints_t asn_OER_memb_qci_constr_2 CC_NOTUSED = {
98 { 1, 1 } /* (0..255) */,
100 static asn_per_constraints_t asn_PER_memb_qci_constr_2 CC_NOTUSED = {
101 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
102 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
103 0, 0 /* No PER value map */
105 static asn_oer_constraints_t asn_OER_memb_pDCPBytesDL_constr_3 CC_NOTUSED = {
108 static asn_per_constraints_t asn_PER_memb_pDCPBytesDL_constr_3 CC_NOTUSED = {
109 { APC_CONSTRAINED | APC_EXTENSIBLE, 34, -1, 0, 10000000000 } /* (0..10000000000,...) */,
110 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
111 0, 0 /* No PER value map */
113 static asn_oer_constraints_t asn_OER_memb_pDCPBytesUL_constr_4 CC_NOTUSED = {
116 static asn_per_constraints_t asn_PER_memb_pDCPBytesUL_constr_4 CC_NOTUSED = {
117 { APC_CONSTRAINED | APC_EXTENSIBLE, 34, -1, 0, 10000000000 } /* (0..10000000000,...) */,
118 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
119 0, 0 /* No PER value map */
121 asn_TYPE_member_t asn_MBR_PerQCIReportListItemFormat_1[] = {
122 { ATF_NOFLAGS, 0, offsetof(struct PerQCIReportListItemFormat, qci),
123 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
124 -1, /* IMPLICIT tag at current level */
125 &asn_DEF_NativeInteger,
127 { &asn_OER_memb_qci_constr_2, &asn_PER_memb_qci_constr_2, memb_qci_constraint_1 },
128 0, 0, /* No default value */
131 { ATF_POINTER, 2, offsetof(struct PerQCIReportListItemFormat, pDCPBytesDL),
132 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
133 -1, /* IMPLICIT tag at current level */
136 { &asn_OER_memb_pDCPBytesDL_constr_3, &asn_PER_memb_pDCPBytesDL_constr_3, memb_pDCPBytesDL_constraint_1 },
137 0, 0, /* No default value */
140 { ATF_POINTER, 1, offsetof(struct PerQCIReportListItemFormat, pDCPBytesUL),
141 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
142 -1, /* IMPLICIT tag at current level */
145 { &asn_OER_memb_pDCPBytesUL_constr_4, &asn_PER_memb_pDCPBytesUL_constr_4, memb_pDCPBytesUL_constraint_1 },
146 0, 0, /* No default value */
150 static const int asn_MAP_PerQCIReportListItemFormat_oms_1[] = { 1, 2 };
151 static const ber_tlv_tag_t asn_DEF_PerQCIReportListItemFormat_tags_1[] = {
152 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
154 static const asn_TYPE_tag2member_t asn_MAP_PerQCIReportListItemFormat_tag2el_1[] = {
155 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qci */
156 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pDCPBytesDL */
157 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pDCPBytesUL */
159 asn_SEQUENCE_specifics_t asn_SPC_PerQCIReportListItemFormat_specs_1 = {
160 sizeof(struct PerQCIReportListItemFormat),
161 offsetof(struct PerQCIReportListItemFormat, _asn_ctx),
162 asn_MAP_PerQCIReportListItemFormat_tag2el_1,
163 3, /* Count of tags in the map */
164 asn_MAP_PerQCIReportListItemFormat_oms_1, /* Optional members */
165 2, 0, /* Root/Additions */
166 3, /* First extension addition */
168 asn_TYPE_descriptor_t asn_DEF_PerQCIReportListItemFormat = {
169 "PerQCIReportListItemFormat",
170 "PerQCIReportListItemFormat",
172 asn_DEF_PerQCIReportListItemFormat_tags_1,
173 sizeof(asn_DEF_PerQCIReportListItemFormat_tags_1)
174 /sizeof(asn_DEF_PerQCIReportListItemFormat_tags_1[0]), /* 1 */
175 asn_DEF_PerQCIReportListItemFormat_tags_1, /* Same as above */
176 sizeof(asn_DEF_PerQCIReportListItemFormat_tags_1)
177 /sizeof(asn_DEF_PerQCIReportListItemFormat_tags_1[0]), /* 1 */
178 { 0, 0, SEQUENCE_constraint },
179 asn_MBR_PerQCIReportListItemFormat_1,
180 3, /* Elements count */
181 &asn_SPC_PerQCIReportListItemFormat_specs_1 /* Additional specs */