Debian Codegraph @

biosig4c++/t240/ChannelDescriptionSection.c

raw symbols SCIP
1 /*
2 * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3 * From ASN.1 module "FEF-IntermediateDraft"
4 * found in "../annexb-snacc-122001.asn1"
5 */
6
7 #include <asn_internal.h>
8
9 #include "ChannelDescriptionSection.h"
10
11 static int asn_DFL_8_set_65535(int set_value, void **sptr) {
12 INTEGER_t *st = *sptr;
13
14 if(!st) {
15 if(!set_value) return -1; /* Not a default value */
16 st = (*sptr = CALLOC(1, sizeof(*st)));
17 if(!st) return -1;
18 }
19
20 if(set_value) {
21 /* Install default value 65535 */
22 return asn_long2INTEGER(st, 65535);
23 } else {
24 /* Test default value 65535 */
25 long value;
26 if(asn_INTEGER2long(st, &value))
27 return -1;
28 return (value == 65535);
29 }
30 }
31 static asn_TYPE_member_t asn_MBR_ChannelDescriptionSection_1[] = {
32 { ATF_NOFLAGS, 0, offsetof(struct ChannelDescriptionSection, handle),
33 (ASN_TAG_CLASS_APPLICATION | (2337 << 2)),
34 0,
35 &asn_DEF_Handle,
36 0, /* Defer constraints checking to the member type */
37 0, /* PER is not compiled, use -gen-PER */
38 0,
39 "handle"
40 },
41 { ATF_NOFLAGS, 0, offsetof(struct ChannelDescriptionSection, metrictype),
42 (ASN_TAG_CLASS_APPLICATION | (2351 << 2)),
43 -1, /* IMPLICIT tag at current level */
44 &asn_DEF_MetricsCode,
45 0, /* Defer constraints checking to the member type */
46 0, /* PER is not compiled, use -gen-PER */
47 0,
48 "metrictype"
49 },
50 { ATF_POINTER, 6, offsetof(struct ChannelDescriptionSection, labelstring),
51 (ASN_TAG_CLASS_APPLICATION | (2343 << 2)),
52 -1, /* IMPLICIT tag at current level */
53 &asn_DEF_FEFString,
54 0, /* Defer constraints checking to the member type */
55 0, /* PER is not compiled, use -gen-PER */
56 0,
57 "labelstring"
58 },
59 { ATF_POINTER, 5, offsetof(struct ChannelDescriptionSection, channelid),
60 (ASN_TAG_CLASS_APPLICATION | (2318 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_MetricsCode,
63 0, /* Defer constraints checking to the member type */
64 0, /* PER is not compiled, use -gen-PER */
65 0,
66 "channelid"
67 },
68 { ATF_POINTER, 4, offsetof(struct ChannelDescriptionSection, channelstatus),
69 (ASN_TAG_CLASS_APPLICATION | (2320 << 2)),
70 -1, /* IMPLICIT tag at current level */
71 &asn_DEF_MetricStatus,
72 0, /* Defer constraints checking to the member type */
73 0, /* PER is not compiled, use -gen-PER */
74 0,
75 "channelstatus"
76 },
77 { ATF_POINTER, 3, offsetof(struct ChannelDescriptionSection, parametergroup),
78 (ASN_TAG_CLASS_APPLICATION | (2346 << 2)),
79 -1, /* IMPLICIT tag at current level */
80 &asn_DEF_ParameterGroupCode,
81 0, /* Defer constraints checking to the member type */
82 0, /* PER is not compiled, use -gen-PER */
83 0,
84 "parametergroup"
85 },
86 { ATF_POINTER, 2, offsetof(struct ChannelDescriptionSection, physicalchannelnr),
87 (ASN_TAG_CLASS_APPLICATION | (2319 << 2)),
88 -1, /* IMPLICIT tag at current level */
89 &asn_DEF_INTEGER,
90 0, /* Defer constraints checking to the member type */
91 0, /* PER is not compiled, use -gen-PER */
92 asn_DFL_8_set_65535, /* DEFAULT 65535 */
93 "physicalchannelnr"
94 },
95 { ATF_POINTER, 1, offsetof(struct ChannelDescriptionSection, measurementprinciple),
96 (ASN_TAG_CLASS_APPLICATION | (2560 << 2)),
97 -1, /* IMPLICIT tag at current level */
98 &asn_DEF_MsmtPrinciple,
99 0, /* Defer constraints checking to the member type */
100 0, /* PER is not compiled, use -gen-PER */
101 0,
102 "measurementprinciple"
103 },
104 };
105 static ber_tlv_tag_t asn_DEF_ChannelDescriptionSection_tags_1[] = {
106 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
107 };
108 static asn_TYPE_tag2member_t asn_MAP_ChannelDescriptionSection_tag2el_1[] = {
109 { (ASN_TAG_CLASS_APPLICATION | (2318 << 2)), 3, 0, 0 }, /* channelid at 672 */
110 { (ASN_TAG_CLASS_APPLICATION | (2319 << 2)), 6, 0, 0 }, /* physicalchannelnr at 683 */
111 { (ASN_TAG_CLASS_APPLICATION | (2320 << 2)), 4, 0, 0 }, /* channelstatus at 677 */
112 { (ASN_TAG_CLASS_APPLICATION | (2337 << 2)), 0, 0, 0 }, /* handle at 663 */
113 { (ASN_TAG_CLASS_APPLICATION | (2343 << 2)), 2, 0, 0 }, /* labelstring at 669 */
114 { (ASN_TAG_CLASS_APPLICATION | (2346 << 2)), 5, 0, 0 }, /* parametergroup at 680 */
115 { (ASN_TAG_CLASS_APPLICATION | (2351 << 2)), 1, 0, 0 }, /* metrictype at 666 */
116 { (ASN_TAG_CLASS_APPLICATION | (2560 << 2)), 7, 0, 0 } /* measurementprinciple at 687 */
117 };
118 static asn_SEQUENCE_specifics_t asn_SPC_ChannelDescriptionSection_specs_1 = {
119 sizeof(struct ChannelDescriptionSection),
120 offsetof(struct ChannelDescriptionSection, _asn_ctx),
121 asn_MAP_ChannelDescriptionSection_tag2el_1,
122 8, /* Count of tags in the map */
123 0, 0, 0, /* Optional elements (not needed) */
124 -1, /* Start extensions */
125 -1 /* Stop extensions */
126 };
127 asn_TYPE_descriptor_t asn_DEF_ChannelDescriptionSection = {
128 "ChannelDescriptionSection",
129 "ChannelDescriptionSection",
130 SEQUENCE_free,
131 SEQUENCE_print,
132 SEQUENCE_constraint,
133 SEQUENCE_decode_ber,
134 SEQUENCE_encode_der,
135 SEQUENCE_decode_xer,
136 SEQUENCE_encode_xer,
137 0, 0, /* No PER support, use "-gen-PER" to enable */
138 0, /* Use generic outmost tag fetcher */
139 asn_DEF_ChannelDescriptionSection_tags_1,
140 sizeof(asn_DEF_ChannelDescriptionSection_tags_1)
141 /sizeof(asn_DEF_ChannelDescriptionSection_tags_1[0]), /* 1 */
142 asn_DEF_ChannelDescriptionSection_tags_1, /* Same as above */
143 sizeof(asn_DEF_ChannelDescriptionSection_tags_1)
144 /sizeof(asn_DEF_ChannelDescriptionSection_tags_1[0]), /* 1 */
145 0, /* No PER visible constraints */
146 asn_MBR_ChannelDescriptionSection_1,
147 8, /* Elements count */
148 &asn_SPC_ChannelDescriptionSection_specs_1 /* Additional specs */
149 };
150