Updated INFO.yaml file
[ric-app/kpimon.git] / asn1c_defs / all-defs / CoMPHypothesisSetItem.c
1 /*\r
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
6  */\r
7 \r
8 #include "CoMPHypothesisSetItem.h"\r
9 \r
10 #include "ProtocolExtensionContainer.h"\r
11 static int\r
12 memb_coMPHypothesis_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
15         size_t size;\r
16         \r
17         if(!sptr) {\r
18                 ASN__CTFAIL(app_key, td, sptr,\r
19                         "%s: value not given (%s:%d)",\r
20                         td->name, __FILE__, __LINE__);\r
21                 return -1;\r
22         }\r
23         \r
24         if(st->size > 0) {\r
25                 /* Size in bits */\r
26                 size = 8 * st->size - (st->bits_unused & 0x07);\r
27         } else {\r
28                 size = 0;\r
29         }\r
30         \r
31         if((size >= 6 && size <= 4400)) {\r
32                 /* Constraint check succeeded */\r
33                 return 0;\r
34         } else {\r
35                 ASN__CTFAIL(app_key, td, sptr,\r
36                         "%s: constraint failed (%s:%d)",\r
37                         td->name, __FILE__, __LINE__);\r
38                 return -1;\r
39         }\r
40 }\r
41 \r
42 static asn_per_constraints_t asn_PER_memb_coMPHypothesis_constr_3 CC_NOTUSED = {\r
43         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
44         { APC_CONSTRAINED | APC_EXTENSIBLE,  13,  13,  6,  4400 }       /* (SIZE(6..4400,...)) */,\r
45         0, 0    /* No PER value map */\r
46 };\r
47 asn_TYPE_member_t asn_MBR_CoMPHypothesisSetItem_1[] = {\r
48         { ATF_NOFLAGS, 0, offsetof(struct CoMPHypothesisSetItem, coMPCellID),\r
49                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
50                 -1,     /* IMPLICIT tag at current level */\r
51                 &asn_DEF_ECGI,\r
52                 0,\r
53                 { 0, 0, 0 },\r
54                 0, 0, /* No default value */\r
55                 "coMPCellID"\r
56                 },\r
57         { ATF_NOFLAGS, 0, offsetof(struct CoMPHypothesisSetItem, coMPHypothesis),\r
58                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
59                 -1,     /* IMPLICIT tag at current level */\r
60                 &asn_DEF_BIT_STRING,\r
61                 0,\r
62                 { 0, &asn_PER_memb_coMPHypothesis_constr_3,  memb_coMPHypothesis_constraint_1 },\r
63                 0, 0, /* No default value */\r
64                 "coMPHypothesis"\r
65                 },\r
66         { ATF_POINTER, 1, offsetof(struct CoMPHypothesisSetItem, iE_Extensions),\r
67                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
68                 -1,     /* IMPLICIT tag at current level */\r
69                 &asn_DEF_ProtocolExtensionContainer_8231P117,\r
70                 0,\r
71                 { 0, 0, 0 },\r
72                 0, 0, /* No default value */\r
73                 "iE-Extensions"\r
74                 },\r
75 };\r
76 static const int asn_MAP_CoMPHypothesisSetItem_oms_1[] = { 2 };\r
77 static const ber_tlv_tag_t asn_DEF_CoMPHypothesisSetItem_tags_1[] = {\r
78         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
79 };\r
80 static const asn_TYPE_tag2member_t asn_MAP_CoMPHypothesisSetItem_tag2el_1[] = {\r
81     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* coMPCellID */\r
82     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* coMPHypothesis */\r
83     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */\r
84 };\r
85 asn_SEQUENCE_specifics_t asn_SPC_CoMPHypothesisSetItem_specs_1 = {\r
86         sizeof(struct CoMPHypothesisSetItem),\r
87         offsetof(struct CoMPHypothesisSetItem, _asn_ctx),\r
88         asn_MAP_CoMPHypothesisSetItem_tag2el_1,\r
89         3,      /* Count of tags in the map */\r
90         asn_MAP_CoMPHypothesisSetItem_oms_1,    /* Optional members */\r
91         1, 0,   /* Root/Additions */\r
92         3,      /* First extension addition */\r
93 };\r
94 asn_TYPE_descriptor_t asn_DEF_CoMPHypothesisSetItem = {\r
95         "CoMPHypothesisSetItem",\r
96         "CoMPHypothesisSetItem",\r
97         &asn_OP_SEQUENCE,\r
98         asn_DEF_CoMPHypothesisSetItem_tags_1,\r
99         sizeof(asn_DEF_CoMPHypothesisSetItem_tags_1)\r
100                 /sizeof(asn_DEF_CoMPHypothesisSetItem_tags_1[0]), /* 1 */\r
101         asn_DEF_CoMPHypothesisSetItem_tags_1,   /* Same as above */\r
102         sizeof(asn_DEF_CoMPHypothesisSetItem_tags_1)\r
103                 /sizeof(asn_DEF_CoMPHypothesisSetItem_tags_1[0]), /* 1 */\r
104         { 0, 0, SEQUENCE_constraint },\r
105         asn_MBR_CoMPHypothesisSetItem_1,\r
106         3,      /* Elements count */\r
107         &asn_SPC_CoMPHypothesisSetItem_specs_1  /* Additional specs */\r
108 };\r
109 \r