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 "ProtectedResourceList-Item.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_intraPRBProtectedResourceFootprint_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
14 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
18 ASN__CTFAIL(app_key, td, sptr,
\r
19 "%s: value not given (%s:%d)",
\r
20 td->name, __FILE__, __LINE__);
\r
26 size = 8 * st->size - (st->bits_unused & 0x07);
\r
32 /* Constraint check succeeded */
\r
35 ASN__CTFAIL(app_key, td, sptr,
\r
36 "%s: constraint failed (%s:%d)",
\r
37 td->name, __FILE__, __LINE__);
\r
43 memb_protectedFootprintFrequencyPattern_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
44 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
45 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
49 ASN__CTFAIL(app_key, td, sptr,
\r
50 "%s: value not given (%s:%d)",
\r
51 td->name, __FILE__, __LINE__);
\r
57 size = 8 * st->size - (st->bits_unused & 0x07);
\r
62 if((size >= 6 && size <= 110)) {
\r
63 /* Constraint check succeeded */
\r
66 ASN__CTFAIL(app_key, td, sptr,
\r
67 "%s: constraint failed (%s:%d)",
\r
68 td->name, __FILE__, __LINE__);
\r
73 static asn_per_constraints_t asn_PER_memb_intraPRBProtectedResourceFootprint_constr_3 CC_NOTUSED = {
\r
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
75 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 84, 84 } /* (SIZE(84..84,...)) */,
\r
76 0, 0 /* No PER value map */
\r
78 static asn_per_constraints_t asn_PER_memb_protectedFootprintFrequencyPattern_constr_4 CC_NOTUSED = {
\r
79 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
80 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 6, 110 } /* (SIZE(6..110,...)) */,
\r
81 0, 0 /* No PER value map */
\r
83 asn_TYPE_member_t asn_MBR_ProtectedResourceList_Item_1[] = {
\r
84 { ATF_NOFLAGS, 0, offsetof(struct ProtectedResourceList_Item, resourceType),
\r
85 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
86 -1, /* IMPLICIT tag at current level */
\r
87 &asn_DEF_ResourceType,
\r
90 0, 0, /* No default value */
\r
93 { ATF_NOFLAGS, 0, offsetof(struct ProtectedResourceList_Item, intraPRBProtectedResourceFootprint),
\r
94 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
95 -1, /* IMPLICIT tag at current level */
\r
96 &asn_DEF_BIT_STRING,
\r
98 { 0, &asn_PER_memb_intraPRBProtectedResourceFootprint_constr_3, memb_intraPRBProtectedResourceFootprint_constraint_1 },
\r
99 0, 0, /* No default value */
\r
100 "intraPRBProtectedResourceFootprint"
\r
102 { ATF_NOFLAGS, 0, offsetof(struct ProtectedResourceList_Item, protectedFootprintFrequencyPattern),
\r
103 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
104 -1, /* IMPLICIT tag at current level */
\r
105 &asn_DEF_BIT_STRING,
\r
107 { 0, &asn_PER_memb_protectedFootprintFrequencyPattern_constr_4, memb_protectedFootprintFrequencyPattern_constraint_1 },
\r
108 0, 0, /* No default value */
\r
109 "protectedFootprintFrequencyPattern"
\r
111 { ATF_NOFLAGS, 0, offsetof(struct ProtectedResourceList_Item, protectedFootprintTimePattern),
\r
112 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
113 -1, /* IMPLICIT tag at current level */
\r
114 &asn_DEF_ProtectedFootprintTimePattern,
\r
117 0, 0, /* No default value */
\r
118 "protectedFootprintTimePattern"
\r
120 { ATF_POINTER, 1, offsetof(struct ProtectedResourceList_Item, iE_Extensions),
\r
121 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
\r
122 -1, /* IMPLICIT tag at current level */
\r
123 &asn_DEF_ProtocolExtensionContainer_8231P182,
\r
126 0, 0, /* No default value */
\r
130 static const int asn_MAP_ProtectedResourceList_Item_oms_1[] = { 4 };
\r
131 static const ber_tlv_tag_t asn_DEF_ProtectedResourceList_Item_tags_1[] = {
\r
132 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
134 static const asn_TYPE_tag2member_t asn_MAP_ProtectedResourceList_Item_tag2el_1[] = {
\r
135 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resourceType */
\r
136 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* intraPRBProtectedResourceFootprint */
\r
137 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protectedFootprintFrequencyPattern */
\r
138 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* protectedFootprintTimePattern */
\r
139 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
\r
141 asn_SEQUENCE_specifics_t asn_SPC_ProtectedResourceList_Item_specs_1 = {
\r
142 sizeof(struct ProtectedResourceList_Item),
\r
143 offsetof(struct ProtectedResourceList_Item, _asn_ctx),
\r
144 asn_MAP_ProtectedResourceList_Item_tag2el_1,
\r
145 5, /* Count of tags in the map */
\r
146 asn_MAP_ProtectedResourceList_Item_oms_1, /* Optional members */
\r
147 1, 0, /* Root/Additions */
\r
148 5, /* First extension addition */
\r
150 asn_TYPE_descriptor_t asn_DEF_ProtectedResourceList_Item = {
\r
151 "ProtectedResourceList-Item",
\r
152 "ProtectedResourceList-Item",
\r
154 asn_DEF_ProtectedResourceList_Item_tags_1,
\r
155 sizeof(asn_DEF_ProtectedResourceList_Item_tags_1)
\r
156 /sizeof(asn_DEF_ProtectedResourceList_Item_tags_1[0]), /* 1 */
\r
157 asn_DEF_ProtectedResourceList_Item_tags_1, /* Same as above */
\r
158 sizeof(asn_DEF_ProtectedResourceList_Item_tags_1)
\r
159 /sizeof(asn_DEF_ProtectedResourceList_Item_tags_1[0]), /* 1 */
\r
160 { 0, 0, SEQUENCE_constraint },
\r
161 asn_MBR_ProtectedResourceList_Item_1,
\r
162 5, /* Elements count */
\r
163 &asn_SPC_ProtectedResourceList_Item_specs_1 /* Additional specs */
\r