blob: 0703952c28d11913a4160b6ea8be1eb6af12a122 [file] [log] [blame]
Harald Welte3aa901d2018-08-13 18:32:36 +02001/*
2 * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3 * From ASN.1 module "RSPRO"
4 * found in "../../asn1/RSPRO.asn"
5 */
6
7#include <osmocom/rspro/ComponentIdentity.h>
8
9static asn_TYPE_member_t asn_MBR_ComponentIdentity_1[] = {
10 { ATF_NOFLAGS, 0, offsetof(struct ComponentIdentity, type),
11 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
12 0,
13 &asn_DEF_ComponentType,
14 0, /* Defer constraints checking to the member type */
15 0, /* PER is not compiled, use -gen-PER */
16 0,
17 "type"
18 },
19 { ATF_NOFLAGS, 0, offsetof(struct ComponentIdentity, name),
20 (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
21 0,
22 &asn_DEF_ComponentName,
23 0, /* Defer constraints checking to the member type */
24 0, /* PER is not compiled, use -gen-PER */
25 0,
26 "name"
27 },
28 { ATF_NOFLAGS, 0, offsetof(struct ComponentIdentity, software),
29 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30 -1, /* IMPLICIT tag at current level */
31 &asn_DEF_ComponentName,
32 0, /* Defer constraints checking to the member type */
33 0, /* PER is not compiled, use -gen-PER */
34 0,
35 "software"
36 },
37 { ATF_NOFLAGS, 0, offsetof(struct ComponentIdentity, swVersion),
38 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39 -1, /* IMPLICIT tag at current level */
40 &asn_DEF_ComponentName,
41 0, /* Defer constraints checking to the member type */
42 0, /* PER is not compiled, use -gen-PER */
43 0,
44 "swVersion"
45 },
46 { ATF_POINTER, 5, offsetof(struct ComponentIdentity, hwManufacturer),
47 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
48 -1, /* IMPLICIT tag at current level */
49 &asn_DEF_ComponentName,
50 0, /* Defer constraints checking to the member type */
51 0, /* PER is not compiled, use -gen-PER */
52 0,
53 "hwManufacturer"
54 },
55 { ATF_POINTER, 4, offsetof(struct ComponentIdentity, hwModel),
56 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
57 -1, /* IMPLICIT tag at current level */
58 &asn_DEF_ComponentName,
59 0, /* Defer constraints checking to the member type */
60 0, /* PER is not compiled, use -gen-PER */
61 0,
62 "hwModel"
63 },
64 { ATF_POINTER, 3, offsetof(struct ComponentIdentity, hwSerialNr),
65 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
66 -1, /* IMPLICIT tag at current level */
67 &asn_DEF_ComponentName,
68 0, /* Defer constraints checking to the member type */
69 0, /* PER is not compiled, use -gen-PER */
70 0,
71 "hwSerialNr"
72 },
73 { ATF_POINTER, 2, offsetof(struct ComponentIdentity, hwVersion),
74 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
75 -1, /* IMPLICIT tag at current level */
76 &asn_DEF_ComponentName,
77 0, /* Defer constraints checking to the member type */
78 0, /* PER is not compiled, use -gen-PER */
79 0,
80 "hwVersion"
81 },
82 { ATF_POINTER, 1, offsetof(struct ComponentIdentity, fwVersion),
83 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
84 -1, /* IMPLICIT tag at current level */
85 &asn_DEF_ComponentName,
86 0, /* Defer constraints checking to the member type */
87 0, /* PER is not compiled, use -gen-PER */
88 0,
89 "fwVersion"
90 },
91};
92static const ber_tlv_tag_t asn_DEF_ComponentIdentity_tags_1[] = {
93 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
94};
95static const asn_TYPE_tag2member_t asn_MAP_ComponentIdentity_tag2el_1[] = {
96 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* type */
97 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 1, 0, 0 }, /* name */
98 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* software */
99 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* swVersion */
100 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 }, /* hwManufacturer */
101 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 5, 0, 0 }, /* hwModel */
102 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 6, 0, 0 }, /* hwSerialNr */
103 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 7, 0, 0 }, /* hwVersion */
104 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 8, 0, 0 } /* fwVersion */
105};
106static asn_SEQUENCE_specifics_t asn_SPC_ComponentIdentity_specs_1 = {
107 sizeof(struct ComponentIdentity),
108 offsetof(struct ComponentIdentity, _asn_ctx),
109 asn_MAP_ComponentIdentity_tag2el_1,
110 9, /* Count of tags in the map */
111 0, 0, 0, /* Optional elements (not needed) */
112 8, /* Start extensions */
113 10 /* Stop extensions */
114};
115asn_TYPE_descriptor_t asn_DEF_ComponentIdentity = {
116 "ComponentIdentity",
117 "ComponentIdentity",
118 SEQUENCE_free,
119 SEQUENCE_print,
120 SEQUENCE_constraint,
121 SEQUENCE_decode_ber,
122 SEQUENCE_encode_der,
123 SEQUENCE_decode_xer,
124 SEQUENCE_encode_xer,
125 0, 0, /* No UPER support, use "-gen-PER" to enable */
126 0, 0, /* No APER support, use "-gen-PER" to enable */
127 0, /* Use generic outmost tag fetcher */
128 asn_DEF_ComponentIdentity_tags_1,
129 sizeof(asn_DEF_ComponentIdentity_tags_1)
130 /sizeof(asn_DEF_ComponentIdentity_tags_1[0]), /* 1 */
131 asn_DEF_ComponentIdentity_tags_1, /* Same as above */
132 sizeof(asn_DEF_ComponentIdentity_tags_1)
133 /sizeof(asn_DEF_ComponentIdentity_tags_1[0]), /* 1 */
134 0, /* No PER visible constraints */
135 asn_MBR_ComponentIdentity_1,
136 9, /* Elements count */
137 &asn_SPC_ComponentIdentity_specs_1 /* Additional specs */
138};
139