| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 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; |
| 16 |
st = (*sptr = CALLOC(1, sizeof(*st))); |
| 17 |
if(!st) return -1; |
| 18 |
} |
| 19 |
|
| 20 |
if(set_value) { |
| 21 |
|
| 22 |
return asn_long2INTEGER(st, 65535); |
| 23 |
} else { |
| 24 |
|
| 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, |
| 37 |
0, |
| 38 |
0, |
| 39 |
"handle" |
| 40 |
}, |
| 41 |
{ ATF_NOFLAGS, 0, offsetof(struct ChannelDescriptionSection, metrictype), |
| 42 |
(ASN_TAG_CLASS_APPLICATION | (2351 << 2)), |
| 43 |
-1, |
| 44 |
&asn_DEF_MetricsCode, |
| 45 |
0, |
| 46 |
0, |
| 47 |
0, |
| 48 |
"metrictype" |
| 49 |
}, |
| 50 |
{ ATF_POINTER, 6, offsetof(struct ChannelDescriptionSection, labelstring), |
| 51 |
(ASN_TAG_CLASS_APPLICATION | (2343 << 2)), |
| 52 |
-1, |
| 53 |
&asn_DEF_FEFString, |
| 54 |
0, |
| 55 |
0, |
| 56 |
0, |
| 57 |
"labelstring" |
| 58 |
}, |
| 59 |
{ ATF_POINTER, 5, offsetof(struct ChannelDescriptionSection, channelid), |
| 60 |
(ASN_TAG_CLASS_APPLICATION | (2318 << 2)), |
| 61 |
-1, |
| 62 |
&asn_DEF_MetricsCode, |
| 63 |
0, |
| 64 |
0, |
| 65 |
0, |
| 66 |
"channelid" |
| 67 |
}, |
| 68 |
{ ATF_POINTER, 4, offsetof(struct ChannelDescriptionSection, channelstatus), |
| 69 |
(ASN_TAG_CLASS_APPLICATION | (2320 << 2)), |
| 70 |
-1, |
| 71 |
&asn_DEF_MetricStatus, |
| 72 |
0, |
| 73 |
0, |
| 74 |
0, |
| 75 |
"channelstatus" |
| 76 |
}, |
| 77 |
{ ATF_POINTER, 3, offsetof(struct ChannelDescriptionSection, parametergroup), |
| 78 |
(ASN_TAG_CLASS_APPLICATION | (2346 << 2)), |
| 79 |
-1, |
| 80 |
&asn_DEF_ParameterGroupCode, |
| 81 |
0, |
| 82 |
0, |
| 83 |
0, |
| 84 |
"parametergroup" |
| 85 |
}, |
| 86 |
{ ATF_POINTER, 2, offsetof(struct ChannelDescriptionSection, physicalchannelnr), |
| 87 |
(ASN_TAG_CLASS_APPLICATION | (2319 << 2)), |
| 88 |
-1, |
| 89 |
&asn_DEF_INTEGER, |
| 90 |
0, |
| 91 |
0, |
| 92 |
asn_DFL_8_set_65535, |
| 93 |
"physicalchannelnr" |
| 94 |
}, |
| 95 |
{ ATF_POINTER, 1, offsetof(struct ChannelDescriptionSection, measurementprinciple), |
| 96 |
(ASN_TAG_CLASS_APPLICATION | (2560 << 2)), |
| 97 |
-1, |
| 98 |
&asn_DEF_MsmtPrinciple, |
| 99 |
0, |
| 100 |
0, |
| 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 }, |
| 110 |
{ (ASN_TAG_CLASS_APPLICATION | (2319 << 2)), 6, 0, 0 }, |
| 111 |
{ (ASN_TAG_CLASS_APPLICATION | (2320 << 2)), 4, 0, 0 }, |
| 112 |
{ (ASN_TAG_CLASS_APPLICATION | (2337 << 2)), 0, 0, 0 }, |
| 113 |
{ (ASN_TAG_CLASS_APPLICATION | (2343 << 2)), 2, 0, 0 }, |
| 114 |
{ (ASN_TAG_CLASS_APPLICATION | (2346 << 2)), 5, 0, 0 }, |
| 115 |
{ (ASN_TAG_CLASS_APPLICATION | (2351 << 2)), 1, 0, 0 }, |
| 116 |
{ (ASN_TAG_CLASS_APPLICATION | (2560 << 2)), 7, 0, 0 } |
| 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, |
| 123 |
0, 0, 0, |
| 124 |
-1, |
| 125 |
-1 |
| 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, |
| 138 |
0, |
| 139 |
asn_DEF_ChannelDescriptionSection_tags_1, |
| 140 |
sizeof(asn_DEF_ChannelDescriptionSection_tags_1) |
| 141 |
/sizeof(asn_DEF_ChannelDescriptionSection_tags_1[0]), |
| 142 |
asn_DEF_ChannelDescriptionSection_tags_1, |
| 143 |
sizeof(asn_DEF_ChannelDescriptionSection_tags_1) |
| 144 |
/sizeof(asn_DEF_ChannelDescriptionSection_tags_1[0]), |
| 145 |
0, |
| 146 |
asn_MBR_ChannelDescriptionSection_1, |
| 147 |
8, |
| 148 |
&asn_SPC_ChannelDescriptionSection_specs_1 |
| 149 |
}; |
| 150 |
|