Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "X2AP-PDU-Contents" |
| 4 | * found in "Spec/e2ap-v031ex.asn" |
| 5 | * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER` |
| 6 | */ |
| 7 | |
| 8 | #include "E-RABs-SubjectToCounterCheckItem.h" |
| 9 | |
| 10 | #include "ProtocolExtensionContainer.h" |
| 11 | static int |
| 12 | uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 13 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 14 | |
| 15 | if(!sptr) { |
| 16 | ASN__CTFAIL(app_key, td, sptr, |
| 17 | "%s: value not given (%s:%d)", |
| 18 | td->name, __FILE__, __LINE__); |
| 19 | return -1; |
| 20 | } |
| 21 | |
| 22 | |
| 23 | /* Constraint check succeeded */ |
| 24 | return 0; |
| 25 | } |
| 26 | |
| 27 | /* |
| 28 | * This type is implemented using NativeInteger, |
| 29 | * so here we adjust the DEF accordingly. |
| 30 | */ |
| 31 | static int |
| 32 | dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 33 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 34 | |
| 35 | if(!sptr) { |
| 36 | ASN__CTFAIL(app_key, td, sptr, |
| 37 | "%s: value not given (%s:%d)", |
| 38 | td->name, __FILE__, __LINE__); |
| 39 | return -1; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | /* Constraint check succeeded */ |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | /* |
| 48 | * This type is implemented using NativeInteger, |
| 49 | * so here we adjust the DEF accordingly. |
| 50 | */ |
| 51 | static int |
| 52 | memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 53 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 54 | |
| 55 | if(!sptr) { |
| 56 | ASN__CTFAIL(app_key, td, sptr, |
| 57 | "%s: value not given (%s:%d)", |
| 58 | td->name, __FILE__, __LINE__); |
| 59 | return -1; |
| 60 | } |
| 61 | |
| 62 | |
| 63 | /* Constraint check succeeded */ |
| 64 | return 0; |
| 65 | } |
| 66 | |
| 67 | static int |
| 68 | memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 69 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 70 | |
| 71 | if(!sptr) { |
| 72 | ASN__CTFAIL(app_key, td, sptr, |
| 73 | "%s: value not given (%s:%d)", |
| 74 | td->name, __FILE__, __LINE__); |
| 75 | return -1; |
| 76 | } |
| 77 | |
| 78 | |
| 79 | /* Constraint check succeeded */ |
| 80 | return 0; |
| 81 | } |
| 82 | |
| 83 | static asn_oer_constraints_t asn_OER_type_uL_Count_constr_3 CC_NOTUSED = { |
| 84 | { 4, 1 } /* (0..4294967295) */, |
| 85 | -1}; |
| 86 | static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = { |
| 87 | { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, |
| 88 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 89 | 0, 0 /* No PER value map */ |
| 90 | }; |
| 91 | static asn_oer_constraints_t asn_OER_type_dL_Count_constr_4 CC_NOTUSED = { |
| 92 | { 4, 1 } /* (0..4294967295) */, |
| 93 | -1}; |
| 94 | static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = { |
| 95 | { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, |
| 96 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 97 | 0, 0 /* No PER value map */ |
| 98 | }; |
| 99 | static asn_oer_constraints_t asn_OER_memb_uL_Count_constr_3 CC_NOTUSED = { |
| 100 | { 4, 1 } /* (0..4294967295) */, |
| 101 | -1}; |
| 102 | static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = { |
| 103 | { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, |
| 104 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 105 | 0, 0 /* No PER value map */ |
| 106 | }; |
| 107 | static asn_oer_constraints_t asn_OER_memb_dL_Count_constr_4 CC_NOTUSED = { |
| 108 | { 4, 1 } /* (0..4294967295) */, |
| 109 | -1}; |
| 110 | static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = { |
| 111 | { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */, |
| 112 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 113 | 0, 0 /* No PER value map */ |
| 114 | }; |
| 115 | static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = { |
| 116 | 0, 0, 0, 0, 0, |
| 117 | 0, /* Native long size */ |
| 118 | 1 /* Unsigned representation */ |
| 119 | }; |
| 120 | static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = { |
| 121 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 122 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 123 | }; |
| 124 | static /* Use -fall-defs-global to expose */ |
| 125 | asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = { |
| 126 | "uL-Count", |
| 127 | "uL-Count", |
| 128 | &asn_OP_NativeInteger, |
| 129 | asn_DEF_uL_Count_tags_3, |
| 130 | sizeof(asn_DEF_uL_Count_tags_3) |
| 131 | /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */ |
| 132 | asn_DEF_uL_Count_tags_3, /* Same as above */ |
| 133 | sizeof(asn_DEF_uL_Count_tags_3) |
| 134 | /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */ |
| 135 | { &asn_OER_type_uL_Count_constr_3, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint }, |
| 136 | 0, 0, /* No members */ |
| 137 | &asn_SPC_uL_Count_specs_3 /* Additional specs */ |
| 138 | }; |
| 139 | |
| 140 | static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = { |
| 141 | 0, 0, 0, 0, 0, |
| 142 | 0, /* Native long size */ |
| 143 | 1 /* Unsigned representation */ |
| 144 | }; |
| 145 | static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = { |
| 146 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 147 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 148 | }; |
| 149 | static /* Use -fall-defs-global to expose */ |
| 150 | asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = { |
| 151 | "dL-Count", |
| 152 | "dL-Count", |
| 153 | &asn_OP_NativeInteger, |
| 154 | asn_DEF_dL_Count_tags_4, |
| 155 | sizeof(asn_DEF_dL_Count_tags_4) |
| 156 | /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */ |
| 157 | asn_DEF_dL_Count_tags_4, /* Same as above */ |
| 158 | sizeof(asn_DEF_dL_Count_tags_4) |
| 159 | /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */ |
| 160 | { &asn_OER_type_dL_Count_constr_4, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint }, |
| 161 | 0, 0, /* No members */ |
| 162 | &asn_SPC_dL_Count_specs_4 /* Additional specs */ |
| 163 | }; |
| 164 | |
| 165 | static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToCounterCheckItem_1[] = { |
| 166 | { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, e_RAB_ID), |
| 167 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 168 | -1, /* IMPLICIT tag at current level */ |
| 169 | &asn_DEF_E_RAB_ID, |
| 170 | 0, |
| 171 | { 0, 0, 0 }, |
| 172 | 0, 0, /* No default value */ |
| 173 | "e-RAB-ID" |
| 174 | }, |
| 175 | { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, uL_Count), |
| 176 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 177 | -1, /* IMPLICIT tag at current level */ |
| 178 | &asn_DEF_uL_Count_3, |
| 179 | 0, |
| 180 | { &asn_OER_memb_uL_Count_constr_3, &asn_PER_memb_uL_Count_constr_3, memb_uL_Count_constraint_1 }, |
| 181 | 0, 0, /* No default value */ |
| 182 | "uL-Count" |
| 183 | }, |
| 184 | { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, dL_Count), |
| 185 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 186 | -1, /* IMPLICIT tag at current level */ |
| 187 | &asn_DEF_dL_Count_4, |
| 188 | 0, |
| 189 | { &asn_OER_memb_dL_Count_constr_4, &asn_PER_memb_dL_Count_constr_4, memb_dL_Count_constraint_1 }, |
| 190 | 0, 0, /* No default value */ |
| 191 | "dL-Count" |
| 192 | }, |
| 193 | { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToCounterCheckItem, iE_Extensions), |
| 194 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 195 | -1, /* IMPLICIT tag at current level */ |
| 196 | &asn_DEF_ProtocolExtensionContainer_9566P41, |
| 197 | 0, |
| 198 | { 0, 0, 0 }, |
| 199 | 0, 0, /* No default value */ |
| 200 | "iE-Extensions" |
| 201 | }, |
| 202 | }; |
| 203 | static const int asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1[] = { 3 }; |
| 204 | static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[] = { |
| 205 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 206 | }; |
| 207 | static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1[] = { |
| 208 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */ |
| 209 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */ |
| 210 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */ |
| 211 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ |
| 212 | }; |
| 213 | static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 = { |
| 214 | sizeof(struct E_RABs_SubjectToCounterCheckItem), |
| 215 | offsetof(struct E_RABs_SubjectToCounterCheckItem, _asn_ctx), |
| 216 | asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1, |
| 217 | 4, /* Count of tags in the map */ |
| 218 | asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1, /* Optional members */ |
| 219 | 1, 0, /* Root/Additions */ |
| 220 | 4, /* First extension addition */ |
| 221 | }; |
| 222 | asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToCounterCheckItem = { |
| 223 | "E-RABs-SubjectToCounterCheckItem", |
| 224 | "E-RABs-SubjectToCounterCheckItem", |
| 225 | &asn_OP_SEQUENCE, |
| 226 | asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1, |
| 227 | sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1) |
| 228 | /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */ |
| 229 | asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1, /* Same as above */ |
| 230 | sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1) |
| 231 | /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */ |
| 232 | { 0, 0, SEQUENCE_constraint }, |
| 233 | asn_MBR_E_RABs_SubjectToCounterCheckItem_1, |
| 234 | 4, /* Elements count */ |
| 235 | &asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 /* Additional specs */ |
| 236 | }; |
| 237 | |