2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-IEs"
4 * found in "/home/rshacham/e2sm-kpm-v01.02.asn"
5 * `asn1c -fcompound-names`
8 #include "FGC-CUUP-PM-Format.h"
11 memb_sliceToReportList_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 <= 1024)) {
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_sliceToReportList_constr_2 CC_NOTUSED = {
38 -1 /* (SIZE(1..1024)) */};
39 static asn_per_constraints_t asn_PER_type_sliceToReportList_constr_2 CC_NOTUSED = {
40 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
41 { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */,
42 0, 0 /* No PER value map */
44 static asn_oer_constraints_t asn_OER_memb_sliceToReportList_constr_2 CC_NOTUSED = {
46 -1 /* (SIZE(1..1024)) */};
47 static asn_per_constraints_t asn_PER_memb_sliceToReportList_constr_2 CC_NOTUSED = {
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
49 { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */,
50 0, 0 /* No PER value map */
52 static asn_TYPE_member_t asn_MBR_sliceToReportList_2[] = {
54 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
56 &asn_DEF_SliceToReportListItem,
59 0, 0, /* No default value */
63 static const ber_tlv_tag_t asn_DEF_sliceToReportList_tags_2[] = {
64 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
65 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
67 static asn_SET_OF_specifics_t asn_SPC_sliceToReportList_specs_2 = {
68 sizeof(struct FGC_CUUP_PM_Format__sliceToReportList),
69 offsetof(struct FGC_CUUP_PM_Format__sliceToReportList, _asn_ctx),
70 0, /* XER encoding is XMLDelimitedItemList */
72 static /* Use -fall-defs-global to expose */
73 asn_TYPE_descriptor_t asn_DEF_sliceToReportList_2 = {
77 asn_DEF_sliceToReportList_tags_2,
78 sizeof(asn_DEF_sliceToReportList_tags_2)
79 /sizeof(asn_DEF_sliceToReportList_tags_2[0]) - 1, /* 1 */
80 asn_DEF_sliceToReportList_tags_2, /* Same as above */
81 sizeof(asn_DEF_sliceToReportList_tags_2)
82 /sizeof(asn_DEF_sliceToReportList_tags_2[0]), /* 2 */
83 { &asn_OER_type_sliceToReportList_constr_2, &asn_PER_type_sliceToReportList_constr_2, SEQUENCE_OF_constraint },
84 asn_MBR_sliceToReportList_2,
85 1, /* Single element */
86 &asn_SPC_sliceToReportList_specs_2 /* Additional specs */
89 asn_TYPE_member_t asn_MBR_FGC_CUUP_PM_Format_1[] = {
90 { ATF_NOFLAGS, 0, offsetof(struct FGC_CUUP_PM_Format, sliceToReportList),
91 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
93 &asn_DEF_sliceToReportList_2,
95 { &asn_OER_memb_sliceToReportList_constr_2, &asn_PER_memb_sliceToReportList_constr_2, memb_sliceToReportList_constraint_1 },
96 0, 0, /* No default value */
100 static const ber_tlv_tag_t asn_DEF_FGC_CUUP_PM_Format_tags_1[] = {
101 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
103 static const asn_TYPE_tag2member_t asn_MAP_FGC_CUUP_PM_Format_tag2el_1[] = {
104 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* sliceToReportList */
106 asn_SEQUENCE_specifics_t asn_SPC_FGC_CUUP_PM_Format_specs_1 = {
107 sizeof(struct FGC_CUUP_PM_Format),
108 offsetof(struct FGC_CUUP_PM_Format, _asn_ctx),
109 asn_MAP_FGC_CUUP_PM_Format_tag2el_1,
110 1, /* Count of tags in the map */
111 0, 0, 0, /* Optional elements (not needed) */
112 1, /* First extension addition */
114 asn_TYPE_descriptor_t asn_DEF_FGC_CUUP_PM_Format = {
115 "FGC-CUUP-PM-Format",
116 "FGC-CUUP-PM-Format",
118 asn_DEF_FGC_CUUP_PM_Format_tags_1,
119 sizeof(asn_DEF_FGC_CUUP_PM_Format_tags_1)
120 /sizeof(asn_DEF_FGC_CUUP_PM_Format_tags_1[0]), /* 1 */
121 asn_DEF_FGC_CUUP_PM_Format_tags_1, /* Same as above */
122 sizeof(asn_DEF_FGC_CUUP_PM_Format_tags_1)
123 /sizeof(asn_DEF_FGC_CUUP_PM_Format_tags_1[0]), /* 1 */
124 { 0, 0, SEQUENCE_constraint },
125 asn_MBR_FGC_CUUP_PM_Format_1,
126 1, /* Elements count */
127 &asn_SPC_FGC_CUUP_PM_Format_specs_1 /* Additional specs */