2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../ASN1_Input/rrc_15_3_asn.asn1"
5 * `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "SecurityConfig.h"
10 #include "SecurityAlgorithmConfig.h"
12 * This type is implemented using NativeEnumerated,
13 * so here we adjust the DEF accordingly.
15 static asn_oer_constraints_t asn_OER_type_keyToUse_constr_3 CC_NOTUSED = {
18 static asn_per_constraints_t asn_PER_type_keyToUse_constr_3 CC_NOTUSED = {
19 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
20 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
21 0, 0 /* No PER value map */
23 static const asn_INTEGER_enum_map_t asn_MAP_keyToUse_value2enum_3[] = {
27 static const unsigned int asn_MAP_keyToUse_enum2value_3[] = {
31 static const asn_INTEGER_specifics_t asn_SPC_keyToUse_specs_3 = {
32 asn_MAP_keyToUse_value2enum_3, /* "tag" => N; sorted by tag */
33 asn_MAP_keyToUse_enum2value_3, /* N => "tag"; sorted by N */
34 2, /* Number of elements in the maps */
35 0, /* Enumeration is not extensible */
36 1, /* Strict enumeration */
37 0, /* Native long size */
40 static const ber_tlv_tag_t asn_DEF_keyToUse_tags_3[] = {
41 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
44 static /* Use -fall-defs-global to expose */
45 asn_TYPE_descriptor_t asn_DEF_keyToUse_3 = {
48 &asn_OP_NativeEnumerated,
49 asn_DEF_keyToUse_tags_3,
50 sizeof(asn_DEF_keyToUse_tags_3)
51 /sizeof(asn_DEF_keyToUse_tags_3[0]) - 1, /* 1 */
52 asn_DEF_keyToUse_tags_3, /* Same as above */
53 sizeof(asn_DEF_keyToUse_tags_3)
54 /sizeof(asn_DEF_keyToUse_tags_3[0]), /* 2 */
55 { &asn_OER_type_keyToUse_constr_3, &asn_PER_type_keyToUse_constr_3, NativeEnumerated_constraint },
56 0, 0, /* Defined elsewhere */
57 &asn_SPC_keyToUse_specs_3 /* Additional specs */
60 asn_TYPE_member_t asn_MBR_SecurityConfig_1[] = {
61 { ATF_POINTER, 2, offsetof(struct SecurityConfig, securityAlgorithmConfig),
62 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
63 -1, /* IMPLICIT tag at current level */
64 &asn_DEF_SecurityAlgorithmConfig,
67 0, 0, /* No default value */
68 "securityAlgorithmConfig"
70 { ATF_POINTER, 1, offsetof(struct SecurityConfig, keyToUse),
71 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72 -1, /* IMPLICIT tag at current level */
76 0, 0, /* No default value */
80 static const int asn_MAP_SecurityConfig_oms_1[] = { 0, 1 };
81 static const ber_tlv_tag_t asn_DEF_SecurityConfig_tags_1[] = {
82 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
84 static const asn_TYPE_tag2member_t asn_MAP_SecurityConfig_tag2el_1[] = {
85 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* securityAlgorithmConfig */
86 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* keyToUse */
88 asn_SEQUENCE_specifics_t asn_SPC_SecurityConfig_specs_1 = {
89 sizeof(struct SecurityConfig),
90 offsetof(struct SecurityConfig, _asn_ctx),
91 asn_MAP_SecurityConfig_tag2el_1,
92 2, /* Count of tags in the map */
93 asn_MAP_SecurityConfig_oms_1, /* Optional members */
94 2, 0, /* Root/Additions */
95 2, /* First extension addition */
97 asn_TYPE_descriptor_t asn_DEF_SecurityConfig = {
101 asn_DEF_SecurityConfig_tags_1,
102 sizeof(asn_DEF_SecurityConfig_tags_1)
103 /sizeof(asn_DEF_SecurityConfig_tags_1[0]), /* 1 */
104 asn_DEF_SecurityConfig_tags_1, /* Same as above */
105 sizeof(asn_DEF_SecurityConfig_tags_1)
106 /sizeof(asn_DEF_SecurityConfig_tags_1[0]), /* 1 */
107 { 0, 0, SEQUENCE_constraint },
108 asn_MBR_SecurityConfig_1,
109 2, /* Elements count */
110 &asn_SPC_SecurityConfig_specs_1 /* Additional specs */