c04b3f6758e1a13ffbf301e900e3cf7caade703b
[o-du/l2.git] / src / codec_utils / RRC / UERadioAccessCapabilityInformation-IEs.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-InterNodeDefinitions"
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`
6  */
7
8 #include "UERadioAccessCapabilityInformation-IEs.h"
9
10 static int
11 memb_ue_RadioAccessCapabilityInfo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
14         
15         if(!sptr) {
16                 ASN__CTFAIL(app_key, td, sptr,
17                         "%s: value not given (%s:%d)",
18                         td->name, __FILE__, __LINE__);
19                 return -1;
20         }
21         
22         
23         if(1 /* No applicable constraints whatsoever */) {
24                 (void)st; /* Unused variable */
25                 /* Nothing is here. See below */
26         }
27         
28         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29 }
30
31 static asn_oer_constraints_t asn_OER_memb_ue_RadioAccessCapabilityInfo_constr_2 CC_NOTUSED = {
32         { 0, 0 },
33         -1      /* (SIZE(0..MAX)) */};
34 static asn_per_constraints_t asn_PER_memb_ue_RadioAccessCapabilityInfo_constr_2 CC_NOTUSED = {
35         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
36         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
37         0, 0    /* No PER value map */
38 };
39 static const ber_tlv_tag_t asn_DEF_nonCriticalExtension_tags_3[] = {
40         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
41         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
42 };
43 static asn_SEQUENCE_specifics_t asn_SPC_nonCriticalExtension_specs_3 = {
44         sizeof(struct UERadioAccessCapabilityInformation_IEs__nonCriticalExtension),
45         offsetof(struct UERadioAccessCapabilityInformation_IEs__nonCriticalExtension, _asn_ctx),
46         0,      /* No top level tags */
47         0,      /* No tags in the map */
48         0, 0, 0,        /* Optional elements (not needed) */
49         -1,     /* First extension addition */
50 };
51 static /* Use -fall-defs-global to expose */
52 asn_TYPE_descriptor_t asn_DEF_nonCriticalExtension_3 = {
53         "nonCriticalExtension",
54         "nonCriticalExtension",
55         &asn_OP_SEQUENCE,
56         asn_DEF_nonCriticalExtension_tags_3,
57         sizeof(asn_DEF_nonCriticalExtension_tags_3)
58                 /sizeof(asn_DEF_nonCriticalExtension_tags_3[0]) - 1, /* 1 */
59         asn_DEF_nonCriticalExtension_tags_3,    /* Same as above */
60         sizeof(asn_DEF_nonCriticalExtension_tags_3)
61                 /sizeof(asn_DEF_nonCriticalExtension_tags_3[0]), /* 2 */
62         { 0, 0, SEQUENCE_constraint },
63         0, 0,   /* No members */
64         &asn_SPC_nonCriticalExtension_specs_3   /* Additional specs */
65 };
66
67 asn_TYPE_member_t asn_MBR_UERadioAccessCapabilityInformation_IEs_1[] = {
68         { ATF_NOFLAGS, 0, offsetof(struct UERadioAccessCapabilityInformation_IEs, ue_RadioAccessCapabilityInfo),
69                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
70                 -1,     /* IMPLICIT tag at current level */
71                 &asn_DEF_OCTET_STRING,
72                 0,
73                 { &asn_OER_memb_ue_RadioAccessCapabilityInfo_constr_2, &asn_PER_memb_ue_RadioAccessCapabilityInfo_constr_2,  memb_ue_RadioAccessCapabilityInfo_constraint_1 },
74                 0, 0, /* No default value */
75                 "ue-RadioAccessCapabilityInfo"
76                 },
77         { ATF_POINTER, 1, offsetof(struct UERadioAccessCapabilityInformation_IEs, nonCriticalExtension),
78                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
79                 0,
80                 &asn_DEF_nonCriticalExtension_3,
81                 0,
82                 { 0, 0, 0 },
83                 0, 0, /* No default value */
84                 "nonCriticalExtension"
85                 },
86 };
87 static const int asn_MAP_UERadioAccessCapabilityInformation_IEs_oms_1[] = { 1 };
88 static const ber_tlv_tag_t asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1[] = {
89         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
90 };
91 static const asn_TYPE_tag2member_t asn_MAP_UERadioAccessCapabilityInformation_IEs_tag2el_1[] = {
92     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ue-RadioAccessCapabilityInfo */
93     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* nonCriticalExtension */
94 };
95 asn_SEQUENCE_specifics_t asn_SPC_UERadioAccessCapabilityInformation_IEs_specs_1 = {
96         sizeof(struct UERadioAccessCapabilityInformation_IEs),
97         offsetof(struct UERadioAccessCapabilityInformation_IEs, _asn_ctx),
98         asn_MAP_UERadioAccessCapabilityInformation_IEs_tag2el_1,
99         2,      /* Count of tags in the map */
100         asn_MAP_UERadioAccessCapabilityInformation_IEs_oms_1,   /* Optional members */
101         1, 0,   /* Root/Additions */
102         -1,     /* First extension addition */
103 };
104 asn_TYPE_descriptor_t asn_DEF_UERadioAccessCapabilityInformation_IEs = {
105         "UERadioAccessCapabilityInformation-IEs",
106         "UERadioAccessCapabilityInformation-IEs",
107         &asn_OP_SEQUENCE,
108         asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1,
109         sizeof(asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1)
110                 /sizeof(asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1[0]), /* 1 */
111         asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1,  /* Same as above */
112         sizeof(asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1)
113                 /sizeof(asn_DEF_UERadioAccessCapabilityInformation_IEs_tags_1[0]), /* 1 */
114         { 0, 0, SEQUENCE_constraint },
115         asn_MBR_UERadioAccessCapabilityInformation_IEs_1,
116         2,      /* Elements count */
117         &asn_SPC_UERadioAccessCapabilityInformation_IEs_specs_1 /* Additional specs */
118 };
119