[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / PDSCH-CodeBlockGroupTransmission.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "./22April22_Paging/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./22April22_Paging -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "PDSCH-CodeBlockGroupTransmission.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_maxCodeBlockGroupsPerTransportBlock_constr_2 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_maxCodeBlockGroupsPerTransportBlock_constr_2 CC_NOTUSED = {
18         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static const asn_INTEGER_enum_map_t asn_MAP_maxCodeBlockGroupsPerTransportBlock_value2enum_2[] = {
23         { 0,    2,      "n2" },
24         { 1,    2,      "n4" },
25         { 2,    2,      "n6" },
26         { 3,    2,      "n8" }
27 };
28 static const unsigned int asn_MAP_maxCodeBlockGroupsPerTransportBlock_enum2value_2[] = {
29         0,      /* n2(0) */
30         1,      /* n4(1) */
31         2,      /* n6(2) */
32         3       /* n8(3) */
33 };
34 static const asn_INTEGER_specifics_t asn_SPC_maxCodeBlockGroupsPerTransportBlock_specs_2 = {
35         asn_MAP_maxCodeBlockGroupsPerTransportBlock_value2enum_2,       /* "tag" => N; sorted by tag */
36         asn_MAP_maxCodeBlockGroupsPerTransportBlock_enum2value_2,       /* N => "tag"; sorted by N */
37         4,      /* Number of elements in the maps */
38         0,      /* Enumeration is not extensible */
39         1,      /* Strict enumeration */
40         0,      /* Native long size */
41         0
42 };
43 static const ber_tlv_tag_t asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2[] = {
44         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
45         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
46 };
47 static /* Use -fall-defs-global to expose */
48 asn_TYPE_descriptor_t asn_DEF_maxCodeBlockGroupsPerTransportBlock_2 = {
49         "maxCodeBlockGroupsPerTransportBlock",
50         "maxCodeBlockGroupsPerTransportBlock",
51         &asn_OP_NativeEnumerated,
52         asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2,
53         sizeof(asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2)
54                 /sizeof(asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2[0]) - 1, /* 1 */
55         asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2,     /* Same as above */
56         sizeof(asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2)
57                 /sizeof(asn_DEF_maxCodeBlockGroupsPerTransportBlock_tags_2[0]), /* 2 */
58         { &asn_OER_type_maxCodeBlockGroupsPerTransportBlock_constr_2, &asn_PER_type_maxCodeBlockGroupsPerTransportBlock_constr_2, NativeEnumerated_constraint },
59         0, 0,   /* Defined elsewhere */
60         &asn_SPC_maxCodeBlockGroupsPerTransportBlock_specs_2    /* Additional specs */
61 };
62
63 asn_TYPE_member_t asn_MBR_PDSCH_CodeBlockGroupTransmission_1[] = {
64         { ATF_NOFLAGS, 0, offsetof(struct PDSCH_CodeBlockGroupTransmission, maxCodeBlockGroupsPerTransportBlock),
65                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
66                 -1,     /* IMPLICIT tag at current level */
67                 &asn_DEF_maxCodeBlockGroupsPerTransportBlock_2,
68                 0,
69                 { 0, 0, 0 },
70                 0, 0, /* No default value */
71                 "maxCodeBlockGroupsPerTransportBlock"
72                 },
73         { ATF_NOFLAGS, 0, offsetof(struct PDSCH_CodeBlockGroupTransmission, codeBlockGroupFlushIndicator),
74                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
75                 -1,     /* IMPLICIT tag at current level */
76                 &asn_DEF_BOOLEAN,
77                 0,
78                 { 0, 0, 0 },
79                 0, 0, /* No default value */
80                 "codeBlockGroupFlushIndicator"
81                 },
82 };
83 static const ber_tlv_tag_t asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1[] = {
84         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
85 };
86 static const asn_TYPE_tag2member_t asn_MAP_PDSCH_CodeBlockGroupTransmission_tag2el_1[] = {
87     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxCodeBlockGroupsPerTransportBlock */
88     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* codeBlockGroupFlushIndicator */
89 };
90 asn_SEQUENCE_specifics_t asn_SPC_PDSCH_CodeBlockGroupTransmission_specs_1 = {
91         sizeof(struct PDSCH_CodeBlockGroupTransmission),
92         offsetof(struct PDSCH_CodeBlockGroupTransmission, _asn_ctx),
93         asn_MAP_PDSCH_CodeBlockGroupTransmission_tag2el_1,
94         2,      /* Count of tags in the map */
95         0, 0, 0,        /* Optional elements (not needed) */
96         2,      /* First extension addition */
97 };
98 asn_TYPE_descriptor_t asn_DEF_PDSCH_CodeBlockGroupTransmission = {
99         "PDSCH-CodeBlockGroupTransmission",
100         "PDSCH-CodeBlockGroupTransmission",
101         &asn_OP_SEQUENCE,
102         asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1,
103         sizeof(asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1)
104                 /sizeof(asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1[0]), /* 1 */
105         asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1,        /* Same as above */
106         sizeof(asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1)
107                 /sizeof(asn_DEF_PDSCH_CodeBlockGroupTransmission_tags_1[0]), /* 1 */
108         { 0, 0, SEQUENCE_constraint },
109         asn_MBR_PDSCH_CodeBlockGroupTransmission_1,
110         2,      /* Elements count */
111         &asn_SPC_PDSCH_CodeBlockGroupTransmission_specs_1       /* Additional specs */
112 };
113