2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5 * `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "CSI-SSB-ResourceSet.h"
11 memb_csi_SSB_ResourceList_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 /* Determine the number of elements */
23 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
25 if((size >= 1 && size <= 64)) {
26 /* Perform validation of the inner elements */
27 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
36 static asn_oer_constraints_t asn_OER_type_csi_SSB_ResourceList_constr_3 CC_NOTUSED = {
38 -1 /* (SIZE(1..64)) */};
39 static asn_per_constraints_t asn_PER_type_csi_SSB_ResourceList_constr_3 CC_NOTUSED = {
40 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
41 { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */,
42 0, 0 /* No PER value map */
44 static asn_oer_constraints_t asn_OER_memb_csi_SSB_ResourceList_constr_3 CC_NOTUSED = {
46 -1 /* (SIZE(1..64)) */};
47 static asn_per_constraints_t asn_PER_memb_csi_SSB_ResourceList_constr_3 CC_NOTUSED = {
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
49 { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */,
50 0, 0 /* No PER value map */
52 static asn_TYPE_member_t asn_MBR_csi_SSB_ResourceList_3[] = {
54 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
59 0, 0, /* No default value */
63 static const ber_tlv_tag_t asn_DEF_csi_SSB_ResourceList_tags_3[] = {
64 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
65 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
67 static asn_SET_OF_specifics_t asn_SPC_csi_SSB_ResourceList_specs_3 = {
68 sizeof(struct CSI_SSB_ResourceSet__csi_SSB_ResourceList),
69 offsetof(struct CSI_SSB_ResourceSet__csi_SSB_ResourceList, _asn_ctx),
70 0, /* XER encoding is XMLDelimitedItemList */
72 static /* Use -fall-defs-global to expose */
73 asn_TYPE_descriptor_t asn_DEF_csi_SSB_ResourceList_3 = {
74 "csi-SSB-ResourceList",
75 "csi-SSB-ResourceList",
77 asn_DEF_csi_SSB_ResourceList_tags_3,
78 sizeof(asn_DEF_csi_SSB_ResourceList_tags_3)
79 /sizeof(asn_DEF_csi_SSB_ResourceList_tags_3[0]) - 1, /* 1 */
80 asn_DEF_csi_SSB_ResourceList_tags_3, /* Same as above */
81 sizeof(asn_DEF_csi_SSB_ResourceList_tags_3)
82 /sizeof(asn_DEF_csi_SSB_ResourceList_tags_3[0]), /* 2 */
83 { &asn_OER_type_csi_SSB_ResourceList_constr_3, &asn_PER_type_csi_SSB_ResourceList_constr_3, SEQUENCE_OF_constraint },
84 asn_MBR_csi_SSB_ResourceList_3,
85 1, /* Single element */
86 &asn_SPC_csi_SSB_ResourceList_specs_3 /* Additional specs */
89 asn_TYPE_member_t asn_MBR_CSI_SSB_ResourceSet_1[] = {
90 { ATF_NOFLAGS, 0, offsetof(struct CSI_SSB_ResourceSet, csi_SSB_ResourceSetId),
91 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
92 -1, /* IMPLICIT tag at current level */
93 &asn_DEF_CSI_SSB_ResourceSetId,
96 0, 0, /* No default value */
97 "csi-SSB-ResourceSetId"
99 { ATF_NOFLAGS, 0, offsetof(struct CSI_SSB_ResourceSet, csi_SSB_ResourceList),
100 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
102 &asn_DEF_csi_SSB_ResourceList_3,
104 { &asn_OER_memb_csi_SSB_ResourceList_constr_3, &asn_PER_memb_csi_SSB_ResourceList_constr_3, memb_csi_SSB_ResourceList_constraint_1 },
105 0, 0, /* No default value */
106 "csi-SSB-ResourceList"
109 static const ber_tlv_tag_t asn_DEF_CSI_SSB_ResourceSet_tags_1[] = {
110 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
112 static const asn_TYPE_tag2member_t asn_MAP_CSI_SSB_ResourceSet_tag2el_1[] = {
113 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* csi-SSB-ResourceSetId */
114 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-SSB-ResourceList */
116 asn_SEQUENCE_specifics_t asn_SPC_CSI_SSB_ResourceSet_specs_1 = {
117 sizeof(struct CSI_SSB_ResourceSet),
118 offsetof(struct CSI_SSB_ResourceSet, _asn_ctx),
119 asn_MAP_CSI_SSB_ResourceSet_tag2el_1,
120 2, /* Count of tags in the map */
121 0, 0, 0, /* Optional elements (not needed) */
122 2, /* First extension addition */
124 asn_TYPE_descriptor_t asn_DEF_CSI_SSB_ResourceSet = {
125 "CSI-SSB-ResourceSet",
126 "CSI-SSB-ResourceSet",
128 asn_DEF_CSI_SSB_ResourceSet_tags_1,
129 sizeof(asn_DEF_CSI_SSB_ResourceSet_tags_1)
130 /sizeof(asn_DEF_CSI_SSB_ResourceSet_tags_1[0]), /* 1 */
131 asn_DEF_CSI_SSB_ResourceSet_tags_1, /* Same as above */
132 sizeof(asn_DEF_CSI_SSB_ResourceSet_tags_1)
133 /sizeof(asn_DEF_CSI_SSB_ResourceSet_tags_1[0]), /* 1 */
134 { 0, 0, SEQUENCE_constraint },
135 asn_MBR_CSI_SSB_ResourceSet_1,
136 2, /* Elements count */
137 &asn_SPC_CSI_SSB_ResourceSet_specs_1 /* Additional specs */