Updated INFO.yaml file
[ric-app/kpimon.git] / asn1c_defs / all-defs / SULInformation.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 "SULInformation.h"\r
9 \r
10 #include "ProtocolExtensionContainer.h"\r
11 static int\r
12 memb_sUL_ARFCN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
13                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
14         long value;\r
15         \r
16         if(!sptr) {\r
17                 ASN__CTFAIL(app_key, td, sptr,\r
18                         "%s: value not given (%s:%d)",\r
19                         td->name, __FILE__, __LINE__);\r
20                 return -1;\r
21         }\r
22         \r
23         value = *(const long *)sptr;\r
24         \r
25         if((value >= 0 && value <= 3279165)) {\r
26                 /* Constraint check succeeded */\r
27                 return 0;\r
28         } else {\r
29                 ASN__CTFAIL(app_key, td, sptr,\r
30                         "%s: constraint failed (%s:%d)",\r
31                         td->name, __FILE__, __LINE__);\r
32                 return -1;\r
33         }\r
34 }\r
35 \r
36 static asn_per_constraints_t asn_PER_memb_sUL_ARFCN_constr_2 CC_NOTUSED = {\r
37         { APC_CONSTRAINED,       22, -1,  0,  3279165 } /* (0..3279165) */,\r
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
39         0, 0    /* No PER value map */\r
40 };\r
41 asn_TYPE_member_t asn_MBR_SULInformation_1[] = {\r
42         { ATF_NOFLAGS, 0, offsetof(struct SULInformation, sUL_ARFCN),\r
43                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
44                 -1,     /* IMPLICIT tag at current level */\r
45                 &asn_DEF_NativeInteger,\r
46                 0,\r
47                 { 0, &asn_PER_memb_sUL_ARFCN_constr_2,  memb_sUL_ARFCN_constraint_1 },\r
48                 0, 0, /* No default value */\r
49                 "sUL-ARFCN"\r
50                 },\r
51         { ATF_NOFLAGS, 0, offsetof(struct SULInformation, sUL_TxBW),\r
52                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
53                 -1,     /* IMPLICIT tag at current level */\r
54                 &asn_DEF_NR_TxBW,\r
55                 0,\r
56                 { 0, 0, 0 },\r
57                 0, 0, /* No default value */\r
58                 "sUL-TxBW"\r
59                 },\r
60         { ATF_POINTER, 1, offsetof(struct SULInformation, iE_Extensions),\r
61                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
62                 -1,     /* IMPLICIT tag at current level */\r
63                 &asn_DEF_ProtocolExtensionContainer_8231P199,\r
64                 0,\r
65                 { 0, 0, 0 },\r
66                 0, 0, /* No default value */\r
67                 "iE-Extensions"\r
68                 },\r
69 };\r
70 static const int asn_MAP_SULInformation_oms_1[] = { 2 };\r
71 static const ber_tlv_tag_t asn_DEF_SULInformation_tags_1[] = {\r
72         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
73 };\r
74 static const asn_TYPE_tag2member_t asn_MAP_SULInformation_tag2el_1[] = {\r
75     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sUL-ARFCN */\r
76     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sUL-TxBW */\r
77     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */\r
78 };\r
79 asn_SEQUENCE_specifics_t asn_SPC_SULInformation_specs_1 = {\r
80         sizeof(struct SULInformation),\r
81         offsetof(struct SULInformation, _asn_ctx),\r
82         asn_MAP_SULInformation_tag2el_1,\r
83         3,      /* Count of tags in the map */\r
84         asn_MAP_SULInformation_oms_1,   /* Optional members */\r
85         1, 0,   /* Root/Additions */\r
86         3,      /* First extension addition */\r
87 };\r
88 asn_TYPE_descriptor_t asn_DEF_SULInformation = {\r
89         "SULInformation",\r
90         "SULInformation",\r
91         &asn_OP_SEQUENCE,\r
92         asn_DEF_SULInformation_tags_1,\r
93         sizeof(asn_DEF_SULInformation_tags_1)\r
94                 /sizeof(asn_DEF_SULInformation_tags_1[0]), /* 1 */\r
95         asn_DEF_SULInformation_tags_1,  /* Same as above */\r
96         sizeof(asn_DEF_SULInformation_tags_1)\r
97                 /sizeof(asn_DEF_SULInformation_tags_1[0]), /* 1 */\r
98         { 0, 0, SEQUENCE_constraint },\r
99         asn_MBR_SULInformation_1,\r
100         3,      /* Elements count */\r
101         &asn_SPC_SULInformation_specs_1 /* Additional specs */\r
102 };\r
103 \r