blob: e875ee200ffcc9091b800a4d30e01e4cd3b22a93 [file] [log] [blame]
rajalakshmisv21b61dd2021-12-07 04:53:03 +00001/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-RC"
4 * found in "e2sm-kpm-rc.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .`
6 */
7
8#include "FQIPERSlicesPerPlmnListItem.h"
9
10static int
11memb_pDCPBytesDL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const INTEGER_t *st = (const INTEGER_t *)sptr;
14 long value;
15
16 if(!sptr) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
20 return -1;
21 }
22
23 if(asn_INTEGER2long(st, &value)) {
24 ASN__CTFAIL(app_key, td, sptr,
25 "%s: value too large (%s:%d)",
26 td->name, __FILE__, __LINE__);
27 return -1;
28 }
29
30 if((value >= 0 && value <= 10000000000)) {
31 /* Constraint check succeeded */
32 return 0;
33 } else {
34 ASN__CTFAIL(app_key, td, sptr,
35 "%s: constraint failed (%s:%d)",
36 td->name, __FILE__, __LINE__);
37 return -1;
38 }
39}
40
41static int
42memb_pDCPBytesUL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
43 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44 const INTEGER_t *st = (const INTEGER_t *)sptr;
45 long value;
46
47 if(!sptr) {
48 ASN__CTFAIL(app_key, td, sptr,
49 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
51 return -1;
52 }
53
54 if(asn_INTEGER2long(st, &value)) {
55 ASN__CTFAIL(app_key, td, sptr,
56 "%s: value too large (%s:%d)",
57 td->name, __FILE__, __LINE__);
58 return -1;
59 }
60
61 if((value >= 0 && value <= 10000000000)) {
62 /* Constraint check succeeded */
63 return 0;
64 } else {
65 ASN__CTFAIL(app_key, td, sptr,
66 "%s: constraint failed (%s:%d)",
67 td->name, __FILE__, __LINE__);
68 return -1;
69 }
70}
71
72static asn_oer_constraints_t asn_OER_memb_pDCPBytesDL_constr_3 CC_NOTUSED = {
73 { 0, 0 },
74 -1};
75static asn_per_constraints_t asn_PER_memb_pDCPBytesDL_constr_3 CC_NOTUSED = {
76 { APC_CONSTRAINED | APC_EXTENSIBLE, 34, -1, 0, 10000000000 } /* (0..10000000000,...) */,
77 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
78 0, 0 /* No PER value map */
79};
80static asn_oer_constraints_t asn_OER_memb_pDCPBytesUL_constr_4 CC_NOTUSED = {
81 { 0, 0 },
82 -1};
83static asn_per_constraints_t asn_PER_memb_pDCPBytesUL_constr_4 CC_NOTUSED = {
84 { APC_CONSTRAINED | APC_EXTENSIBLE, 34, -1, 0, 10000000000 } /* (0..10000000000,...) */,
85 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
86 0, 0 /* No PER value map */
87};
88asn_TYPE_member_t asn_MBR_FQIPERSlicesPerPlmnListItem_1[] = {
89 { ATF_NOFLAGS, 0, offsetof(struct FQIPERSlicesPerPlmnListItem, fiveQI),
90 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
91 -1, /* IMPLICIT tag at current level */
92 &asn_DEF_FiveQI,
93 0,
94 { 0, 0, 0 },
95 0, 0, /* No default value */
96 "fiveQI"
97 },
98 { ATF_POINTER, 2, offsetof(struct FQIPERSlicesPerPlmnListItem, pDCPBytesDL),
99 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
100 -1, /* IMPLICIT tag at current level */
101 &asn_DEF_INTEGER,
102 0,
103 { &asn_OER_memb_pDCPBytesDL_constr_3, &asn_PER_memb_pDCPBytesDL_constr_3, memb_pDCPBytesDL_constraint_1 },
104 0, 0, /* No default value */
105 "pDCPBytesDL"
106 },
107 { ATF_POINTER, 1, offsetof(struct FQIPERSlicesPerPlmnListItem, pDCPBytesUL),
108 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
109 -1, /* IMPLICIT tag at current level */
110 &asn_DEF_INTEGER,
111 0,
112 { &asn_OER_memb_pDCPBytesUL_constr_4, &asn_PER_memb_pDCPBytesUL_constr_4, memb_pDCPBytesUL_constraint_1 },
113 0, 0, /* No default value */
114 "pDCPBytesUL"
115 },
116};
117static const int asn_MAP_FQIPERSlicesPerPlmnListItem_oms_1[] = { 1, 2 };
118static const ber_tlv_tag_t asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1[] = {
119 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
120};
121static const asn_TYPE_tag2member_t asn_MAP_FQIPERSlicesPerPlmnListItem_tag2el_1[] = {
122 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fiveQI */
123 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pDCPBytesDL */
124 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pDCPBytesUL */
125};
126asn_SEQUENCE_specifics_t asn_SPC_FQIPERSlicesPerPlmnListItem_specs_1 = {
127 sizeof(struct FQIPERSlicesPerPlmnListItem),
128 offsetof(struct FQIPERSlicesPerPlmnListItem, _asn_ctx),
129 asn_MAP_FQIPERSlicesPerPlmnListItem_tag2el_1,
130 3, /* Count of tags in the map */
131 asn_MAP_FQIPERSlicesPerPlmnListItem_oms_1, /* Optional members */
132 2, 0, /* Root/Additions */
133 3, /* First extension addition */
134};
135asn_TYPE_descriptor_t asn_DEF_FQIPERSlicesPerPlmnListItem = {
136 "FQIPERSlicesPerPlmnListItem",
137 "FQIPERSlicesPerPlmnListItem",
138 &asn_OP_SEQUENCE,
139 asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1,
140 sizeof(asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1)
141 /sizeof(asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1[0]), /* 1 */
142 asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1, /* Same as above */
143 sizeof(asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1)
144 /sizeof(asn_DEF_FQIPERSlicesPerPlmnListItem_tags_1[0]), /* 1 */
145 { 0, 0, SEQUENCE_constraint },
146 asn_MBR_FQIPERSlicesPerPlmnListItem_1,
147 3, /* Elements count */
148 &asn_SPC_FQIPERSlicesPerPlmnListItem_specs_1 /* Additional specs */
149};
150