[Epic-ID: ODUHIGH-462][Task-ID: ODUHIGH-472] Implementation of DL Harq Rtt timer...
[o-du/l2.git] / src / codec_utils / F1AP / SupportedSULFreqBandItem.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "F1AP-IEs"
4  *      found in "../F1.asn1"
5  *      `asn1c -D ../F1_output/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
6  */
7
8 #include "SupportedSULFreqBandItem.h"
9
10 #include "ProtocolExtensionContainer.h"
11 static int
12 memb_freqBandIndicatorNr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14         long value;
15         
16         if(!sptr) {
17                 ASN__CTFAIL(app_key, td, sptr,
18                         "%s: value not given (%s:%d)",
19                         td->name, __FILE__, __LINE__);
20                 return -1;
21         }
22         
23         value = *(const long *)sptr;
24         
25         if((value >= 1 && value <= 1024)) {
26                 /* Constraint check succeeded */
27                 return 0;
28         } else {
29                 ASN__CTFAIL(app_key, td, sptr,
30                         "%s: constraint failed (%s:%d)",
31                         td->name, __FILE__, __LINE__);
32                 return -1;
33         }
34 }
35
36 static asn_oer_constraints_t asn_OER_memb_freqBandIndicatorNr_constr_2 CC_NOTUSED = {
37         { 0, 0 },
38         -1};
39 static asn_per_constraints_t asn_PER_memb_freqBandIndicatorNr_constr_2 CC_NOTUSED = {
40         { APC_CONSTRAINED | APC_EXTENSIBLE,  10,  10,  1,  1024 }       /* (1..1024,...) */,
41         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
42         0, 0    /* No PER value map */
43 };
44 asn_TYPE_member_t asn_MBR_SupportedSULFreqBandItem_1[] = {
45         { ATF_NOFLAGS, 0, offsetof(struct SupportedSULFreqBandItem, freqBandIndicatorNr),
46                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
47                 -1,     /* IMPLICIT tag at current level */
48                 &asn_DEF_NativeInteger,
49                 0,
50                 { &asn_OER_memb_freqBandIndicatorNr_constr_2, &asn_PER_memb_freqBandIndicatorNr_constr_2,  memb_freqBandIndicatorNr_constraint_1 },
51                 0, 0, /* No default value */
52                 "freqBandIndicatorNr"
53                 },
54         { ATF_POINTER, 1, offsetof(struct SupportedSULFreqBandItem, iE_Extensions),
55                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
56                 -1,     /* IMPLICIT tag at current level */
57                 &asn_DEF_ProtocolExtensionContainer_4624P107,
58                 0,
59                 { 0, 0, 0 },
60                 0, 0, /* No default value */
61                 "iE-Extensions"
62                 },
63 };
64 static const int asn_MAP_SupportedSULFreqBandItem_oms_1[] = { 1 };
65 static const ber_tlv_tag_t asn_DEF_SupportedSULFreqBandItem_tags_1[] = {
66         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
67 };
68 static const asn_TYPE_tag2member_t asn_MAP_SupportedSULFreqBandItem_tag2el_1[] = {
69     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNr */
70     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */
71 };
72 asn_SEQUENCE_specifics_t asn_SPC_SupportedSULFreqBandItem_specs_1 = {
73         sizeof(struct SupportedSULFreqBandItem),
74         offsetof(struct SupportedSULFreqBandItem, _asn_ctx),
75         asn_MAP_SupportedSULFreqBandItem_tag2el_1,
76         2,      /* Count of tags in the map */
77         asn_MAP_SupportedSULFreqBandItem_oms_1, /* Optional members */
78         1, 0,   /* Root/Additions */
79         2,      /* First extension addition */
80 };
81 asn_TYPE_descriptor_t asn_DEF_SupportedSULFreqBandItem = {
82         "SupportedSULFreqBandItem",
83         "SupportedSULFreqBandItem",
84         &asn_OP_SEQUENCE,
85         asn_DEF_SupportedSULFreqBandItem_tags_1,
86         sizeof(asn_DEF_SupportedSULFreqBandItem_tags_1)
87                 /sizeof(asn_DEF_SupportedSULFreqBandItem_tags_1[0]), /* 1 */
88         asn_DEF_SupportedSULFreqBandItem_tags_1,        /* Same as above */
89         sizeof(asn_DEF_SupportedSULFreqBandItem_tags_1)
90                 /sizeof(asn_DEF_SupportedSULFreqBandItem_tags_1[0]), /* 1 */
91         { 0, 0, SEQUENCE_constraint },
92         asn_MBR_SupportedSULFreqBandItem_1,
93         2,      /* Elements count */
94         &asn_SPC_SupportedSULFreqBandItem_specs_1       /* Additional specs */
95 };
96