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 "UsableABSInformationFDD.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_usable_abs_pattern_info_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
42 static asn_per_constraints_t asn_PER_memb_usable_abs_pattern_info_constr_2 CC_NOTUSED = {
\r
43 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
44 { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
\r
45 0, 0 /* No PER value map */
\r
47 asn_TYPE_member_t asn_MBR_UsableABSInformationFDD_1[] = {
\r
48 { ATF_NOFLAGS, 0, offsetof(struct UsableABSInformationFDD, usable_abs_pattern_info),
\r
49 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
50 -1, /* IMPLICIT tag at current level */
\r
51 &asn_DEF_BIT_STRING,
\r
53 { 0, &asn_PER_memb_usable_abs_pattern_info_constr_2, memb_usable_abs_pattern_info_constraint_1 },
\r
54 0, 0, /* No default value */
\r
55 "usable-abs-pattern-info"
\r
57 { ATF_POINTER, 1, offsetof(struct UsableABSInformationFDD, iE_Extensions),
\r
58 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
59 -1, /* IMPLICIT tag at current level */
\r
60 &asn_DEF_ProtocolExtensionContainer_8231P218,
\r
63 0, 0, /* No default value */
\r
67 static const int asn_MAP_UsableABSInformationFDD_oms_1[] = { 1 };
\r
68 static const ber_tlv_tag_t asn_DEF_UsableABSInformationFDD_tags_1[] = {
\r
69 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
71 static const asn_TYPE_tag2member_t asn_MAP_UsableABSInformationFDD_tag2el_1[] = {
\r
72 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* usable-abs-pattern-info */
\r
73 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */
\r
75 asn_SEQUENCE_specifics_t asn_SPC_UsableABSInformationFDD_specs_1 = {
\r
76 sizeof(struct UsableABSInformationFDD),
\r
77 offsetof(struct UsableABSInformationFDD, _asn_ctx),
\r
78 asn_MAP_UsableABSInformationFDD_tag2el_1,
\r
79 2, /* Count of tags in the map */
\r
80 asn_MAP_UsableABSInformationFDD_oms_1, /* Optional members */
\r
81 1, 0, /* Root/Additions */
\r
82 2, /* First extension addition */
\r
84 asn_TYPE_descriptor_t asn_DEF_UsableABSInformationFDD = {
\r
85 "UsableABSInformationFDD",
\r
86 "UsableABSInformationFDD",
\r
88 asn_DEF_UsableABSInformationFDD_tags_1,
\r
89 sizeof(asn_DEF_UsableABSInformationFDD_tags_1)
\r
90 /sizeof(asn_DEF_UsableABSInformationFDD_tags_1[0]), /* 1 */
\r
91 asn_DEF_UsableABSInformationFDD_tags_1, /* Same as above */
\r
92 sizeof(asn_DEF_UsableABSInformationFDD_tags_1)
\r
93 /sizeof(asn_DEF_UsableABSInformationFDD_tags_1[0]), /* 1 */
\r
94 { 0, 0, SEQUENCE_constraint },
\r
95 asn_MBR_UsableABSInformationFDD_1,
\r
96 2, /* Elements count */
\r
97 &asn_SPC_UsableABSInformationFDD_specs_1 /* Additional specs */
\r